[Quest API] Add DoAugmentSlotsMatch() to Perl/Lua. (#2687)

# Perl
- Add `quest::do_augment_slots_match(item_one, item_two)`.

# Lua
- Add `eq.do_augment_slots_match(item_one, item_two)`.

# Notes
- Allows operators to see if augments slots across two items match for something like moving augments from one item to another.
This commit is contained in:
Alex King
2023-01-01 11:25:37 -05:00
committed by GitHub
parent 501ea4b736
commit 3a4ba6f422
4 changed files with 33 additions and 0 deletions
+6
View File
@@ -3686,6 +3686,11 @@ std::string lua_item_link(uint32 item_id, int16 charges, uint32 aug1, uint32 aug
return quest_manager.varlink(item_id, charges, aug1, aug2, aug3, aug4, aug5, aug6, attuned);
}
bool lua_do_augment_slots_match(uint32 item_one, uint32 item_two)
{
return quest_manager.DoAugmentSlotsMatch(item_one, item_two);
}
#define LuaCreateNPCParse(name, c_type, default_value) do { \
cur = table[#name]; \
if(luabind::type(cur) != LUA_TNIL) { \
@@ -4201,6 +4206,7 @@ luabind::scope lua_register_general() {
luabind::def("do_anim", (void(*)(int,int))&lua_do_anim),
luabind::def("do_anim", (void(*)(int,int,bool))&lua_do_anim),
luabind::def("do_anim", (void(*)(int,int,bool,int))&lua_do_anim),
luabind::def("do_augment_slots_match", &lua_do_augment_slots_match),
/*
Cross Zone
*/