[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>
This commit is contained in:
Drsmail
2024-12-23 17:39:20 +00:00
committed by GitHub
co-authored by DGamerL
parent 2e38c61dfa
commit c299d98aed
+4
View File
@@ -267,6 +267,10 @@
to_chat(M, "<span class='warning'>You are not holding anything to equip!</span>")
return FALSE
if(flags & NODROP)
to_chat(M, "<span class='warning'>You are unable to equip that!</span>")
return FALSE
if(M.equip_to_appropriate_slot(src))
if(M.hand)
M.update_inv_l_hand()