diff --git a/assets/events.py b/assets/events.py index 8aa7b49..b623c5a 100644 --- a/assets/events.py +++ b/assets/events.py @@ -12,7 +12,7 @@ EVENTS = [ 'affected_players' : 1, }, { - 'id' : 'BOMB_EXPLOSION' + 'id' : 'BOMB_EXPLOSION', 'text' : '{Player1} ha attacato {player2}', 'resolve_text' : '{Player1} ha causato {effetto_collaterale}', 'fail_text' : '{Player1} ha fallito, {player2} รจ indenne', diff --git a/entities/event_picker.py b/entities/event_picker.py index 089ac52..5f3eea2 100644 --- a/entities/event_picker.py +++ b/entities/event_picker.py @@ -11,7 +11,7 @@ class ArenaEventPicker(): the_player = _random.choice(self.players) the_player_id = the_player.get('id') - self.players = list(filter(lambda x : x.get('id') != the_player_id) + self.players = list(filter(lambda x : x.get('id') != the_player_id)) self.already_picked_players.append(the_player) @@ -42,16 +42,16 @@ class ArenaEventPicker(): if requirements.get(check) and check == 'status': needed_health = requirements.get('check') - if '>' in requirements.get(check) and requirements.get(check) > in needed_health: + if '>' in requirements.get(check) and requirements.get(check) > needed_health: elegible_events.append(event) - if '<' in requirements.get(check) and requirements.get(check) < in needed_health: + if '<' in requirements.get(check) and requirements.get(check) < needed_health: elegible_events.append(event) if requirements.get(check) and check == 'reputation': needed_reputation = requirements.get('reputation') - if '>' in requirements.get(check) and requirements.get(check) > in needed_reputation: + if '>' in requirements.get(check) and requirements.get(check) > needed_reputation: elegible_events.append(event) - if '<' in requirements.get(check) and requirements.get(check) < in needed_reputation: + if '<' in requirements.get(check) and requirements.get(check) < needed_reputation: elegible_events.append(event) if check == 'affected_players':