PyObject * playerIsEquipmentSlot(PyObject* poSelf, PyObject* poArgs) { int iSlotIndex; if (!PyTuple_GetInteger(poArgs, 0, &iSlotIndex)) return Py_BuildException(); if (iSlotIndex >= c_Equipment_Start) if (iSlotIndex <= c_ItemSlot_Count + CItemData::WEAR_MAX_NUM) return Py_BuildValue("i", 1); return Py_BuildValue("i", 0); }