From db50f6787632ee102ba93d2d26e3333855c30e7e Mon Sep 17 00:00:00 2001 From: dawnDus <96957561+dawndus@users.noreply.github.com> Date: Fri, 28 Jan 2022 12:46:33 -0500 Subject: [PATCH] Fix FacingPlayer condition --- src/scripting/tsc/text_script.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripting/tsc/text_script.rs b/src/scripting/tsc/text_script.rs index 968ab3c..aa446d3 100644 --- a/src/scripting/tsc/text_script.rs +++ b/src/scripting/tsc/text_script.rs @@ -1318,7 +1318,7 @@ impl TextScriptVM { if direction == Direction::FacingPlayer { npc.direction = - if game_scene.player1.x < npc.x { Direction::Right } else { Direction::Left }; + if game_scene.player1.x < npc.x { Direction::Left } else { Direction::Right }; } else { npc.direction = direction; } @@ -1371,7 +1371,7 @@ impl TextScriptVM { if direction == Direction::FacingPlayer { npc.direction = - if game_scene.player1.x < npc.x { Direction::Right } else { Direction::Left }; + if game_scene.player1.x < npc.x { Direction::Left } else { Direction::Right }; } else { npc.direction = direction; } @@ -1408,7 +1408,7 @@ impl TextScriptVM { if direction == Direction::FacingPlayer { npc.direction = - if game_scene.player1.x < npc.x { Direction::Right } else { Direction::Left }; + if game_scene.player1.x < npc.x { Direction::Left } else { Direction::Right }; } else { npc.direction = direction; }