The Witness: Fix random events not having the correct probabilities (#2340)
This commit is contained in:
parent
ee31051c43
commit
9f126ad0d0
|
@ -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(),
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue