diff --git a/src/scripting/boot.lua b/src/scripting/boot.lua index 045ea6f..7c9a7ad 100644 --- a/src/scripting/boot.lua +++ b/src/scripting/boot.lua @@ -319,7 +319,7 @@ __doukutsu_rs_runtime_dont_touch._createNPCRef = function(npc_id) elseif property == "direction" then __doukutsu_rs:npcCommand(rawget(self, "id"), 0x121, val) elseif property == "rawDirection" then - __doukutsu_rs:npcCommand(rawget(self, "id"), 0x121, val) + __doukutsu_rs:npcCommand(rawget(self, "id"), 0x121, val) -- <- not a typo end return nil diff --git a/src/scripting/doukutsu.rs b/src/scripting/doukutsu.rs index d2a7385..1867510 100644 --- a/src/scripting/doukutsu.rs +++ b/src/scripting/doukutsu.rs @@ -5,10 +5,7 @@ use lua_ffi::{c_int, LuaObject, State}; use crate::common::{Direction, Rect}; use crate::framework::filesystem; -use crate::npc::NPC; -use crate::player::Player; use crate::rng::RNG; -use crate::scene::game_scene::GameScene; use crate::scripting::{check_status, LuaScriptingState, DRS_RUNTIME_GLOBAL}; pub struct Doukutsu { diff --git a/src/scripting/mod.rs b/src/scripting/mod.rs index afd9c4a..4a0da7b 100644 --- a/src/scripting/mod.rs +++ b/src/scripting/mod.rs @@ -27,7 +27,6 @@ pub struct LuaScriptingState { game_scene: *mut GameScene, } -pub(in crate::scripting) static REF_ERROR: &str = "Reference went out of scope. DO NOT store/use references to game objects outside the event."; pub(in crate::scripting) static DRS_API_GLOBAL: &str = "__doukutsu_rs"; pub(in crate::scripting) static DRS_RUNTIME_GLOBAL: &str = "__doukutsu_rs_runtime_dont_touch";