From e3565d42e894539fec72ae81b49c947718e66240 Mon Sep 17 00:00:00 2001 From: cloudofdarkhole6 Date: Sun, 20 Oct 2024 19:05:14 +0200 Subject: [PATCH] Adds character name to the mod.yml for the patch to know which character got rolled --- worlds/khbbs/OpenKH.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/worlds/khbbs/OpenKH.py b/worlds/khbbs/OpenKH.py index c368f5d3100b..efd45ec17360 100644 --- a/worlds/khbbs/OpenKH.py +++ b/worlds/khbbs/OpenKH.py @@ -29,9 +29,20 @@ def write_contents(self, opened_zipfile: zipfile.ZipFile) -> None: def patch_khbbs(self, output_directory, character): mod_name = f"AP-{self.multiworld.seed_name}-P{self.player}-{self.multiworld.get_file_safe_player_name(self.player)}" mod_dir = os.path.join(output_directory, mod_name + "_" + Utils.__version__) + character_name = "" seed_lua = build_seed_lua(self, character) - + + match character: + case 0: + character_name = "Ventus" + case 1: + character_name = "Aqua" + case 2: + character_name = "Terra" + case _: # Used if somehow the character is not in range 0-2 + character_name = "Invalid character" + self.mod_yml = { "assets": [ { @@ -44,7 +55,7 @@ def patch_khbbs(self, output_directory, character): ] } ], - 'title': 'BBSFMAP Randomizer Seed' + 'title': f'BBSFMAP Randomizer Seed for {character_name}' } openkhmod = {