def _getAutoDescriptionData(self, useBigIco=False): paramName = self.discount.getParamName() if 'exchangeRate' in paramName: discountValue = self.__getExchangeRateBonusIco(useBigIco) elif paramName in ('freeXPConversionDiscrecity', 'freeXPToTManXPRate'): discount = self._getMaxDiscount() discountValue = formatMultiplierValue(discount.discountValue) else: discountValue = self._getAdditionalDescriptionData(useBigIco) return discountValue
def _getAutoDescriptionData(self, useBigIco = False): """format string with auto description about action :param useBigIco: big/small icon in text :return: i18n string """ paramName = self.discount.getParamName() if 'exchangeRate' in paramName: discountValue = self.__getExchangeRateBonusIco(useBigIco) elif paramName in ('freeXPConversionDiscrecity', 'freeXPToTManXPRate'): discount = self._getMaxDiscount() discountValue = formatMultiplierValue(discount.discountValue) else: discountValue = self._getAdditionalDescriptionData(useBigIco) return discountValue