Fixed Galleon hold 5/6 components show 0 Items / 0 Stones

Lokai

Moderator
ServUO Developer
Dec 4, 2014
1,265
211
Western New York State
Shard Name
Test Center
Donate
Donate money to this user
Operating System
Windows 10
ServUO Version
UO Heritage
The Galleon's hold is composed of 6 pieces, and 5 out of the 6 show 0 Items and 0 stones when you hover over them. Only 1 of the 6 locations shows the actual contents:

13838
13839
13840
13841
13842



Only the middle piece toward the center of the boat shows the actual contents:

13843
 

PyrO

Well-Known Member
Jan 27, 2015
1,152
92
The GalleonHold items didnt invalidate their properties.

Added:
Scripts/Services/Expansions/High Seas/Multis/BaseGalleon.cs
C#:
        public void InvalidateHoldPorperties()
        {
            foreach(Item hold in m_HoldTiles)
                hold.InvalidateProperties();
        }
Scripts/Services/Expansions/High Seas/Multis/GalleonHold.cs
C#:
        public override void OnItemAdded(Item item)
        {
            Galleon?.InvalidateHoldPorperties();
            base.OnItemAdded(item);
        }

        public override void OnItemRemoved(Item item)
        {
            Galleon?.InvalidateHoldPorperties();
            base.OnItemRemoved(item);
        }
 

Attachments

  • Like
Reactions: Falkor

Tasanar

Moderator
ServUO Developer
Oct 16, 2014
4,546
123
32
trueuo.com
Shard Name
Heritage
Donate
Donate money to this user
Well thanks regardless! Going to add this to my pending PR from your BaseLight suggestion.