Beispiel #1
0
        private void OnBuySharedStashSlots(RequestBuySharedStashSlotsMessage requestBuySharedStashSlotsMessage)
        {
            int amount = 2500;

            if (_stashGrid.Rows % 10 == 0)
            {
                amount = _stashBuyValue[_stashGrid.Rows / 10 - 1];
            }
            if (_equipment.ContainsGoldAmount(amount))
            {
                _equipment.RemoveGoldAmount(amount);
                _owner.Attributes[GameAttribute.Shared_Stash_Slots] += 14;
                _owner.Attributes.BroadcastChangedIfRevealed();
                _stashGrid.ResizeGrid(_owner.Attributes[GameAttribute.Shared_Stash_Slots] / 7, 7);
            }
        }