Пример #1
0
    public void PrintPotion(Potion potion)
    {
        if (potion.type == PotionType.Health) {

            print (potion.name
            + " - "
            + potion.healPercentage
            + "% Heal, Buy price: "
            + potion.price
            + ", Sell price: "
            + potion.sellPrice ());
        }
        else {

            print (potion.name
            + " - Buy price: "
            + potion.price
            + ", Sell price: "
            + potion.sellPrice ());
        }
    }