feat: add 6th and 7th rare attribute client networking, constants, and locale

This commit is contained in:
shen
2026-10-20 01:46:17 -07:00
parent 74044c59c1
commit 2fc99d2fe7
9 changed files with 161 additions and 0 deletions
@@ -6,6 +6,7 @@ extern void initapp();
extern void initPlayer();
extern void initItem();
extern void initchrmgr();
extern void initnet();
#include "UserInterface/PythonPlayer.h"
#include <cassert>
#include "../../src/platform/ScriptLib/PythonHost.h"
@@ -36,6 +37,7 @@ int main(int argc, char** argv)
initapp();
initItem();
initchrmgr();
initnet();
CPythonPlayer player;
initPlayer();
CPythonPlayer::Instance().SetGold64(123456789012345LL);
@@ -79,6 +81,13 @@ int main(int argc, char** argv)
"assert item.PET_SKILL == 6\n"
"assert item.PET_SKILL_DEL_BOOK == 11\n"
"assert item.PET_SKILL_ALL_DEL_BOOK == 12\n"
"assert app.ENABLE_ATTR_6TH_7TH == 1\n"
"assert app.BL_67_ATTR == 1\n"
"assert player.ON_TOP_WND_ATTR_67 == 7\n"
"assert player.ON_TOP_WND_NONE == 0\n"
"import net\n"
"assert hasattr(net, 'Send67AttrPacket')\n"
"assert hasattr(net, 'Send67AttrClosePacket')\n"
))
return 1;
if (!launcher.RunLine("import wndMgr, grp, grpImage, grpText, grpThing, app"))