From e46c9eea41aefb04427d49acff21cc4c537c87e4 Mon Sep 17 00:00:00 2001 From: Leonid Pospelov Date: Sun, 19 Nov 2023 00:19:06 +0600 Subject: [PATCH] Update MpActor.cpp --- skymp5-server/cpp/server_guest_lib/MpActor.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/skymp5-server/cpp/server_guest_lib/MpActor.cpp b/skymp5-server/cpp/server_guest_lib/MpActor.cpp index 4e74e1ad64..cf40822fba 100644 --- a/skymp5-server/cpp/server_guest_lib/MpActor.cpp +++ b/skymp5-server/cpp/server_guest_lib/MpActor.cpp @@ -953,6 +953,11 @@ BaseActorValues MpActor::GetMaximumValues() void MpActor::DropItem(const uint32_t baseId, const Inventory::Entry& entry) { // TODO: Take count into account + constexpr uint32_t kGold001 = 0x0000000f; + if (baseId == kGold001) { + spdlog::warn("Attempt to drop Gold001 by actor {:x}", GetFormId()); + return; + } int count = entry.count; RemoveItems({ entry }); // TODO(#1141): reimplement spawning items