Fix unittests, resolve bugs

This commit is contained in:
Griatch 2018-06-10 20:00:35 +02:00
parent e52503b710
commit 116f6e7505
4 changed files with 87 additions and 58 deletions

View file

@ -186,6 +186,7 @@ def prototype_from_object(obj):
obj.key, hashlib.md5(str(time.time())).hexdigest()[:7])
prot['prototype_desc'] = "Built from {}".format(str(obj))
prot['prototype_locks'] = "spawn:all();edit:all()"
prot['prototype_tags'] = []
prot['key'] = obj.db_key or hashlib.md5(str(time.time())).hexdigest()[:6]
prot['typeclass'] = obj.db_typeclass_path