From c299d98aedb908ed921aef49014a32381e9c7805 Mon Sep 17 00:00:00 2001
From: Drsmail <60036448+Drsmail@users.noreply.github.com>
Date: Mon, 23 Dec 2024 20:39:20 +0300
Subject: [PATCH] [Fix] for anti drop being able to equip some items (#27713)
* Fix for anti drop being able to equip some items
* Forgot to save file)
* Clean up
* Remove config changes
* Update code/modules/mob/inventory_procs.dm
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: Drsmail <60036448+Drsmail@users.noreply.github.com>
---------
Signed-off-by: Drsmail <60036448+Drsmail@users.noreply.github.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
---
code/modules/mob/inventory_procs.dm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/code/modules/mob/inventory_procs.dm b/code/modules/mob/inventory_procs.dm
index c82b9bc39f06..a80372a2f3ee 100644
--- a/code/modules/mob/inventory_procs.dm
+++ b/code/modules/mob/inventory_procs.dm
@@ -267,6 +267,10 @@
to_chat(M, "You are not holding anything to equip!")
return FALSE
+ if(flags & NODROP)
+ to_chat(M, "You are unable to equip that!")
+ return FALSE
+
if(M.equip_to_appropriate_slot(src))
if(M.hand)
M.update_inv_l_hand()