Skip to content

Commit 9f126ad

Browse files
authored
The Witness: Fix random events not having the correct probabilities (#2340)
1 parent ee31051 commit 9f126ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

worlds/witness/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __init__(self, multiworld: "MultiWorld", player: int):
6666

6767
def _get_slot_data(self):
6868
return {
69-
'seed': self.multiworld.per_slot_randoms[self.player].randint(0, 1000000),
69+
'seed': self.random.randrange(0, 1000000),
7070
'victory_location': int(self.player_logic.VICTORY_LOCATION, 16),
7171
'panelhex_to_id': self.locat.CHECK_PANELHEX_TO_ID,
7272
'item_id_to_door_hexes': StaticWitnessItems.get_item_to_door_mappings(),

worlds/witness/hints.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def make_hints(multiworld: MultiWorld, player: int, hint_amount: int):
306306
else:
307307
hints.append((f"{loc} contains {item[0]}.", item[2]))
308308

309-
next_random_hint_is_item = multiworld.per_slot_randoms[player].randint(0, 2)
309+
next_random_hint_is_item = multiworld.per_slot_randoms[player].randrange(0, 2) # Moving this to the new system is in the bigger refactoring PR
310310

311311
while len(hints) < hint_amount:
312312
if next_random_hint_is_item:

0 commit comments

Comments
 (0)