Fixed spoiler log and pooling issues with custom TFH amounts

This commit is contained in:
codemann8
2021-12-31 12:52:29 -06:00
parent 291b8e38da
commit 9f7d62a081
2 changed files with 15 additions and 3 deletions

View File

@@ -2834,6 +2834,12 @@ class Spoiler(object):
'triforcepool': self.world.treasure_hunt_total,
'code': {p: Settings.make_code(self.world, p) for p in range(1, self.world.players + 1)}
}
if self.world.custom:
for p in range(1, self.world.players + 1):
if self.world.customitemarray[p]["triforcepiecesgoal"] > 0:
self.metadata['triforcegoal'][p] = max(min(self.world.customitemarray[p]["triforcepiecesgoal"], 99), 1)
if self.world.customitemarray[p]["triforcepieces"] > 0:
self.metadata['triforcepool'][p] = max(min(self.world.customitemarray[p]["triforcepieces"], 168), self.metadata['triforcegoal'][p])
def parse_data(self):
self.medallions = OrderedDict()