feat: support 64-bit gold long integer returns in exchange, guild, and safebox Python modules (Stage 7)

This commit is contained in:
shen
2026-10-20 05:57:18 -07:00
parent dd71ee5b61
commit 867633667f
3 changed files with 4 additions and 4 deletions
@@ -14,12 +14,12 @@ PyObject * exchangeisTrading(PyObject * poSelf, PyObject * poArgs)
PyObject * exchangeGetElkFromSelf(PyObject * poSelf, PyObject * poArgs)
{
return Py_BuildValue("i", CPythonExchange::Instance().GetElkFromSelf());
return PyLong_FromLongLong(CPythonExchange::Instance().GetElkFromSelf());
}
PyObject * exchangeGetElkFromTarget(PyObject * poSelf, PyObject * poArgs)
{
return Py_BuildValue("i", CPythonExchange::Instance().GetElkFromTarget());
return PyLong_FromLongLong(CPythonExchange::Instance().GetElkFromTarget());
}
PyObject * exchangeGetAcceptFromSelf(PyObject * poSelf, PyObject * poArgs)
+1 -1
View File
@@ -435,7 +435,7 @@ PyObject * guildGetEnemyGuildName(PyObject * poSelf, PyObject * poArgs)
PyObject * guildGetGuildMoney(PyObject * poSelf, PyObject * poArgs)
{
CPythonGuild::TGuildInfo & rGuildInfo = CPythonGuild::Instance().GetGuildInfoRef();
return Py_BuildValue("i", rGuildInfo.dwGuildMoney);
return PyLong_FromLongLong(rGuildInfo.dwGuildMoney);
}
PyObject * guildGetGuildBoardCommentCount(PyObject * poSelf, PyObject * poArgs)
+1 -1
View File
@@ -250,7 +250,7 @@ PyObject * safeboxGetItemAttribute(PyObject * poSelf, PyObject * poArgs)
PyObject * safeboxGetMoney(PyObject * poSelf, PyObject * poArgs)
{
return Py_BuildValue("i", CPythonSafeBox::Instance().GetMoney());
return PyLong_FromLongLong(CPythonSafeBox::Instance().GetMoney());
}
PyObject * safeboxGetMallItemID(PyObject * poSelf, PyObject * poArgs)