Exemple #1
0
        public void Follow(string playerID, int price = -1)
        {
            if (price == -1)
            {
                HallProxy.IncrPlayerMoney(playerID, -this.price);
            }
            else
            {
                this.price = price;
                HallProxy.IncrPlayerMoney(playerID, -this.price);
            }

            total += this.price;
        }
Exemple #2
0
 public void RewardTo(string playerID)
 {
     HallProxy.IncrPlayerMoney(playerID, total);
     total = 0;
 }
Exemple #3
0
 public void PK(string fromID)
 {
     HallProxy.IncrPlayerMoney(fromID, -price * 2);
     total += price * 2;
 }