Fixes some runtimes [IDB IGNORE] (#17194)

* Fixes some runtimes

* typo

* No more infinite mannequins

* crash

* More runtime fixes and  pressure fling

Makes it so you can unwrench pipes that are pressurized, at the cost of being flung back from the pipe. Higher pressure = longer distance and faster.

* Fixes a memory leak and a bug
This commit is contained in:
Cameron Lennox
2025-03-06 13:17:13 -05:00
committed by GitHub
parent 13e1c11d04
commit ddc95236e0
11 changed files with 102 additions and 39 deletions
+1 -1
View File
@@ -68,7 +68,7 @@
/obj/item/deck/attack_hand(mob/user as mob)
var/mob/living/carbon/human/H = user
if(istype(src.loc, /obj/item/storage) || src == H.r_store || src == H.l_store || src.loc == user) // so objects can be removed from storage containers or pockets. also added a catch-all, so if it's in the mob you'll pick it up.
if(ishuman(H) && (istype(src.loc, /obj/item/storage) || src == H.r_store || src == H.l_store || src.loc == user)) // so objects can be removed from storage containers or pockets. also added a catch-all, so if it's in the mob you'll pick it up. Human only, however!
..()
else // but if they're not, or are in your hands, you can still draw cards.
draw_card()