mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
[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:
@@ -260,11 +260,11 @@ class TLoZWorld(World):
|
|||||||
rom_data[location_id] = item_id
|
rom_data[location_id] = item_id
|
||||||
|
|
||||||
# We shuffle the tiers of rupee caves. Caves that shared a value before still will.
|
# 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]
|
secret_cave_money_amounts = [20, 50, 100]
|
||||||
for i, amount in enumerate(secret_cave_money_amounts):
|
for i, amount in enumerate(secret_cave_money_amounts):
|
||||||
# Giving approximately double the money to keep grinding down
|
# 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)
|
secret_cave_money_amounts[i] = int(amount)
|
||||||
for i, cave in enumerate(secret_caves):
|
for i, cave in enumerate(secret_caves):
|
||||||
rom_data[secret_money_ids[cave]] = secret_cave_money_amounts[i]
|
rom_data[secret_money_ids[cave]] = secret_cave_money_amounts[i]
|
||||||
|
Reference in New Issue
Block a user