Separate triforce pieces in pool from the item pool setting

This commit is contained in:
espeon65536
2021-09-11 11:19:23 -05:00
committed by Fabian Dill
parent e2b36dfa7d
commit 0df2b2221d
3 changed files with 20 additions and 11 deletions

View File

@@ -115,13 +115,6 @@ item_difficulty_max = {
},
}
TriforceCounts = {
'plentiful': Decimal(2.00),
'balanced': Decimal(1.50),
'scarce': Decimal(1.25),
'minimal': Decimal(1.00),
}
DT_vanilla = (
['Recovery Heart'] * 2)
@@ -1356,7 +1349,7 @@ def get_pool_core(world):
world.remove_from_start_inventory.append(item.name)
if world.triforce_hunt:
triforce_count = int((TriforceCounts[world.item_pool_value] * world.triforce_goal).to_integral_value(rounding=ROUND_HALF_UP))
triforce_count = int((Decimal(100 + world.extra_triforce_percentage)/100 * world.triforce_goal).to_integral_value(rounding=ROUND_HALF_UP))
pending_junk_pool.extend(['Triforce Piece'] * triforce_count)
if world.shuffle_ganon_bosskey == 'on_lacs':