[Quest API] Add getdeityname(deity_id) to Perl/Lua. (#1404)

- Add quest::getdeityname(deity_id) to Perl.
- Add eq.get_deity_name(deity_id) to Lua.

Co-authored-by: Chris Miles <akkadius1@gmail.com>
This commit is contained in:
Alex
2021-06-16 11:45:38 -04:00
committed by GitHub
parent ed6e53be54
commit f8a72296e6
4 changed files with 28 additions and 2 deletions
+6 -1
View File
@@ -2460,6 +2460,10 @@ std::string lua_get_clean_npc_name_by_id(uint32 npc_id) {
}
std::string lua_get_deity_name(uint32 deity_id) {
return quest_manager.getdeityname(deity_id);
}
std::string lua_get_inventory_slot_name(int16 slot_id) {
return quest_manager.getinventoryslotname(slot_id);
}
@@ -3033,9 +3037,10 @@ luabind::scope lua_register_general() {
luabind::def("cross_zone_add_ldon_loss_by_expedition_id", &lua_cross_zone_add_ldon_loss_by_expedition_id),
luabind::def("cross_zone_add_ldon_points_by_expedition_id", &lua_cross_zone_add_ldon_points_by_expedition_id),
luabind::def("cross_zone_add_ldon_win_by_expedition_id", &lua_cross_zone_add_ldon_win_by_expedition_id),
luabind::def("get_deity_name", &lua_get_deity_name),
luabind::def("get_inventory_slot_name", &lua_get_inventory_slot_name),
luabind::def("rename", &lua_rename),
/**
* Expansions
*/