mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-05 15:48:26 +00:00
Work on tomorrow
This commit is contained in:
@@ -82,13 +82,11 @@ void Inventory::SetSize(const uint32_t value) {
|
||||
int32_t Inventory::FindEmptySlot() {
|
||||
if (free <= 6) // Up from 1
|
||||
{
|
||||
if (type != ITEMS && type != VAULT_ITEMS && type != eInventoryType::VAULT_MODELS) {
|
||||
if (type != ITEMS && type != VAULT_ITEMS && type != eInventoryType::VAULT_MODELS && type != eInventoryType::VENDOR_BUYBACK) {
|
||||
uint32_t newSize = size;
|
||||
|
||||
if (type == MODELS) {
|
||||
newSize = 240;
|
||||
} else if (type == eInventoryType::VENDOR_BUYBACK) {
|
||||
newSize += 9u;
|
||||
} else {
|
||||
newSize += 10u;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user