Fixed spoiler log and pooling issues with custom TFH amounts
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user