Пример #1
0
 def _handleCondition(self, name, data, uniqueName, group):
     if name == 'win':
         return conditions.Win(uniqueName, data)
     if name == 'isAlive':
         return conditions.Survive(uniqueName, data)
     if name == 'achievements':
         return conditions.Achievements(uniqueName, data)
     if name == 'vehicleKills':
         return conditions.VehicleKills(uniqueName, data)
     if name == 'clanKills':
         return conditions.ClanKills(uniqueName, data)
     if name == 'results':
         return conditions.BattleResults(uniqueName, data)
     if name == 'unit':
         return conditions.UnitResults(uniqueName, data,
                                       self.__preBattleCond)
     if name == 'clubs':
         return conditions.ClubDivision(uniqueName, data)
Пример #2
0
 def _handleCondition(self, name, data, uniqueName, group):
     if name == 'win':
         return conditions.Win(uniqueName, data)
     if name == 'isAlive':
         return conditions.Survive(uniqueName, data)
     if name == 'achievements':
         return conditions.Achievements(uniqueName, data)
     if name == 'vehicleKills':
         return conditions.VehicleKills(uniqueName, data)
     if name == 'vehicleDamage':
         return conditions.VehicleDamage(uniqueName, data)
     if name == 'vehicleStun':
         return conditions.VehicleStun(uniqueName, data)
     if name == 'clanKills':
         return conditions.ClanKills(uniqueName, data)
     if name == 'results':
         return conditions.BattleResults(uniqueName, data)
     if name == 'crits':
         return conditions.CritsGroup(uniqueName, data)
     if name == 'unit':
         return conditions.UnitResults(uniqueName, data,
                                       self.__preBattleCond)
     return conditions.MultiStunEvent(
         uniqueName, data) if name == 'multiStunEvent' else None