Skip to content

Commit

Permalink
[LTTP] Fix a bug in Triforce Pieces Mode: Extra
Browse files Browse the repository at this point in the history
When triforce_pieces_mode is set to "extra", the number of Triforce pieces in the pool should be equal to the number required plus the number extra. The number available was being used in this calculation, instead of the number required.
  • Loading branch information
Kappatechy committed Aug 13, 2024
1 parent 50330cf commit 4e1480f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worlds/alttp/ItemPool.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ def place_item(loc, item):
if 'triforce_hunt' in goal:

if world.triforce_pieces_mode[player].value == TriforcePiecesMode.option_extra:
treasure_hunt_total = (world.triforce_pieces_available[player].value
treasure_hunt_total = (world.triforce_pieces_required[player].value
+ world.triforce_pieces_extra[player].value)
elif world.triforce_pieces_mode[player].value == TriforcePiecesMode.option_percentage:
percentage = float(world.triforce_pieces_percentage[player].value) / 100
Expand Down

0 comments on commit 4e1480f

Please sign in to comment.