New syllable based name generation, should increase startup performance

This commit is contained in:
luxick
2016-01-21 16:04:44 +01:00
parent e0e1db1b98
commit cf38fe207f
12 changed files with 58 additions and 94362 deletions

View File

@@ -2,7 +2,6 @@
# -*- coding: utf-8 -*-
from tamagotchi import Tamagotchi
import names
import random
from config import *
@@ -13,7 +12,7 @@ class Mayorgotchi:
def __init__(self, list_of_tamagotchis):
self.mygotchis = list_of_tamagotchis
self.name = names.get_last_name()
self.name = util.generateName()
def remove_corpses(self):
for n in self.mygotchis: