adding the ability to name the pet
This commit is contained in:
parent
93133d2b37
commit
1bf51cafdf
Binary file not shown.
Binary file not shown.
|
@ -42,6 +42,7 @@ def beginning():
|
||||||
pet_variables.pet_photo = fish
|
pet_variables.pet_photo = fish
|
||||||
elif chosen_pet == 4:
|
elif chosen_pet == 4:
|
||||||
pet_variables.pet_photo = owl
|
pet_variables.pet_photo = owl
|
||||||
|
pet_variables.pet_name = input("How do you want to call your pet?")
|
||||||
|
|
||||||
|
|
||||||
# A function which changes the status of the pet depending of the age value.
|
# A function which changes the status of the pet depending of the age value.
|
||||||
|
@ -93,7 +94,7 @@ def decrease_health():
|
||||||
|
|
||||||
|
|
||||||
def decrease_stats():
|
def decrease_stats():
|
||||||
while pet_variables.beginning_finished:
|
while True:
|
||||||
time.sleep(15)
|
time.sleep(15)
|
||||||
decrease_hunger()
|
decrease_hunger()
|
||||||
if pet_variables.pet_hunger <= 0:
|
if pet_variables.pet_hunger <= 0:
|
||||||
|
|
Reference in New Issue