diff --git a/open_samus_returns_rando/patcher_editor.py b/open_samus_returns_rando/patcher_editor.py index f51d284..161dd81 100644 --- a/open_samus_returns_rando/patcher_editor.py +++ b/open_samus_returns_rando/patcher_editor.py @@ -61,9 +61,9 @@ def copy_actor(self, scenario: str, coords, template_actor: Container, new_name: new_actor = copy.deepcopy(template_actor) current_scenario = self.get_scenario(scenario) current_scenario.raw.actors[layer_index][new_name] = new_actor - new_actor.x = coords[0] + offset[0] - new_actor.y = coords[1] + offset[1] - new_actor.z = coords[2] + offset[2] + new_actor["position"][0] = coords[0] + offset[0] + new_actor["position"][1] = coords[1] + offset[1] + new_actor["position"][2] = coords[2] + offset[2] return new_actor diff --git a/open_samus_returns_rando/samus_returns_patcher.py b/open_samus_returns_rando/samus_returns_patcher.py index ec2aa4f..37f1c4c 100644 --- a/open_samus_returns_rando/samus_returns_patcher.py +++ b/open_samus_returns_rando/samus_returns_patcher.py @@ -32,7 +32,7 @@ def create_custom_init(configuration: dict) -> str: energy_per_tank = configuration["energy_per_tank"] max_life = inventory.pop("ITEM_MAX_LIFE") - + aeion_per_tank = configuration["aeion_per_tank"] max_aeion = inventory.pop("ITEM_MAX_SPECIAL_ENERGY")