mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-20 11:59:40 -06:00
Compare commits
1 Commits
macos-runn
...
coins_drop
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ac427da71c |
@@ -755,7 +755,7 @@ void DestroyableComponent::Smash(const LWOOBJID source, const eKillType killType
|
|||||||
|
|
||||||
const auto isPlayer = m_Parent->IsPlayer();
|
const auto isPlayer = m_Parent->IsPlayer();
|
||||||
|
|
||||||
GameMessages::SendDie(m_Parent, source, source, true, killType, deathType, 0, 0, 0, isPlayer, false, 1);
|
GameMessages::SendDie(m_Parent, source, source, true, killType, deathType, 0, 0, 0, isPlayer, true, 1);
|
||||||
|
|
||||||
//NANI?!
|
//NANI?!
|
||||||
if (!isPlayer) {
|
if (!isPlayer) {
|
||||||
@@ -785,8 +785,7 @@ void DestroyableComponent::Smash(const LWOOBJID source, const eKillType killType
|
|||||||
lootMsg.sourceID = source;
|
lootMsg.sourceID = source;
|
||||||
lootMsg.item = LOT_NULL;
|
lootMsg.item = LOT_NULL;
|
||||||
lootMsg.Send();
|
lootMsg.Send();
|
||||||
lootMsg.Send(m_Parent->GetSystemAddress());
|
character->SetCoins(coinsTotal, eLootSourceType::DELETION);
|
||||||
character->SetCoins(coinsTotal, eLootSourceType::PICKUP);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user