Inventory.insert(inventory.begin(), 'Increase Defense') MyPlayer._iStartingGold = myPlayer._iStartingGold - 125 Ĭout << 'You have bought an Increase Attack Power Potion.' << endl
Inventory.insert(inventory.begin(), 'Increase Attack Power')
MyPlayer._iStartingGold = myPlayer._iStartingGold - 75 Ĭout << 'You have bought a Health Potion.' << endl Ĭout << 'You have this in remaining gold: ' << myPlayer._iStartingGold << endl Inventory.insert(inventory.begin(), 'Health Potion') Inventory.insert(inventory.begin(), 'Shield') #include 'Armor.h'*/ #include 'Monster.h' #include 'Player.h' #include 'Inventory.h' //#include 'Potion.h' //#include 'Weapon.h' #include 'RPGGameConfig.h' using namespace std