From d79a0c83fe2983b6e1d9ae16e428dac9cbd6b31b Mon Sep 17 00:00:00 2001 From: codemann8 Date: Sun, 2 Jan 2022 16:04:27 -0600 Subject: [PATCH] Fixed issue with Trinity + Multiworld --- BaseClasses.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/BaseClasses.py b/BaseClasses.py index 389eb722..aa03d9f2 100644 --- a/BaseClasses.py +++ b/BaseClasses.py @@ -2836,10 +2836,11 @@ class Spoiler(object): } 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]) + if p in self.world.customitemarray: + 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()