mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
Merge pull request #2237 from Anewbe/suit_cooler_fix
Suit coolers now work while worn on the back
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
w_class = 4
|
w_class = 4
|
||||||
icon = 'icons/obj/device.dmi'
|
icon = 'icons/obj/device.dmi'
|
||||||
icon_state = "suitcooler0"
|
icon_state = "suitcooler0"
|
||||||
slot_flags = SLOT_BACK //you can carry it on your back if you want, but it won't do anything unless attached to suit storage
|
slot_flags = SLOT_BACK
|
||||||
|
|
||||||
//copied from tank.dm
|
//copied from tank.dm
|
||||||
flags = CONDUCT
|
flags = CONDUCT
|
||||||
@@ -87,7 +87,7 @@
|
|||||||
|
|
||||||
var/mob/living/carbon/human/H = M
|
var/mob/living/carbon/human/H = M
|
||||||
|
|
||||||
if (!H.wear_suit || H.s_store != src)
|
if (!H.wear_suit || (H.s_store != src && H.back != src))
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user