The Witness: Fix random events not having the correct probabilities (#2340)

This commit is contained in:
NewSoupVi 2023-10-22 06:48:06 +02:00 committed by GitHub
parent ee31051c43
commit 9f126ad0d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ class WitnessWorld(World):
def _get_slot_data(self):
return {
'seed': self.multiworld.per_slot_randoms[self.player].randint(0, 1000000),
'seed': self.random.randrange(0, 1000000),
'victory_location': int(self.player_logic.VICTORY_LOCATION, 16),
'panelhex_to_id': self.locat.CHECK_PANELHEX_TO_ID,
'item_id_to_door_hexes': StaticWitnessItems.get_item_to_door_mappings(),

View File

@ -306,7 +306,7 @@ def make_hints(multiworld: MultiWorld, player: int, hint_amount: int):
else:
hints.append((f"{loc} contains {item[0]}.", item[2]))
next_random_hint_is_item = multiworld.per_slot_randoms[player].randint(0, 2)
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
while len(hints) < hint_amount:
if next_random_hint_is_item: