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.
|
This is a character class that has poses, sdesc and recog.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Handlers
|
|
||||||
@lazy_property
|
|
||||||
def sdesc(self):
|
|
||||||
return SdescHandler(self)
|
|
||||||
|
|
||||||
@lazy_property
|
@lazy_property
|
||||||
def recog(self):
|
def recog(self):
|
||||||
return RecogHandler(self)
|
return RecogHandler(self)
|
||||||
|
|
@ -1739,14 +1734,15 @@ class ContribRPCharacter(DefaultCharacter, ContribRPObject):
|
||||||
translated from the original sdesc at this point.
|
translated from the original sdesc at this point.
|
||||||
obj (Object): The object the recog:ed string belongs to.
|
obj (Object): The object the recog:ed string belongs to.
|
||||||
This is not used by default.
|
This is not used by default.
|
||||||
Kwargs:
|
|
||||||
ref (str): See process_sdesc.
|
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
recog (str): The modified recog string.
|
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):
|
def process_language(self, text, speaker, language, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue