Return to site

Games with slot based inventory

broken image
broken image

Inventory.insert(inventory.begin(), 'Increase Defense') MyPlayer._iStartingGold = myPlayer._iStartingGold - 125 Ĭout << 'You have bought an Increase Attack Power Potion.' << endl

broken image

Inventory.insert(inventory.begin(), 'Increase Attack Power')

broken image

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

broken image