public PlayerStatBlock(Inventory inventory)
 {
     //Set natural ability
     mNaturalAbility = Battle.StringToInt("What is the player natural ability?");
     //Set Endurence
     mEndurence = Battle.StringToInt("What is the Player endurence?");
     //Refresh
     Refresh(inventory);
 }
Пример #2
0
        public void AddToInventory()
        {
            int listNumber = Battle.StringToInt("What kind of item do you want to Add? (0: Weapon, 1: Armor, 2: Misc");

            switch (listNumber)
            {
            //Weapon
            case 0:
                Console.WriteLine("What is the weapon name?");
                string weaponName = Console.ReadLine();

                int weaponAbilityBonus = Battle.StringToInt("What is the ability bonus of the weapon?");

                int weaponDamageBonus = Battle.StringToInt("What is the damage bonus of the weapon");

                mWeaponList.Add(new Weapon(weaponName, weaponAbilityBonus, weaponDamageBonus));
                break;

            default:
                break;
            }
        }