Untitled
unknown
c_cpp
2 years ago
442 B
29
No Index
bool Player::hasCapacity(const Item* item, uint32_t count) const
{
if(hasFlag(PlayerFlag_CannotPickupItem))
return false;
#ifdef 0
if(hasFlag(PlayerFlag_HasInfiniteCapacity) || item->getTopParent() == this)
return true;
double itemWeight = 0;
if(item->isStackable())
itemWeight = Item::items[item->getID()].weight * count;
else
itemWeight = item->getWeight();
return (itemWeight < getFreeCapacity());
#endif
return true;
}Editor is loading...