Work around a startup bug
This commit is contained in:
parent
f799169bfc
commit
56c29c008f
1 changed files with 5 additions and 0 deletions
|
|
@ -26,6 +26,11 @@ class Character(Object, DefaultCharacter):
|
||||||
"""
|
"""
|
||||||
def at_object_creation(self):
|
def at_object_creation(self):
|
||||||
"called when a character is first created."
|
"called when a character is first created."
|
||||||
|
if self.dbref != "#1":
|
||||||
|
self.create_letter()
|
||||||
|
|
||||||
|
def create_letter(self):
|
||||||
|
"create a welcome letter in a character's inventory"
|
||||||
letter = spawn({
|
letter = spawn({
|
||||||
"typeclass": "typeclasses.readables.Letter",
|
"typeclass": "typeclasses.readables.Letter",
|
||||||
"key": "letter",
|
"key": "letter",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue