Added at_init() call in idmapper and made sure to not deprecate it. Fixed bugs in search and continued work on tutorial world.

This commit is contained in:
Griatch 2015-02-22 11:35:16 +01:00
parent 621a2f73e9
commit 7f0e0d5ef8
8 changed files with 63 additions and 29 deletions

View file

@ -386,9 +386,9 @@ class DefaultObject(ObjectDB):
if is_string:
# searchdata is a string; wrap some common self-references
if searchdata.lower() in ("here", ):
return self.location
return [self.location] if quiet else self.location
if searchdata.lower() in ("me", "self",):
return self
return [self] if quiet else self
if use_nicks:
# do nick-replacement on search
@ -961,8 +961,6 @@ class DefaultObject(ObjectDB):
def at_init(self):
"""
DEPRECATED: Use __init__ instead.
This is always called whenever this object is initiated --
that is, whenever it its typeclass is cached from memory. This
happens on-demand first time the object is used or activated