Add getspellname(spell_id) to Perl/Lua.

This commit is contained in:
Alex
2020-03-31 19:48:44 -04:00
parent 3a7908b1de
commit ceb8b31bc0
4 changed files with 32 additions and 0 deletions
+5
View File
@@ -393,6 +393,10 @@ bool lua_is_disc_tome(int item_id) {
return quest_manager.isdisctome(item_id);
}
std::string lua_get_spell_name(uint32 spell_id) {
return quest_manager.getspellname(spell_id);
}
void lua_safe_move() {
quest_manager.safemove();
}
@@ -1648,6 +1652,7 @@ luabind::scope lua_register_general() {
luabind::def("depop_zone", &lua_depop_zone),
luabind::def("repop_zone", &lua_repop_zone),
luabind::def("is_disc_tome", &lua_is_disc_tome),
luabind::def("get_spell_name", (std::string(*)(uint32))&lua_get_spell_name),
luabind::def("safe_move", &lua_safe_move),
luabind::def("rain", &lua_rain),
luabind::def("snow", &lua_snow),