std::max<uint16>(curitemcount - count, 0)