feat: add active branch pet system client bindings, constants, and locale

This commit is contained in:
shen
2026-10-20 00:50:01 -07:00
parent 90ff2a2d7b
commit 74044c59c1
9 changed files with 99 additions and 1 deletions
+12 -1
View File
@@ -42,7 +42,7 @@ int main(int argc, char** argv)
assert(CPythonPlayer::Instance().GetGold64() == 123456789012345LL);
assert(CPythonPlayer::Instance().GetStatus(POINT_GOLD) == 2000000000);
if (!launcher.RunLine(
"import player, item, chrmgr\n"
"import player, item, chrmgr, app\n"
"gold = player.GetElk()\n"
"assert gold == 123456789012345L, 'GetElk mismatch: %r' % gold\n"
"assert player.GetGold64() == 123456789012345L\n"
@@ -68,6 +68,17 @@ int main(int argc, char** argv)
"assert item.ITEM_TYPE_SHINING == 35\n"
"assert item.SHINING_WEAPON == 0\n"
"assert chrmgr.EFFECT_SHINING_WEAPON >= 0\n"
"assert app.ENABLE_NEW_PET_SYSTEM == 1\n"
"assert item.ITEM_TYPE_PET == 37\n"
"assert item.EQUIPMENT_OLDPET == item.COSTUME_SLOT_PET\n"
"assert item.EQUIPMENT_PET == item.PET_SLOT\n"
"assert item.PET_LEVELABLE == 0\n"
"assert item.PET_EGG == 1\n"
"assert item.PET_PROTEIN == 3\n"
"assert item.PET_DEW == 5\n"
"assert item.PET_SKILL == 6\n"
"assert item.PET_SKILL_DEL_BOOK == 11\n"
"assert item.PET_SKILL_ALL_DEL_BOOK == 12\n"
))
return 1;
if (!launcher.RunLine("import wndMgr, grp, grpImage, grpText, grpThing, app"))