added variable to control recovery speed

This commit is contained in:
luxick
2015-07-26 22:20:39 +02:00
parent 187df5697a
commit 9ebccff1a0
6 changed files with 8 additions and 4 deletions

View File

@@ -11,10 +11,9 @@ class Tamagotchi:
decayspeed = 0
potential = 0
power = 0
recovery = 0
recovery = 10
def __init__(self, name, hunger, happiness, hygiene, sleep, decayspeed, potential):
def __init__(self, name, hunger, happiness, hygiene, sleep, decayspeed, potential,recovery):
self.name = name
self.hunger = [hunger, hunger]
self.happiness = [happiness, happiness]
@@ -25,6 +24,7 @@ class Tamagotchi:
self.decayspeed = decayspeed
self.potential = potential
self.power = potential
self.recovery = recovery
def feed_other(self, tamagotchi):
self.status = 'Working'