bool CAttack::DecreaseArrow(LPOBJ lpObj)
{
if (lpObj->类型!= OBJECT_USER || lpObj->类!= CLASS_FE)
{
返回真;
}
if (lpObj->Inventory[0].m_Index >= GET_ITEM(4, 0) && lpObj->Inventory[0].m_Index < GET_ITEM(5, 0) && lpObj->Inventory[0].m_Index != GET_ITEM( 4, 15) && lpObj->库存[0].m_Slot == 0)
{
if (lpObj->Inventory[1].m_Index != GET_ITEM(4, 7) || lpObj->Inventory[1].m_Durability < 1)
{
返回假;
}
别的
{
gItemManager.DecreaseItemDur(lpObj, 1, 1);
}
}
if (lpObj->Inventory[1].m_Index >= GET_ITEM(4, 0) && lpObj->Inventory[1].m_Index < GET_ITEM(5, 0) && lpObj->Inventory[1].m_Index != GET_ITEM( 4, 7) && lpObj->库存[1].m_Slot == 1)
{
if (lpObj->Inventory[0].m_Index != GET_ITEM(4, 15) || lpObj->Inventory[0].m_Durability < 1)
{
返回假;
}
别的
{
gItemManager.DecreaseItemDur(lpObj, 0, 1);
}
}
返回真;
}[/代码][/剧透]
后
[剧透=“代码”]
[CODE=cpp]bool CAtack::DecreaseArrow(LPOBJ lpObj)
{
if (lpObj->类型!= OBJECT_USER || lpObj->类!= CLASS_FE)
{
返回真;
}
if (lpObj->Inventory[0].m_Index >= GET_ITEM(4, 0) && lpObj->Inventory[0].m_Index < GET_ITEM(5, 0) && lpObj->Inventory[0].m_Index != GET_ITEM( 4, 15) && lpObj->库存[0].m_Slot == 0)
{
if (lpObj->Inventory[1].m_Index != GET_ITEM(4, 7) || lpObj->Inventory[1].m_Durability < 1)
{
返回假;
}
别的
{
返回真;
}
}
if (lpObj->Inventory[1].m_Index >= GET_ITEM(4, 0) && lpObj->Inventory[1].m_Index < GET_ITEM(5, 0) && lpObj->Inventory[1].m_Index != GET_ITEM( 4, 7) && lpObj->库存[1].m_Slot == 1)
{
if (lpObj->Inventory[0].m_Index != GET_ITEM(4, 15) || lpObj->Inventory[0].m_Durability < 1)
{
返回假;
}
别的
{
返回真;
}
}
返回真;
}[/代码]
[/剧透]
或者只是修改整个函数以返回 true:D 也可以删除调用者
[/QUOTE]
可以留下你的联系方式吗?