def format(self, for_forum = False, for_html = False): if self.none: return '_NOCOST_' else: return utils.mana_untranslate(utils.mana_open_delimiter + ''.join(self.sequence) + utils.mana_close_delimiter, for_forum, for_html)
def __str__(self): if self.none: return '_NOCOST_' return utils.mana_untranslate(utils.mana_open_delimiter + ''.join(self.sequence) + utils.mana_close_delimiter)