Further work on tweaking the emote system.
This commit is contained in:
parent
382846ae08
commit
0cb2daad83
1 changed files with 2 additions and 1 deletions
|
|
@ -582,6 +582,7 @@ class RecogHandler(object):
|
||||||
self.ref2recog = {}
|
self.ref2recog = {}
|
||||||
self.obj2regex = {}
|
self.obj2regex = {}
|
||||||
self.obj2recog = {}
|
self.obj2recog = {}
|
||||||
|
self._cache()
|
||||||
|
|
||||||
def _cache(self):
|
def _cache(self):
|
||||||
"""
|
"""
|
||||||
|
|
@ -890,7 +891,7 @@ class CmdRecog(Command): # assign personal alias to object in room
|
||||||
caller.msg("Usage: recog <sdesc> as <alias>")
|
caller.msg("Usage: recog <sdesc> as <alias>")
|
||||||
return
|
return
|
||||||
sdesc = self.sdesc
|
sdesc = self.sdesc
|
||||||
alias = self.alias
|
alias = self.alias.rstrip(".?!")
|
||||||
prefixed_sdesc = sdesc if sdesc.startswith(_PREFIX) else _PREFIX + sdesc
|
prefixed_sdesc = sdesc if sdesc.startswith(_PREFIX) else _PREFIX + sdesc
|
||||||
candidates = caller.location.contents
|
candidates = caller.location.contents
|
||||||
matches = parse_sdescs_and_recogs(caller, candidates, prefixed_sdesc, search_mode=True)
|
matches = parse_sdescs_and_recogs(caller, candidates, prefixed_sdesc, search_mode=True)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue