mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-16 13:13:03 +00:00
Merge pull request #6349 from CHOMPStation2/upstream-merge-14941
[MIRROR] Time to cool off
This commit is contained in:
@@ -2,8 +2,9 @@
|
|||||||
name = "portable suit cooling unit"
|
name = "portable suit cooling unit"
|
||||||
desc = "A portable heat sink and liquid cooled radiator that can be hooked up to a space suit's existing temperature controls to provide industrial levels of cooling."
|
desc = "A portable heat sink and liquid cooled radiator that can be hooked up to a space suit's existing temperature controls to provide industrial levels of cooling."
|
||||||
w_class = ITEMSIZE_LARGE
|
w_class = ITEMSIZE_LARGE
|
||||||
icon = 'icons/obj/device.dmi'
|
icon = 'icons/obj/suit_cooler.dmi'
|
||||||
icon_state = "suitcooler0"
|
icon_state = "suitcooler0"
|
||||||
|
item_state = "coolingpack"
|
||||||
slot_flags = SLOT_BACK
|
slot_flags = SLOT_BACK
|
||||||
|
|
||||||
//copied from tank.dm
|
//copied from tank.dm
|
||||||
@@ -171,13 +172,32 @@
|
|||||||
return ..()
|
return ..()
|
||||||
|
|
||||||
/obj/item/device/suit_cooling_unit/proc/updateicon()
|
/obj/item/device/suit_cooling_unit/proc/updateicon()
|
||||||
if (cover_open)
|
cut_overlays()
|
||||||
if (cell)
|
if(cover_open)
|
||||||
|
if(cell)
|
||||||
icon_state = "suitcooler1"
|
icon_state = "suitcooler1"
|
||||||
else
|
else
|
||||||
icon_state = "suitcooler2"
|
icon_state = "suitcooler2"
|
||||||
else
|
return
|
||||||
icon_state = "suitcooler0"
|
|
||||||
|
icon_state = "suitcooler0"
|
||||||
|
|
||||||
|
if(!cell || !on)
|
||||||
|
return
|
||||||
|
|
||||||
|
switch(round(cell.percent()))
|
||||||
|
if(86 to INFINITY)
|
||||||
|
add_overlay("battery-0")
|
||||||
|
if(69 to 85)
|
||||||
|
add_overlay("battery-1")
|
||||||
|
if(52 to 68)
|
||||||
|
add_overlay("battery-2")
|
||||||
|
if(35 to 51)
|
||||||
|
add_overlay("battery-3")
|
||||||
|
if(18 to 34)
|
||||||
|
add_overlay("battery-4")
|
||||||
|
if(-INFINITY to 17)
|
||||||
|
add_overlay("battery-5")
|
||||||
|
|
||||||
/obj/item/device/suit_cooling_unit/examine(mob/user)
|
/obj/item/device/suit_cooling_unit/examine(mob/user)
|
||||||
. = ..()
|
. = ..()
|
||||||
@@ -218,7 +238,7 @@
|
|||||||
|
|
||||||
/obj/item/device/suit_cooling_unit/emergency/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
/obj/item/device/suit_cooling_unit/emergency/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
||||||
if (W.is_screwdriver())
|
if (W.is_screwdriver())
|
||||||
to_chat(user, "<span class='warning'>This model has the cell permanently installed!</span>")
|
to_chat(user, "<span class='warning'>This cooler's cell is permanently installed!</span>")
|
||||||
return
|
return
|
||||||
|
|
||||||
return ..()
|
return ..()
|
||||||
|
|||||||
BIN
icons/obj/suit_cooler.dmi
Normal file
BIN
icons/obj/suit_cooler.dmi
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 933 B |
Reference in New Issue
Block a user