// BUL;
void CHARACTER::UseArrow (LPITEM pkArrow, DWORD dwArrowCount)
{
int iCount = pkArrow->GetCount();
DWORD dwVnum = pkArrow->GetVnum();
iCount = iCount - MIN (iCount, dwArrowCount);
pkArrow->SetCount (iCount);
if (iCount == 0)
{
LPITEM pkNewArrow = FindSpecifyItem (dwVnum);
sys_log (0, "UseArrow : FindSpecifyItem %u %p", dwVnum, get_pointer (pkNewArrow));
if (pkNewArrow)
{
EquipItem (pkNewArrow);
}
}
}
// DEĞİŞTİR;
void CHARACTER::UseArrow (LPITEM pkArrow, DWORD dwArrowCount)
{
int iCount = pkArrow->GetCount();
DWORD dwVnum = pkArrow->GetVnum();
//iCount = iCount - MIN (iCount, dwArrowCount);
//pkArrow->SetCount (iCount);
if (iCount == 0)
{
LPITEM pkNewArrow = FindSpecifyItem (dwVnum);
sys_log (0, "UseArrow : FindSpecifyItem %u %p", dwVnum, get_pointer (pkNewArrow));
if (pkNewArrow)
{
EquipItem (pkNewArrow);
}
}
}