Specified enum

the LOOT_SOURCE enum is now attached to all loot sources.
This commit is contained in:
EmosewaMC
2022-04-23 20:32:31 -07:00
parent 8e10f090fd
commit ceab229a63
9 changed files with 27 additions and 27 deletions

View File

@@ -221,7 +221,7 @@ void CharacterComponent::HandleLevelUp()
break;
case 4:
{
auto* items = inventoryComponent->GetInventory(ITEMS);
auto* items = inventoryComponent->GetInventory(eInventoryType::ITEMS);
items->SetSize(items->GetSize() + reward->value);
}
break;

View File

@@ -821,7 +821,7 @@ void DestroyableComponent::Smash(const LWOOBJID source, const eKillType killType
coinsTotal -= coinsToLoose;
LootGenerator::Instance().DropLoot(m_Parent, m_Parent, -1, coinsToLoose, coinsToLoose);
character->SetCoins(coinsTotal, LOOT_SOURCE_PICKUP);
character->SetCoins(coinsTotal, eLootSourceType::LOOT_SOURCE_PICKUP);
}
}

View File

@@ -207,7 +207,7 @@ void InventoryComponent::AddItem(
auto stack = static_cast<uint32_t>(info.stackSize);
if (inventoryType == BRICKS)
if (inventoryType == eInventoryType::BRICKS)
{
stack = 999;
}