Skip to content

Commit

Permalink
Use magic naming for heatzone actor
Browse files Browse the repository at this point in the history
Fix multiline export from RDV
  • Loading branch information
ThanatosGit committed Oct 2, 2023
1 parent 596b549 commit ba46f40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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

0 comments on commit ba46f40

Please sign in to comment.