Introduced Eggs.

Every tamagotchi will spawn an egg, all the time(DEBUG)
This commit is contained in:
luxick
2016-02-26 19:04:12 +01:00
parent 07abef887c
commit 07af201350
4 changed files with 46 additions and 3 deletions

View File

@@ -14,6 +14,7 @@ class Tamagotchi:
power = 0
recovery = 0
lifetime = 0
fertility = [True, 0]
def __init__(self, name, hunger, happiness, hygiene, sleep, decayspeed, potential, recovery, lifetime):
self.name = name
@@ -130,3 +131,6 @@ class Tamagotchi:
rtn += 'Sleep: {0:5}'.format(sleep_pct)
rtn += '\n'
return rtn
def checkFertility(self):
return True