mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-01-07 19:46:53 +00:00
minor cleanup
This commit is contained in:
parent
3806531e34
commit
e53944bcb5
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue