示例#1
0
        public static void UseItem(IPokemon pokemon, int itemId)
        {
            switch (itemId)
            {
            case 1:     //potion
                pokemon.Heal(20);
                break;

            case 2:     // FullHeal
                pokemon.Condition = 0;
                break;

            case 3:     // super potion
                pokemon.Heal(50);
                break;

            case 4:     // Attack X
                pokemon.StatModifierStages[0] += 2;
                break;
            }
        }