Beispiel #1
0
        public void ResetBalance()
        {
            int oldBalance = Balance;

            VirtualItemStorage.SetItemBalance(ID, 0);
            OnBalanceChanged(oldBalance, 0);
        }
Beispiel #2
0
 protected override void DoGive(int amount)
 {
     VirtualItemStorage.SetItemBalance(ID, VirtualItemStorage.GetItemBalance(ID) + amount);
 }
Beispiel #3
0
 protected override void DoTake(int amount)
 {
     VirtualItemStorage.SetItemBalance(ID, 0);
 }