Skip to content

Commit

Permalink
fix operator precedence issue with voxam casts
Browse files Browse the repository at this point in the history
  • Loading branch information
nbrochu committed Nov 29, 2024
1 parent d991132 commit 9be327f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worlds/zork_grand_inquisitor/game_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -1393,7 +1393,7 @@ def _cast_voxam(self, force_wild: bool = False) -> None:

voxam_roll: int = random.randint(1, 100)

if voxam_roll <= self.option_wild_voxam_chance or force_wild:
if (voxam_roll <= self.option_wild_voxam_chance) or force_wild:
starting_location: ZorkGrandInquisitorStartingLocations = (
random.choice(tuple(voxam_cast_game_locations.keys()))
)
Expand Down

0 comments on commit 9be327f

Please sign in to comment.