예제 #1
0
 public void Sell(Hero hero, int price, Item item)
 {
     if (hero.Gold >= price)
     {
         hero.Gold -= price;
         hero.Acquire(item);
         Stock.Remove(item);
     }
 }