mooege/mooege — Issue #162: Gold not being updated properly
Author: geiz123
Created: 2011-10-12 03:53:26+00:00
State: open

Hi,

I found a very insignificant problem and I manage to fix it. Gold were being picked up and summed correctly but when updating the inventory it was getting the wrong value to update. It was getting GameAtrribute.Gold instead of GameAttribute.ItemStackQuantityLo

\src\Mooege\Core\GS\Player\Inventory.cs

```csharp
// TODO: The inventory's gold item should not be created here. /komiga
public void PickUpGold(uint itemID)
{
Item collectedItem = _owner.GroundItems[itemID];
Item sumGoldItem = _equipment.AddGoldItem(collectedItem);

GameAttributeMap attributes = new GameAttributeMap();
// Fixed here
attributes[GameAttribute.ItemStackQuantityLo] = sumGoldItem.Attributes[GameAttribute.ItemStackQuantityLo];
attributes.SendMessage(_owner.InGameClient, sumGoldItem.DynamicID);
}
```

Also I am new to github, so please be patience. I'm trying to figure out where to go next to get this change into the master branch. Any pointer?

Thanks,