minor cleanup

This commit is contained in:
Alula 2021-06-28 13:08:29 +02:00
parent 3806531e34
commit e53944bcb5
No known key found for this signature in database
GPG Key ID: 3E00485503A1D8BA
3 changed files with 1 additions and 5 deletions

View File

@ -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

View File

@ -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 {

View File

@ -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";