From efbbaee7015bae3145776529358f3afd7a8a8fac Mon Sep 17 00:00:00 2001 From: dyceron Date: Wed, 17 Jul 2024 20:28:25 -0400 Subject: [PATCH] Simplify --- src/open_samus_returns_rando/lua_editor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/open_samus_returns_rando/lua_editor.py b/src/open_samus_returns_rando/lua_editor.py index acf8da7..73910f4 100644 --- a/src/open_samus_returns_rando/lua_editor.py +++ b/src/open_samus_returns_rando/lua_editor.py @@ -197,11 +197,11 @@ def add_progressive_models(self, pickup: dict, actordef_name: str) -> None: self._progressive_models += models def _create_custom_init(self, editor: PatcherEditor, configuration: dict) -> str: - cosmetic_options: dict = configuration["cosmetic_patches"] - game_patches: dict = configuration["game_patches"] inventory: dict[str, int] = configuration["starting_items"] starting_location: dict = configuration["starting_location"] starting_text: list[str] = configuration.get("starting_text", []) + game_patches: dict = configuration["game_patches"] + cosmetic_options: dict = configuration["cosmetic_patches"] configuration_identifier: str = configuration["configuration_identifier"] enable_remote_lua: bool = configuration.get("enable_remote_lua", False) @@ -275,7 +275,7 @@ def chunks(array: list[str], n: int) -> Iterable[list[str]]: "layout_uuid": layout_uuid, "enable_remote_lua": enable_remote_lua, "baby_metroid_hint": baby_metroid_hint, - "tanks_refill_ammo": True if game_patches["tanks_refill_ammo"] else False + "tanks_refill_ammo": game_patches["tanks_refill_ammo"] } return lua_util.replace_lua_template("custom_init.lua", replacement)