From ec6253c80cc03ee81b91f11c3318e28ddd937342 Mon Sep 17 00:00:00 2001 From: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> Date: Wed, 15 Oct 2025 20:36:45 -0700 Subject: [PATCH] fix: coin dupe on same team (#1911) * feat: Loot rework * Allow dupe powerup pickups * change default team loot to shared * fix: coin dupe on team --- dGame/dComponents/DestroyableComponent.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dGame/dComponents/DestroyableComponent.cpp b/dGame/dComponents/DestroyableComponent.cpp index 8b654f9f..f037f860 100644 --- a/dGame/dComponents/DestroyableComponent.cpp +++ b/dGame/dComponents/DestroyableComponent.cpp @@ -773,7 +773,15 @@ void DestroyableComponent::Smash(const LWOOBJID source, const eKillType killType coinsTotal -= coinsToLose; - Loot::DropLoot(m_Parent, m_Parent->GetObjectID(), -1, coinsToLose, coinsToLose); + GameMessages::DropClientLoot lootMsg{}; + lootMsg.target = m_Parent->GetObjectID(); + lootMsg.ownerID = m_Parent->GetObjectID(); + lootMsg.currency = coinsToLose; + lootMsg.spawnPos = m_Parent->GetPosition(); + lootMsg.sourceID = source; + lootMsg.item = LOT_NULL; + lootMsg.Send(); + lootMsg.Send(m_Parent->GetSystemAddress()); character->SetCoins(coinsTotal, eLootSourceType::PICKUP); } }