From be70f2180b8470fe766288ef7b2aaa1eb6b38eef Mon Sep 17 00:00:00 2001 From: Nebucatnetzer Date: Tue, 14 Jul 2015 19:28:19 +0200 Subject: [PATCH] adjusting how many time you can poke the pet --- __pycache__/pet_functions.cpython-34.pyc | Bin 6099 -> 6113 bytes pet_functions.py | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/__pycache__/pet_functions.cpython-34.pyc b/__pycache__/pet_functions.cpython-34.pyc index 7005762f8992eec85b794a0b0dfc575baef96930..431919a929c7628b240e6578021662afdab966e3 100644 GIT binary patch delta 208 zcmcbt|4^Uv9S<*8v)j_pQyV$wa!sDkZObS$`9GW7?{mG0OT`rS1=||uHv4| zm_C`0XA)!1J}rV8uHfA}N~nHaKI z8B!P-vKbkQm>Ejg7@C3Rm9T@ULS_aa3Qu8R2-alsD`Eud(&U)z%P%`QpWleD4ahC# q0TK+1%!~q?H}bD#VU*Y$FA~ix$;!jR!wQFNJiI*IJe)kjJi-8@EiGFB delta 273 zcmaE;e_5aN9S<+p(I-nnS8U{*%Qe}OTYa(;uk_@#JY17`xVc!F7=U21EO!NC(&TB} zlNr+{Yw=8C%$~fLr=PK4vM=u>#?r|Tc>5WvCKvG4FxF3g%colJ3Di>I#8AS(kj2PQ z!o-lp%+Sopz*xe<(98g&SRoWpoQ)xcks+Irp@^BGgdHNv0j3I>8GtA}g@GYhlgY1$ z5on+$=Pj0!%-qylti?I0sRc#cK(SlQDT$Ru#z0n)8Hf-95vG${`E>+Zfy`n)Ai==M o%qYOfzIi|YS{6pB&AB4c%#tiTEIh1m$i~CR!_C9VBg`WV03@3_{Qv*} diff --git a/pet_functions.py b/pet_functions.py index 312c395..71818ae 100644 --- a/pet_functions.py +++ b/pet_functions.py @@ -92,7 +92,8 @@ def aging(): ### Functions to increase and decrease stats ### def increase_hunger(): - pet_variables.pet_hunger = pet_variables.pet_hunger + 1 + if pet_variables.pet_hunger < pet_variables.max_hunger: + pet_variables.pet_hunger = pet_variables.pet_hunger + 1 def increase_poke_count(): @@ -134,7 +135,6 @@ def decrease_stats(): while True: time.sleep(pet_variables.day) decrease_hunger() - decrease_poke_count() if pet_variables.pet_hunger <= 0: decrease_health() decrease_happiness() @@ -185,7 +185,7 @@ def playing(): # if you poke it more than 3 times it will get angry at you def poking(): os.system('clear') - if pet_variables.poke_count < 4: + if pet_variables.poke_count < 3: print("You poke " + pet_variables.pet_name + " and it starts to speak.") increase_poke_count() mixer.init()