mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-17 10:03:50 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user