//if you have any small suggestions for the game tell me in the comments!
#include<iostream>
using namespace std;
int main()
{
cout << "Spending Simulator V6.6.1 Type help To See The Commands! And Type howtoplay To See How To Play" << endl;
//variables
int money = 30; //ingame money
int food = 0;
int property = 0;
int otherstuff = 0;
int weapons = 0;
int miner = 1;
int hasfridge = 0;
int hashouse = 0;
int hashanger =0;
int hasnuke = 0;
int hascar = 0;
int hasbunker = 0;
int haswater = 0;
int hasfood = 0;
int hasultranuke = 0;
//achievements
bool propertylover = true; //get 100 propertys
bool caseoh = false; //get 100 food
bool dangerousfella = false; //get 100 weapons
//********
bool everything = false;
bool quit = false;
string main;
//loop hole
while ( quit == false )
{
//other
if (property > 99 and propertylover == false)
{
propertylover = true;
cout << "Achievement Unlocked" << endl;
}
if (food > 99 and caseoh == false)
{
caseoh = true;
cout << "Achievement Unlocked" << endl;
}
if (weapons > 99 and dangerousfella == false)
{
dangerousfella = true;
cout << "Achievement Unlocked" << endl;
}
//mainstuff
cin >> main;
if(main == "help" )
{
cout << "***********" << endl;
cout << "checkminer (Check Your Miner's Level)" << endl;
cout << "quit (Stops The Program)" << endl;
cout << "checkother (Quantity Of Other Stuff)" << endl;
cout << "upgradelist (Miner Upgrade Levels)" << endl;
cout << "nukeworld (End Humanity)" << endl;
cout << "nukesolarsystem (Ends The Solar System)" << endl;
cout << "upgrade (Upgrade Your Miner)" << endl;
cout << "gm (Get Money)" << endl;
cout << "checkfood (Quantity Of Food)" << endl;
cout << "checkproperty (Quantity Of Propertys)" << endl;
cout << "checkweapons (Quantity Of Weapons)" << endl;
cout << "itemlist (All The Items InGame)" << endl;
cout << "checkmoney (How Much Money You Have)" << endl;
cout << "buy(itemname)" << endl;
cout << "info" << endl;
cout << "achievements" << endl;
cout << "updates (Shows Update History)" << endl;
cout << "***********" << endl;
}
if (main =="updates")
{
cout << "V4.0.0: Added A Updates Menu And Added Reason For Buyables And Added A New Hanger And Fridge And Made A New Version System!!!" << endl;
cout << "V4.5.0: Fixed A Writing Problem Where The (2xmoney) was Still Here Added A New Upgrade Level(7) And Now You Can See What Each Level Gives You!! With(upgradelist), And Now (checkweapons) Tells You If You Have A Nuke!! Thats All Hope You Guys Have Fun!!!!!" << endl;
cout << "V5.0.0: Added New Buyables And A Car Which Is Important! And Added A Bunker For You To Survive The Explosion And Now (checkproperty) Tells You If U Have A Bunker, Anyways Have Fun!!!!" << endl;
cout << "V5.5.0: Fixed A Bug Where When You Upgrade To Level 6 It Gives You Level 2, And Fixed Writing Problems In Ending 1!!" << endl;
cout << "V6.0.0: Added A Third Ending And Fixed A Bug Where If You Have 1$ Under The Item Price It Will Buy it!(took me like 2 hours) And Did Some Tuning In The Ending Scenes!!" << endl;
cout << "V6.5.0: Added A 'Quit' To Quit The Game If You Want And Did Some Other Small Things(i know its nothing much but i ran out of ideas)" << endl;
cout << "V6.5.1: Fixed A Bug Where You Cant Upgrade To Level 2!" << endl;
cout << "V6.6: Added A Secret Ending!!" << endl;
cout << "V6.6.1: Made A Simple Change In How The While Loop Functions, Fixed A Couple Of Bugs And Some Missing Text, And Added Achievements!, And Changed The Help Menu And Also Made The (getmoney) Command To (gm), Have Fun!" << endl;
}
if (main =="upgradelist")
{
cout << "Level 1 = +1$" << endl << "Level 2 = +10$" << endl << "Level 3 = +100$" << endl << "Level 4 = +1000$" << endl << "Level 5 = +10000$" << endl << "Level 6 = +100000$" << endl << "Level 7 = +300000$" << endl;
}
if (main =="quit")
{
cout << "Are You Sure You Wanna Quit? y/n" << endl;
string quit;
cin >> quit;
if (quit == "y")
{
cout << "Hope You Had Fun!" << endl;
return 0;
}
}
if (main == "howtoplay")
{
cout << "Your Goal Is To Buy The Nuke To Explode the Earth, Try To Buy Properties Or Food Or Weapons Anyways Hope You Have Fun! And Dont Forget To Blow Up The Earth!!!(i will add more buyables in the future or make the game easier!) You Will Start With 30 $" << endl;
}
if (main == "checkminer")
{
cout << "Your Miner Is Level " << miner << endl;
}
if (main == "achievements")
{
cout << "0 = False , 1 = True" << endl;
cout << "Property Lover = " << propertylover << endl;
cout << "Dangerous Fella = " << dangerousfella << endl;
cout << "Am I Caseoh? = " << caseoh << endl;
}
if (main =="gm")
{
if (miner ==1)
{
money = money+1;
cout << "You Now Have " << money << " $" << endl;
}
if (miner ==2)
{
money = money+10;
cout << "You Now Have " << money << " $" << endl;
}
if (miner ==3)
{
money = money+100;
cout << "You Now Have " << money << " $" << endl;
}
if (miner ==4)
{
money = money+1000;
cout << "You Now Have " << money << " $" << endl;
}
if (miner ==5)
{
money = money+10000;
cout << "You Now Have " << money << " $" << endl;
}
if ( miner ==6)
{
money = money+100000;
cout << "You Now Have " << money << " $" << endl;
}
if (miner ==7)
{
money = money+300000;
cout << "You Now Have " << money << " $" << endl;
}
}
if (main == "upgrade")
{
cout << "Your Current Miner Is Level " << miner << endl;
cout << "Would You Like To Upgrade? (y/n)" << endl;
string upgrade;
cin >> upgrade;
if (upgrade == "y")
{
cout << "What Level Would You Like To Upgrade to?(type the number u want to upgrade to)" << endl;
cout << "Level 2 = 50$" << endl << "Level 3 = 300$" << endl << "Level 4 = 3000$" << endl << "Level 5 = 13000$" << endl << "Level 6 = 150000$" << endl << "Level 7 = 650000$" << endl;
int lvlupgrade;
cin >> lvlupgrade;
if (lvlupgrade == 2)
{
if ( miner <= 2)
{
if (money >= 50)
{
miner = 2;
money = money-50;
cout << "Successful" << endl;
}
else
{
cout << "Not Enough Money!" << endl;
}
}
}
if (lvlupgrade == 3)
{
if ( miner <= 3)
{
if (money >= 300)
{
miner = 3;
money = money-300;
cout << "Successful" << endl;
}
else
{
cout << "Not Enough Money!" << endl;
}
}
}
if (lvlupgrade == 4)
{
if ( miner <= 4)
{
if (money >= 3000)
{
miner = 4;
money = money-3000;
cout << "Successful" << endl;
}
else
{
cout << "Not Enough Money!" << endl;
}
}
}
if (lvlupgrade == 5)
{
if ( miner <= 5)
{
if (money >= 13000)
{
miner = 5;
money = money-13000;
cout << "Successful" << endl;
}
else
{
cout << "Not Enough Money!" << endl;
}
}
}
if (lvlupgrade == 6)
{
if ( miner <= 6)
{
if (money >= 150000)
{
miner = 6;
money = money-150000;
cout << "Successful" << endl;
}
else
{
cout << "Not Enough Money!" << endl;
}
}
}
if (lvlupgrade == 7)
{
if ( miner <= 7)
{
if (money >= 650000)
{
miner = 7;
money = money-650000;
cout << "Successful" << endl;
}
else
{
cout << "Not Enough Money!" << endl;
}
}
}
}
}
if (main =="checkweapons")
{
cout << "You Have " << weapons << " Weapons" << endl;
if (hasnuke == 1)
{
cout << "You Have A Nuke!!" << endl;
}
}
if (main == "checkother")
{
cout << "You Have " << otherstuff << " Other Stuff!" << endl;
}
if (main == "checkproperty")
{
cout << "You Have " << property << " Properties" << endl;
if(hasbunker == 1)
{
cout << "You Have A Bunker!"<< endl;
}
}
if( main == "checkmoney")
{
cout << money << " $" << endl;
}
if ( main == "checkfood")
{
cout << "You Have " << food << " Consumables" << endl;
}
if (main == "itemlist")
{
cout << "Burger = 7$" << endl << "House = 5250$" << endl << "Coffee = 5$" << endl << "ULTRAWEAPON = 1M$" << endl << "Nuke = 3M$" << endl << "Hanger = 1M$" << endl <<"Fridge = 1000$" << endl << "Car = 2500$" << endl << "Bunker = 4M$" << endl << "Water = 10$" << endl << "UltraNuke = 50M$(destroys the solarsystem)" << endl;
}
if (main == "nukesolarsystem")
{
if (hasultranuke == 1)
{
cout << "YOU NUKED THE SOLARSYSTEM" << endl << "End Of Game, Game Made By TarekJwehra" << endl << "Ending 3 out of 4" << endl;
return 0;
}
else
{
cout << "You Dont Have The Ultra Nuke!" << endl;
}
}
if (main == "buyburger")
{
if (money >= 7)
{
if (hasfridge == 1)
{
food = food+1;
money = money-7;
hasfood = 1;
cout << "Successful!" << endl;
}
else
{
cout << "You Dont Have A Fridge" << endl;
}
}
else
{
cout << "Not Enough Money!" << endl;
}
}
if (main == "buywater")
{
if (money >= 10)
{
if (hasfridge == 1)
{
haswater = 1;
money = money-10;
food = food+1;
cout << "Successful" << endl;
}
else
{
cout << "You Dont Have A Fridge" << endl;
}
}
else
{
cout << "Not Enough Money!!" << endl;
}
}
if (main =="buybunker")
{
if (money >= 4000000)
{
if (hasfood == 1)
{
if (hascar == 1)
{
if (haswater == 1)
{
hasbunker = 1;
property = property+1;
money = money-4000000;
cout << "Successful!" << endl;
}
else
{
cout << "You Dont Have Water!!" << endl;
}
}
else
{
cout << "You Dont Have A Car!" << endl;
}
}
else
{
cout <<"You Dont Have Food!!" << endl;
}
}
else
{
cout << "Not Enough Money!" << endl;
}
}
if (main == "buycar")
{
if (money >= 25000)
{
if (hashouse == 1)
{
money = money-25000;
hascar = 1;
otherstuff = otherstuff+1;
cout << "Successful" << endl;
}
else
{
cout << "You Dont Have A House!!" << endl;
}
}
else
{
cout << "You Dont Have Enough Money!!!" << endl;
}
}
if (main == "buyfridge")
{
if (money >= 1000)
{
if (hashouse == 1)
{
if (hascar == 1)
{
otherstuff = otherstuff+1;
hasfridge = 1;
money = money-1000;
cout << "Successful" << endl;
}
else
{
cout << "You Dont Have A Car!!!" << endl;
}
}
else
{
cout << "You Dont Have A House!" << endl;
}
}
else
{
cout << "Not Enough Money!" << endl;
}
}
if (main == "nukeworld")
{
if (hasnuke == 1)
{
if (hasbunker == 1)
{
cout<< "YOU HAVE EXPLODED EARTH AND SURVIVED!!" << endl << "End Of Game, Game Made By TarekJwehra!" << endl << "Ending 2 out of 4" << endl;
return 0;
}
else
{
cout << "YOU HAVE EXPLODED EARTH AND DIED!!" << endl << "End Of Game, Game Made By TarekJwehera!" << endl << "Ending 1 out of 4" << endl;
return 0;
}
}
else
{
cout << "You Dont Have A Nuke(yet)" << endl;
}
}
if (main == "(TMN)edit(money)")
{
cout << "money = " << endl;
int editcash;
cin >> editcash;
money = editcash;
}
if (main == "buynuke")
{
if (money >= 3000000)
{
if(hashanger == 1)
{
weapons = weapons+1;
money = money-3000000;
hasnuke = 1;
cout << "Successful" << endl;
}
else
{
cout << "You Dont Have A Hanger!" << endl;
}
}
else
{
cout << "Not Enough Money!" << endl;
}
}
if (main == "(TMN)task(simulator.exe).Stop()")
{
cout << "You Did it......No Nuke,No Life,Its All Just A Simulation......You Dont Even Exist......" << endl;
cout << "Ending ??? out of 4" << endl;
return 0;
}
if (main == "buyhouse")
{
if ( money >= 5250)
{
property = property+1;
hashouse = 1;
money = money-5250;
cout << "Successful!" << endl;
}
else
{
cout << "Not Enough Money!" << endl;
}
}
if (main == "buyhanger")
{
if ( money >= 1000000)
{
if (hascar == 1)
{
property = property+1;
hashanger= 1;
money = money-1000000;
cout << "Successful!" << endl;
}
else
{
cout << "You Dont Have A Car!!" << endl;
}
}
else
{
cout << "Not Enough Money!" << endl;
}
}
if ( main == "info")
{
cout <<"This is A Small Game Made By(TarekJwehra), About Buying Items And Blowing Up The Earth And Upgrade Your Miner!!" << endl;
}
if (main == "buyultranuke")
{
if (money >= 50000000)
{
if (hashanger == 1)
{
money = money-50000000;
weapons = weapons+1;
hasultranuke = 1;
cout << "Successful" << endl;
}
else
{
cout << "You Dont Have A Hanger" << endl;
}
}
else
{
cout << "Not Enough Money!" << endl;
}
}
if (main == "buycoffee")
{
if (money >= 5)
{
if (hasfridge == 1)
{
otherstuff = otherstuff+1;
money = money-5;
cout << "Successful!" << endl;
}
else
{
cout << "You Dont Have A Fridge" << endl;
}
}
else
{
cout << "Not Enough Money!" << endl;
}
}
if(main=="buyultraweapon")
{
if (money >= 1000000)
{
if (hashanger == 1)
{
weapons = weapons+1;
money = money-1000000;
cout << "Succcessful" << endl;
}
else
{
cout << "You Dont Have A Hanger!" << endl;
}
}
else
{
cout << "Not Enough Money!" << endl;
}
}
}
}
//have fun playing my game!!
//Made By Gamerboy aka TarekJwehra
//App Used: Cxxdroid