Merge pull request #291 from EmosewaMC/EmosewaMC

Implemented sourceType for SendSetCurrency
This commit is contained in:
Xiphoseer
2022-01-04 12:01:32 +01:00
committed by GitHub
11 changed files with 50 additions and 29 deletions

View File

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