Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random fixes #125

Merged
merged 1 commit into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion open_samus_returns_rando/lua_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def get_script_class(self, pickup: dict, actordef_name: str = "") -> str:
"name": class_name,
"resources": resources,
"parent": parent,
"caption": lua_util.wrap_string(pickup["caption"]),
"caption": lua_util.wrap_string(pickup["caption"].replace("\n", "\\n")),
"sound": lua_util.wrap_string(sound),
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,12 @@ def _patch_area_5_2(editor: PatcherEditor):
scenario_5.raw["objects_c"]["LS_Heat_002"] = new_logic_shape

heat_actor = _get_heat_trigger(editor)
new_actor = editor.copy_actor(name_of_scenario, (5600.0, 16000.0, 0.0), heat_actor, "TG_Heat_004", 2)
new_actor = editor.copy_actor(name_of_scenario, (5600.0, 16000.0, 0.0), heat_actor, "TG_Heat_033", 2)
new_actor["components"][0]["arguments"][16]["value"] = "LS_Heat_002"

scenario_5.add_actor_to_entity_groups("collision_camera_009", "TG_Heat_004", True)
scenario_5.add_actor_to_entity_groups("collision_camera_015", "TG_Heat_004", True)
scenario_5.add_actor_to_entity_groups("collision_camera_017", "TG_Heat_004", True)
scenario_5.add_actor_to_entity_groups("collision_camera_009", "TG_Heat_033", True)
scenario_5.add_actor_to_entity_groups("collision_camera_015", "TG_Heat_033", True)
scenario_5.add_actor_to_entity_groups("collision_camera_017", "TG_Heat_033", True)

def _patch_area_6_b(editor: PatcherEditor):
name_of_scenario = "s065_area6b"
Expand Down