Skip to content

Commit

Permalink
[TLOZ]: Remove use of per_slot_randoms
Browse files Browse the repository at this point in the history
We only used it in two spots for randomizing the secret rupee cave values. Uses proper world random now.
  • Loading branch information
t3hf1gm3nt committed May 2, 2024
1 parent 49862dc commit 7d5299d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worlds/tloz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,11 @@ def apply_randomizer(self):
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]
Expand Down

0 comments on commit 7d5299d

Please sign in to comment.