Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
dyceron committed Jul 18, 2024
1 parent 1cf4de9 commit efbbaee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/open_samus_returns_rando/lua_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit efbbaee

Please sign in to comment.