def getDescriptionText(self): goldAmt = EnemyGlobals.getMaxGoldDrop(None, self.amount, 5) text = PLocalizer.GoldRewardDesc % goldAmt if GOLDFACTOR_HOLIDAY == 2: text = + '\\ + ' + PLocalizer.LootGoldDouble % goldAmt return text
def getDescriptionText(self): goldAmt = EnemyGlobals.getMaxGoldDrop(None, self.amount, 5) text = PLocalizer.GoldRewardDesc % goldAmt if GOLDFACTOR_HOLIDAY == 2: text = +'\\ + ' + PLocalizer.LootGoldDouble % goldAmt return text
def applyTo(self, trade, av): avId = av.getDoId() goldAmt = EnemyGlobals.getMaxGoldDrop(None, self.amount, 5) if Freebooter.getPaidStatusAI(avId): if REWARD_TO == 2 or REWARD_TO == 3: goldAmt *= GOLDFACTOR_HOLIDAY elif not Freebooter.getPaidStatusAI(avId): if REWARD_TO == 1 or REWARD_TO == 3: goldAmt *= GOLDFACTOR_HOLIDAY trade.giveGoldInPocket(goldAmt)
def applyTo(self, trade, av): avId = av.getDoId() goldAmt = EnemyGlobals.getMaxGoldDrop(None, self.amount, 5) if Freebooter.getPaidStatusAI(avId): if REWARD_TO == 2 or REWARD_TO == 3: goldAmt *= GOLDFACTOR_HOLIDAY elif not Freebooter.getPaidStatusAI(avId): if REWARD_TO == 1 or REWARD_TO == 3: goldAmt *= GOLDFACTOR_HOLIDAY trade.giveGoldInPocket(goldAmt)