Skip to content

Commit

Permalink
align max players of automod to documentation (#575)
Browse files Browse the repository at this point in the history
The documentation mentions max players in seeding automod to be
exclusive, but the code handled it inclusive. This commit aligns the
code to the documentation again.
  • Loading branch information
FlorianSW authored May 28, 2024
1 parent 5373159 commit 3c7f255
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rcon/automods/seeding_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def punitions_to_apply(
drc = self.config.disallowed_roles
if (
server_player_count < drc.min_players
or server_player_count > drc.max_players
or server_player_count >= drc.max_players
):
self._disable_for_round("disallowed_roles")
else:
Expand All @@ -277,7 +277,7 @@ def punitions_to_apply(
dwc = self.config.disallowed_weapons
if (
server_player_count < dwc.min_players
or server_player_count > dwc.max_players
or server_player_count >= dwc.max_players
):
self._disable_for_round("disallowed_weapons")
else:
Expand All @@ -286,7 +286,7 @@ def punitions_to_apply(
ecf = self.config.enforce_cap_fight
if (
server_player_count < ecf.min_players
or server_player_count > ecf.max_players
or server_player_count >= ecf.max_players
):
self._disable_for_round("enforce_cap_fight")
else:
Expand Down

0 comments on commit 3c7f255

Please sign in to comment.