feat: support 64-bit gold long integer returns in exchange, guild, and safebox Python modules (Stage 7)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user