Suit cooling units will now work while on back as well, much like an
oxygen tank. They also come with an invisible sprite for now, will
figure something out for that at a later date.
This commit is contained in:
skull132
2015-03-29 15:15:51 +03:00
parent 1478682c0e
commit 68d8ebb5d3
2 changed files with 5 additions and 4 deletions
@@ -4,7 +4,8 @@
w_class = 4
icon = 'icons/obj/device.dmi'
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
item_state = "suitcooler0" //hacky, but yeah, works for now.
slot_flags = SLOT_BACK //will now work while on back - Skull132
//copied from tank.dm
flags = FPRINT | TABLEPASS | CONDUCT
@@ -83,10 +84,10 @@
var/mob/living/carbon/human/H = M
if (!H.wear_suit || H.s_store != src)
return 0
if (H.wear_suit && (H.back == src || H.s_store == src))
return 1
return 1
return 0
/obj/item/device/suit_cooling_unit/proc/turn_on()
if(!cell)