Added enum for coin sources

Added an enum for coin sources as to avoid leaving a random number in the code.
This commit is contained in:
EmosewaMC
2021-12-22 00:01:55 -08:00
parent c575294587
commit 97f8e9e9fc
9 changed files with 40 additions and 15 deletions

View File

@@ -818,7 +818,7 @@ void DestroyableComponent::Smash(const LWOOBJID source, const eKillType killType
LootGenerator::Instance().DropLoot(m_Parent, m_Parent, -1, coinsToLoose, coinsToLoose);
}
character->SetCoins(coinsTotal, 11);
character->SetCoins(coinsTotal, COIN_SOURCE_PICKUP);
Entity* zoneControl = EntityManager::Instance()->GetZoneControlEntity();
for (CppScripts::Script* script : CppScripts::GetEntityScripts(zoneControl)) {