make triforce pieces required an option

This commit is contained in:
Fabian Dill
2020-06-07 15:22:24 +02:00
parent 68f453f802
commit 17f884d047
6 changed files with 34 additions and 18 deletions

View File

@@ -294,6 +294,10 @@ def roll_settings(weights):
ret.crystals_ganon = get_choice('ganon_open', weights)
ret.triforce_pieces_required = get_choice('triforce_pieces_required',
weights) if "triforce_pieces_required" in weights else 20
ret.triforce_pieces_required = min(max(1, int(ret.triforce_pieces_required)), 30)
ret.mode = get_choice('world_state', weights)
if ret.mode == 'retro':
ret.mode = 'open'