def _showAward(self, ctx): data = ctx[1].data goodies = data.get('goodies', {}) for boosterID in goodies: booster = g_goodiesCache.getBooster(boosterID) if booster is not None: shared_events.showBoosterAward(booster)
def _showAward(self, ctx): goodies = ctx[1].data.get('goodies', {}) for boosterID in goodies: booster = self.goodiesCache.getBooster(boosterID) if booster is not None and booster.enabled: shared_events.showBoosterAward(booster) return
def _showAward(self, ctx): battleResult = ctx[1].data battleResult = next(battleResult.itervalues()) goodies = battleResult.get('goodies', {}) for boosterID in goodies: booster = g_goodiesCache.getBooster(boosterID) if booster is not None: shared_events.showBoosterAward(booster)
def _showAward(self, ctx): goodies = ctx[1].data.get('goodies', {}) for boosterID in goodies: booster = g_goodiesCache.getBooster(boosterID) if booster is not None and booster.enabled: shared_events.showBoosterAward(booster) return