[TLOZ]: Remove use of per_slot_randoms (#3255)

We only used it in two spots for randomizing the secret rupee cave values. Uses proper world random now.
This commit is contained in:
t3hf1gm3nt 2024-05-02 20:56:20 -04:00 committed by GitHub
parent 255e52642e
commit b68be7360c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -260,11 +260,11 @@ class TLoZWorld(World):
rom_data[location_id] = item_id
# We shuffle the tiers of rupee caves. Caves that shared a value before still will.
secret_caves = self.multiworld.per_slot_randoms[self.player].sample(sorted(secret_money_ids), 3)
secret_caves = self.random.sample(sorted(secret_money_ids), 3)
secret_cave_money_amounts = [20, 50, 100]
for i, amount in enumerate(secret_cave_money_amounts):
# Giving approximately double the money to keep grinding down
amount = amount * self.multiworld.per_slot_randoms[self.player].triangular(1.5, 2.5)
amount = amount * self.random.triangular(1.5, 2.5)
secret_cave_money_amounts[i] = int(amount)
for i, cave in enumerate(secret_caves):
rom_data[secret_money_ids[cave]] = secret_cave_money_amounts[i]