Support using both absolute and relative position/rotation in a single enemy location
@@ -445,14 +445,14 @@ def save_changed_enemies_and_randomize_their_params(self):
enemy.x_pos = x
enemy.y_pos = y
enemy.z_pos = z
- elif "Position offset" in enemy_location:
+ if "Position offset" in enemy_location:
x, y, z = enemy_location["Position offset"]
enemy.x_pos += x
enemy.y_pos += y
enemy.z_pos += z
if "Y Rotation" in enemy_location:
enemy.y_rot = enemy_location["Y Rotation"]
- elif "Y Rotation offset" in enemy_location:
+ if "Y Rotation offset" in enemy_location:
enemy.y_rot += enemy_location["Y Rotation offset"]
enemy.y_rot &= 0xFFFF
