Fixes Crutches not working properly (#22660)

* Yippeee

* Proper order

* Update code/game/objects/items/weapons/misc_items.dm

Co-authored-by: Nathan Winters <100448493+CinnamonSnowball@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

* Update code/game/objects/items/weapons/misc_items.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>

---------

Co-authored-by: Nathan Winters <100448493+CinnamonSnowball@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
This commit is contained in:
DGamerL
2023-10-01 17:38:36 +02:00
committed by GitHub
parent 4d2482f9d6
commit 53c3e893c2
@@ -75,10 +75,13 @@
if(!is_open)
return
if(!hidden && I.tool_behaviour != TOOL_SCREWDRIVER && I.w_class == WEIGHT_CLASS_TINY)
if(istype(I, /obj/item/disk/nuclear))
to_chat(user, "<span class='warning'>You think you're gonna need more than crutches if your employers find out what you just tried to do...</span>")
return
if(I.flags & ABSTRACT)
return
if(I.flags & NODROP)
to_chat(user, "<span class='notice'>[I] is stuck to your hand!</span>")
if(!user.unEquip(I))
to_chat(user, "<span class='notice'>[I] doesn't seem to want to go into [src]!</span>")
return
I.forceMove(src)
hidden = I