mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-10-07 08:53:09 -07:00
KH2: Keyblade Min Max Clarification (#6188)
Actually swap option values for keyblade min an max to show correctly in spoiler log. And clarify in the warning the two values get swapped. (same as bounties but not lucky emblems)
This commit is contained in:
1 parent
aa8e057fc5
commit
c1980f322a
1 file changed
+6
-3
@@ -59,9 +59,12 @@ def patch_kh2(self, output_directory):
|
||||
|
||||
if self.options.Keyblade_Minimum.value > self.options.Keyblade_Maximum.value:
|
||||
logging.info(
|
||||
f"{self.multiworld.get_file_safe_player_name(self.player)} has Keyblade Minimum greater than Keyblade Maximum")
|
||||
f"{self.multiworld.get_file_safe_player_name(self.player)} has Keyblade Minimum greater than Keyblade Maximum."
|
||||
f" Swapping Minimum and Maximum")
|
||||
keyblademin = self.options.Keyblade_Maximum.value
|
||||
keyblademax = self.options.Keyblade_Minimum.value
|
||||
self.options.Keyblade_Maximum.value = keyblademax
|
||||
self.options.Keyblade_Minimum.value = keyblademin
|
||||
else:
|
||||
keyblademin = self.options.Keyblade_Minimum.value
|
||||
keyblademax = self.options.Keyblade_Maximum.value
|
||||
@@ -514,10 +517,10 @@ def patch_kh2(self, output_directory):
|
||||
|
||||
# client install generating
|
||||
apworldloc = os.path.join("lib","worlds")
|
||||
if not os.path.isfile(Utils.user_path(apworldloc, 'kh2.apworld')):
|
||||
if not os.path.isfile(Utils.user_path(apworldloc, 'kh2.apworld')):
|
||||
apworldloc = os.path.join("custom_worlds", "")
|
||||
if os.path.exists(os.path.join(apworldloc,"kh2.apworld")):
|
||||
try:
|
||||
try:
|
||||
with zipfile.ZipFile(Utils.user_path(os.path.join(
|
||||
apworldloc, 'kh2.apworld')), 'r') as apworld_archive:
|
||||
# zipfile requires the forward slash
|
||||
|
||||
Reference in new issue
Block a user