From dff70d92605d96ec839eb8f885be8b3aa1a8e749 Mon Sep 17 00:00:00 2001 From: jman13378 Date: Wed, 12 Oct 2022 23:35:58 -0400 Subject: [PATCH] complete generators upgrads for them need to be added and price needs to be added --- __pycache__/generators.cpython-310.pyc | Bin 2391 -> 3196 bytes generators.py | 44 ++++- mlibs.py | 41 ++++- orgver.py | 235 +------------------------ 4 files changed, 72 insertions(+), 248 deletions(-) diff --git a/__pycache__/generators.cpython-310.pyc b/__pycache__/generators.cpython-310.pyc index db95b1c97017fc6274731ee998fcb1fbfd47be46..f13af54211ee9d63a4dc0e9623bd85818c99b2be 100644 GIT binary patch delta 1294 zcmah}OKVd>6rMTvHTUMGuV|yK+DojDNUh@A`bMNKqzLLJZj7C45n>{fi)bDMtRn7| zS-B9BrQk}p;=+yo1L1C6h#;;tKI%EQHf>RG;C$yXXXc(c=S$uX{aDvmNvA!AtJIpF zeV2ON_qlZ*y^s~SWCf7CU`UY0JytNKDJ|5Nw55aEmO{Fy9qGvwY9W1@M(xTz*^kBcql!`-zc5Q5UAatjPNV26{3B1lJPW|rj@G>($n_3Zb5p_P zy8d81=WFyMbJVdszTulE^b7M%CibtFqfp%{mM-488P*^OV*S9n#&_y3)?Kj^Z+^zr zq`qyB^TYb7eR6a+hVsUY+KxK5uNF%;L#6hhqxR~r_E!5Snfvv)^KhgKb+4QGyOd^E zzjgA1bh!!;@}Rb$iZvG*KXz4E4I`|+dR&i)v0a(oLneDWtJ+}TSsR7gP`#+HILBHM zi@0>=p$U;_K-=xGdCr++*itd04q>7?OfW@ogdi#V7+G0_yr(vhJxH*bU>(76f{g^d z+SMj<#}M*H@(Oi=u}v)IQe|i-fi+|W2xn2MBYI2>w{QqPH+ijp`FXRYN;RCdFlTAG zXb6<#X|K>o9>(!uRs@kT&)X*PtOHFu0%^7}+Q6rFxU{lN+9*yE;}k($Su+sspr@C)hziG$sPz z@4i&3l+-EmSMwmYi&9R9bLC68S0zGte1HRz0XQrGz%L&K4EX7p@B=LPZlm}%bb(|+ zIPlFBz=!^1n+sxzN(0MOO1@E^$@}`87~dVcQ6(yt=r^U-Qc2qgb`k6&I7o1kARsuS g$J}gA(H|U1mFO#&$pr{UtQWp8(DMAWel4E-1}H}u*8l(j delta 584 zcmZXRJxd%x7{_;J-{$r$a2G>34;|M_bQ6`kglj~>Lb1|DvDl<=bF&Et_r~lIk`)Og zwiaQkR3W5N>_WbPpFt3=wXm_fN)Ys!^%TS@e*fqBKQF`VUOhj}dmY!c6gcMjO8t`j z^e)yGAd8g{F(t$dF}$aQDpQ#Tsxh4zpgJ=d0X0~TS)eAfnFC6gyP*VLKldqa$2{tF z_}^`Wko_;h7=8P_V^QkgmlA)TzLS= upgradeprice: - upgrades += 1 - bal -= upgradeprice - balper += (1 + getPrestige()) - cost = upgradeprice - if upgrades >= (20 + (10 * getPrestige())): - prestigeup() - elif (upgrades == (20 + (10 * getPrestige()))): - lel11 = 1 - ending() - return - elif lel11 != 1: - upgradeprice += upgradeprice+50*getPrestige() - - reload_bal() - reload_upgrades() - reload_upgrade_level() - playsound(completesound) - showinfo("Upgraded!", "You have upgraded your MPC(Money per click)\nUpgrade: {}\nCost: {}\nRemaining Bal: {}\nNext Cost: {}".format(upgrades, cost, bal, upgradeprice) ) - - else: - s = playsound(errorsound) - showinfo('Not Enought Money!', "Sorry, you doen't have enough money for this!\nCurrent Bal: {}\nNeeded: {}".format(bal, upgradeprice)) - -def prestigeup(): - global bal, upgradeprice, balper, upgrades, nextupprice, prestige,lel11 - prestige += 1 - bal=0 - upgradeprice=150 - upgrades=0 - balper= 1+prestige - nextupprice=50 - close() - -def reload_bal(): - global bal - balance = Label( win, text="Money: ${}".format(bal), bg="#0D1117", fg="white").grid(column=1,row=0) - -def reload_upgrades(): - global upgradeprice - upgr = Label( win, text="Upgrade Price: ${}".format(upgradeprice), bg="#0D1117", fg="white").grid(column=1,row=1) - -def reload_upgrade_level(): - global upgrades - upgrlstart = Label( win, text="Level: {}".format(upgrades), bg="#0D1117", fg="white").grid(column=2,row=1) - - -#scheduler = BackgroundScheduler() -#scheduler.add_job(reload_bal, 'interval', minutes=30) -#scheduler.start() - - -def close(): - global bal, upgradeprice, balper, upgrades, nextupprice,prestige - a = open(path, "w") - a.write( - '{\n' - +' "bal": {},\n'.format(bal) - +' "upgradeprice": {},\n'.format(upgradeprice) - +' "upgrades": {},\n'.format(upgrades) - +' "balper": {},\n'.format(balper) - +' "nextupprice": {},\n'.format(nextupprice) - +' "prestige": {}'.format(prestige) - +'\n}') - a.close() - win.destroy() - -def restart(): - ans = askyesno("Reset Warning!", "WOULD YOU LIKE TO RESET ALL OF YOUR DATA!") - if ans: - global bal, upgradeprice, balper, upgrades, nextupprice, prestige - bal=0 - prestige= 0 - upgradeprice=100 - balper=1 - upgrades=0 - nextupprice=50 - close() - else: - pass -reload_bal() -reload_upgrades() -reload_upgrade_level() -upgr = Button(win,text="Upgrade", command=upgrade, bg="#0D1117", fg="white").grid(column=3, row=1) - -stats = Button(win,text="Stats", command=send_stat_msg, bg="#0D1117", fg="white").grid(column=1, row=5) - -addmoney = Button(win,text="Add Money", command=addbal, bg="#0D1117", fg="white").grid(column=2, row=0) - -reset = Button(win,text="Reset", command=restart, bg="#0D1117", fg="white").grid(column=5, row=0) - - - -win.protocol('WM_DELETE_WINDOW', close) - -win.mainloop() - +questions = ['name', 'quest', 'favorite color'] +answers = ['lancelot', 'the holy grail', 'blue'] +for q, a in zip(questions, answers): + print('What is your {0}? It is {1}.'.format(q, a))