feat: add costume slots, shining types, and enchant stone targeting

This commit is contained in:
shen
2026-10-20 00:06:46 -07:00
parent 86a769f7dd
commit 90ff2a2d7b
11 changed files with 170 additions and 56 deletions
+26 -2
View File
@@ -1340,9 +1340,20 @@ PyObject * playerIsCostumeSlot(PyObject* poSelf, PyObject* poArgs)
return Py_BuildException();
#ifdef ENABLE_COSTUME_SYSTEM
if (iSlotIndex >= c_Costume_Slot_Start)
if (iSlotIndex <= c_Costume_Slot_End)
if (iSlotIndex == c_Costume_Slot_Body ||
iSlotIndex == c_Costume_Slot_Hair ||
iSlotIndex == c_Costume_Slot_Sash ||
iSlotIndex == c_Costume_Slot_Mount ||
iSlotIndex == c_Costume_Slot_MountSkin ||
iSlotIndex == c_Costume_Slot_Weapon ||
iSlotIndex == c_Costume_Slot_Pet ||
iSlotIndex == c_Costume_Slot_NewSash ||
iSlotIndex == c_Shining_Slot_Weapon ||
iSlotIndex == c_Shining_Slot_Armor ||
iSlotIndex == c_Shining_Slot_Special)
{
return Py_BuildValue("i", 1);
}
#endif
return Py_BuildValue("i", 0);
@@ -2728,6 +2739,19 @@ void initPlayer()
PyModule_AddIntConstant(poModule, "AUTO_POTION_TYPE_HP", CPythonPlayer::AUTO_POTION_TYPE_HP);
PyModule_AddIntConstant(poModule, "AUTO_POTION_TYPE_SP", CPythonPlayer::AUTO_POTION_TYPE_SP);
// AVA2 Costume Slots
PyModule_AddIntConstant(poModule, "COSTUME_SLOT_BODY", c_Costume_Slot_Body);
PyModule_AddIntConstant(poModule, "COSTUME_SLOT_HAIR", c_Costume_Slot_Hair);
PyModule_AddIntConstant(poModule, "COSTUME_SLOT_SASH", c_Costume_Slot_Sash);
PyModule_AddIntConstant(poModule, "COSTUME_SLOT_MOUNT", c_Costume_Slot_Mount);
PyModule_AddIntConstant(poModule, "COSTUME_SLOT_MOUNT_SKIN", c_Costume_Slot_MountSkin);
PyModule_AddIntConstant(poModule, "COSTUME_SLOT_WEAPON", c_Costume_Slot_Weapon);
PyModule_AddIntConstant(poModule, "COSTUME_SLOT_PET", c_Costume_Slot_Pet);
PyModule_AddIntConstant(poModule, "COSTUME_SLOT_NEW_SASH", c_Costume_Slot_NewSash);
PyModule_AddIntConstant(poModule, "SHINING_SLOT_WEAPON", c_Shining_Slot_Weapon);
PyModule_AddIntConstant(poModule, "SHINING_SLOT_ARMOR", c_Shining_Slot_Armor);
PyModule_AddIntConstant(poModule, "SHINING_SLOT_SPECIAL", c_Shining_Slot_Special);
// 용혼석
PyModule_AddIntConstant(poModule, "DRAGON_SOUL_PAGE_SIZE", c_DragonSoul_Inventory_Box_Size);
PyModule_AddIntConstant(poModule, "DRAGON_SOUL_PAGE_COUNT", DRAGON_SOUL_GRADE_MAX);