def _getTitle(cls, condition): _, relation, relationI18nType, value = getResultsData(condition) _, topRangeLower = condition.getMaxRange() if topRangeLower < TOP_RANGE_LOWEST: return packSimpleTitle(i18n.makeString(QUESTS.DETAILS_CONDITIONS_TOP_TITLE, value=topRangeLower)) elif value is None: return super(_BattleResultsFormatter, cls)._getTitle() else: return packSimpleTitle(value) if condition.keyName == 'markOfMastery' else FormattableField(FORMATTER_IDS.RELATION, (value, relation, relationI18nType))
def _getDescription(self, condition): label, _, _, _ = getResultsData(condition) return packDescriptionField(i18n.makeString(label))