Skip to content

Commit

Permalink
feat(skymp5-server): prohibit dropping Gold001 (#1745)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pospelove authored Nov 20, 2023
1 parent b50d8a3 commit 03239ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions skymp5-server/cpp/server_guest_lib/MpActor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 03239ff

Please sign in to comment.