feat: add point currency and stage extended shop items
Rename shop currency and vouchers to points, synchronize the wiki catalogue, and display point rewards. Add wear40 item metadata transport and pet identity accessors; stage sixteen timed mounts and appearance items with AVA2 model registration. Include build and sbtest acceptance evidence. Remaining shop systems are unfinished and are not enabled or deployed. Wear40 requires the matching server migration and mt20261022 client.
This commit is contained in:
@@ -206,14 +206,14 @@ PyObject * safeboxGetItemMetinSocket(PyObject * poSelf, PyObject * poArgs)
|
||||
if (!PyTuple_GetInteger(poArgs, 1, &iSocketIndex))
|
||||
return Py_BadArgument();
|
||||
|
||||
if (iSocketIndex >= ITEM_SOCKET_SLOT_MAX_NUM)
|
||||
if (iSocketIndex < 0 || iSocketIndex >= 8)
|
||||
return Py_BuildException();
|
||||
|
||||
TItemData * pItemData;
|
||||
if (!CPythonSafeBox::Instance().GetItemDataPtr(iSlotIndex, &pItemData))
|
||||
return Py_BuildException();
|
||||
|
||||
return Py_BuildValue("i", pItemData->alSockets[iSocketIndex]);
|
||||
return Py_BuildValue("i", iSocketIndex<3?pItemData->alSockets[iSocketIndex]:pItemData->extra.sockets[iSocketIndex-3]);
|
||||
}
|
||||
|
||||
PyObject * safeboxGetItemAttribute(PyObject * poSelf, PyObject * poArgs)
|
||||
@@ -225,11 +225,11 @@ PyObject * safeboxGetItemAttribute(PyObject * poSelf, PyObject * poArgs)
|
||||
if (!PyTuple_GetInteger(poArgs, 1, &iAttrSlotIndex))
|
||||
return Py_BuildException();
|
||||
|
||||
if (iAttrSlotIndex >= 0 && iAttrSlotIndex < ITEM_ATTRIBUTE_SLOT_MAX_NUM)
|
||||
if (iAttrSlotIndex >= 0 && iAttrSlotIndex < 15)
|
||||
{
|
||||
TItemData * pItemData;
|
||||
if (CPythonSafeBox::Instance().GetItemDataPtr(iSlotIndex, &pItemData))
|
||||
return Py_BuildValue("ii", pItemData->aAttr[iAttrSlotIndex].bType, pItemData->aAttr[iAttrSlotIndex].sValue);
|
||||
return Py_BuildValue("ii", iAttrSlotIndex<7?pItemData->aAttr[iAttrSlotIndex].bType:pItemData->extra.types[iAttrSlotIndex-7], iAttrSlotIndex<7?pItemData->aAttr[iAttrSlotIndex].sValue:pItemData->extra.values[iAttrSlotIndex-7]);
|
||||
}
|
||||
|
||||
return Py_BuildValue("ii", 0, 0);
|
||||
@@ -275,14 +275,14 @@ PyObject * safeboxGetMallItemMetinSocket(PyObject * poSelf, PyObject * poArgs)
|
||||
if (!PyTuple_GetInteger(poArgs, 1, &iSocketIndex))
|
||||
return Py_BadArgument();
|
||||
|
||||
if (iSocketIndex >= ITEM_SOCKET_SLOT_MAX_NUM)
|
||||
if (iSocketIndex < 0 || iSocketIndex >= 8)
|
||||
return Py_BuildException();
|
||||
|
||||
TItemData * pItemData;
|
||||
if (!CPythonSafeBox::Instance().GetMallItemDataPtr(iSlotIndex, &pItemData))
|
||||
return Py_BuildException();
|
||||
|
||||
return Py_BuildValue("i", pItemData->alSockets[iSocketIndex]);
|
||||
return Py_BuildValue("i", iSocketIndex<3?pItemData->alSockets[iSocketIndex]:pItemData->extra.sockets[iSocketIndex-3]);
|
||||
}
|
||||
|
||||
PyObject * safeboxGetMallItemAttribute(PyObject * poSelf, PyObject * poArgs)
|
||||
@@ -294,11 +294,11 @@ PyObject * safeboxGetMallItemAttribute(PyObject * poSelf, PyObject * poArgs)
|
||||
if (!PyTuple_GetInteger(poArgs, 1, &iAttrSlotIndex))
|
||||
return Py_BuildException();
|
||||
|
||||
if (iAttrSlotIndex >= 0 && iAttrSlotIndex < ITEM_ATTRIBUTE_SLOT_MAX_NUM)
|
||||
if (iAttrSlotIndex >= 0 && iAttrSlotIndex < 15)
|
||||
{
|
||||
TItemData * pItemData;
|
||||
if (CPythonSafeBox::Instance().GetMallItemDataPtr(iSlotIndex, &pItemData))
|
||||
return Py_BuildValue("ii", pItemData->aAttr[iAttrSlotIndex].bType, pItemData->aAttr[iAttrSlotIndex].sValue);
|
||||
return Py_BuildValue("ii", iAttrSlotIndex<7?pItemData->aAttr[iAttrSlotIndex].bType:pItemData->extra.types[iAttrSlotIndex-7], iAttrSlotIndex<7?pItemData->aAttr[iAttrSlotIndex].sValue:pItemData->extra.values[iAttrSlotIndex-7]);
|
||||
}
|
||||
|
||||
return Py_BuildValue("ii", 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user