Skip to content

Commit

Permalink
[Fix] for anti drop being able to equip some items (#27713)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Signed-off-by: Drsmail <[email protected]>

---------

Signed-off-by: Drsmail <[email protected]>
Co-authored-by: DGamerL <[email protected]>
  • Loading branch information
Drsmail and DGamerL authored Dec 23, 2024
1 parent 2e38c61 commit c299d98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/modules/mob/inventory_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c299d98

Please sign in to comment.