mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 12:07:17 +02:00
split recog and sdesc colors
This commit is contained in:
parent
543d5f03db
commit
e0a9310b1b
1 changed files with 4 additions and 8 deletions
|
|
@ -1585,11 +1585,6 @@ class ContribRPCharacter(DefaultCharacter, ContribRPObject):
|
|||
This is a character class that has poses, sdesc and recog.
|
||||
"""
|
||||
|
||||
# Handlers
|
||||
@lazy_property
|
||||
def sdesc(self):
|
||||
return SdescHandler(self)
|
||||
|
||||
@lazy_property
|
||||
def recog(self):
|
||||
return RecogHandler(self)
|
||||
|
|
@ -1739,14 +1734,15 @@ class ContribRPCharacter(DefaultCharacter, ContribRPObject):
|
|||
translated from the original sdesc at this point.
|
||||
obj (Object): The object the recog:ed string belongs to.
|
||||
This is not used by default.
|
||||
Kwargs:
|
||||
ref (str): See process_sdesc.
|
||||
|
||||
Returns:
|
||||
recog (str): The modified recog string.
|
||||
|
||||
"""
|
||||
return self.process_sdesc(recog, obj, **kwargs)
|
||||
if not sdesc:
|
||||
return ""
|
||||
|
||||
return "|m%s|n" % sdesc
|
||||
|
||||
def process_language(self, text, speaker, language, **kwargs):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue