Fixed default TF pieces from CLI

This commit is contained in:
codemann8
2022-01-03 23:18:54 -06:00
parent 4ce7fd15c9
commit 51c03ffd2b
3 changed files with 6 additions and 5 deletions

View File

@@ -2839,7 +2839,7 @@ class Spoiler(object):
if self.world.custom and p in self.world.customitemarray: if self.world.custom and p in self.world.customitemarray:
self.metadata['triforcegoal'][p], self.metadata['triforcepool'][p] = set_default_triforce(self.metadata['goal'][p], self.world.customitemarray[p]["triforcepiecesgoal"], self.world.customitemarray[p]["triforcepieces"]) self.metadata['triforcegoal'][p], self.metadata['triforcepool'][p] = set_default_triforce(self.metadata['goal'][p], self.world.customitemarray[p]["triforcepiecesgoal"], self.world.customitemarray[p]["triforcepieces"])
else: else:
self.metadata['triforcegoal'][p], self.metadata['triforcepool'][p] = set_default_triforce(self.metadata['goal'][p], 0, 0) self.metadata['triforcegoal'][p], self.metadata['triforcepool'][p] = set_default_triforce(self.metadata['goal'][p], self.world.treasure_hunt_count, self.world.treasure_hunt_total)
def parse_data(self): def parse_data(self):
self.medallions = OrderedDict() self.medallions = OrderedDict()

6
CLI.py
View File

@@ -176,13 +176,13 @@ def parse_settings():
"mixed_travel": "prevent", "mixed_travel": "prevent",
"standardize_palettes": "standardize", "standardize_palettes": "standardize",
"triforce_pool": 30, "triforce_pool": 0,
"triforce_goal": 20, "triforce_goal": 0,
"triforce_pool_min": 0, "triforce_pool_min": 0,
"triforce_pool_max": 0, "triforce_pool_max": 0,
"triforce_goal_min": 0, "triforce_goal_min": 0,
"triforce_goal_max": 0, "triforce_goal_max": 0,
"triforce_min_difference": 10, "triforce_min_difference": 0,
"code": "", "code": "",
"multi": 1, "multi": 1,

View File

@@ -43,7 +43,8 @@
"pedestal", "pedestal",
"dungeons", "dungeons",
"triforcehunt", "triforcehunt",
"crystals" "crystals",
"trinity"
] ]
}, },
"difficulty": { "difficulty": {