slaw
Software Developer
It is possible to make that arrows, will be not removed, but bolt yes?
I mean when i will have 1 arrow + bow, then my arrow will never end.
But when i will have bolt + crossbow then my amunition will end -1. Like now is. Bolt is removed but arrow not.
How to make it? I was trying to compile it by myself. Added in weapons all needed.
It compiled without errors, but when i'm using arrow it still is removing. Please help me.
I mean when i will have 1 arrow + bow, then my arrow will never end.
But when i will have bolt + crossbow then my amunition will end -1. Like now is. Bolt is removed but arrow not.
How to make it? I was trying to compile it by myself. Added in weapons all needed.
Code:
if(ammoAction == AMMOACTION_NOREMOVECOUNT)
{
int32_t newCount = std::max(0, item->getItemCount() - 0);
g_game.transformItem(item, item->getID(), newCount);
}