moved global variables to a seperate config file

This commit is contained in:
luxick
2015-07-26 22:14:21 +02:00
parent 0c6e2cbdf2
commit 187df5697a
9 changed files with 50 additions and 29 deletions

13
util.py
View File

@@ -3,16 +3,17 @@
from tamagotchi import Tamagotchi
import random
import names
from config import *
class Util:
def make_Tamagotchi(self):
name = names.get_last_name()
hunger = random.randrange(80,120,1)
happiness = random.randrange(80,120,1)
hygiene = random.randrange(80,120,1)
sleep = random.randrange(80,120,1)
decayspeed = random.randrange(1,3,1)
potential = random.randrange(1,5,1)
hunger = random.randrange(min_stat,max_stat,1)
happiness = random.randrange(min_stat,max_stat,1)
hygiene = random.randrange(min_stat,max_stat,1)
sleep = random.randrange(min_stat,max_stat,1)
decayspeed = random.randrange(min_decay,max_decay,1)
potential = random.randrange(min_workpower, max_workpower,1)
return Tamagotchi(name,hunger,happiness,hygiene,sleep,decayspeed,potential)