Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions code/modules/mining/equipment/explorer_gear.dm
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@

/obj/item/clothing/suit/space/hostile_environment
name = "H.E.C.K. suit"
desc = "Hostile Environment Cross-Kinetic Suit: A suit designed to withstand the wide variety of hazards from Lavaland. It wasn't enough for its last owner."
desc = "Hostile Environment Cross-Kinetic Suit: A suit designed to withstand the wide variety of hazards from Lavaland. It wasn't enough for its last owner. It seems to lose its strength when there are no monsters around."
icon_state = "hostile_env"
item_state = "hostile_env"
clothing_flags = STOPSPRESSUREDAMAGE | THICKMATERIAL
Expand All @@ -100,6 +100,14 @@
return ..()

/obj/item/clothing/suit/space/hostile_environment/process()
var/turf/T = get_turf(src)
if(is_station_level(T.z))
max_heat_protection_temperature = FIRE_SUIT_MAX_TEMP_PROTECT
getArmor(MELEE = 40, BULLET = 20, LASER = 10, ENERGY = 10, BOMB = 50, BIO = 100, RAD = 60, FIRE = 100, ACID = 100)
else
max_heat_protection_temperature = initial(src.max_heat_protection_temperature)
getArmor(initial(src.armor))

var/mob/living/carbon/C = loc
if(istype(C) && prob(2)) //cursed by bubblegum
if(prob(15))
Expand All @@ -110,7 +118,7 @@

/obj/item/clothing/head/helmet/space/hostile_environment
name = "H.E.C.K. helmet"
desc = "Hostile Environiment Cross-Kinetic Helmet: A helmet designed to withstand the wide variety of hazards from Lavaland. It wasn't enough for its last owner."
desc = "Hostile Environiment Cross-Kinetic Helmet: A helmet designed to withstand the wide variety of hazards from Lavaland. It wasn't enough for its last owner. It seems to lose its strength when there are no monsters around."
icon_state = "hostile_env"
item_state = "hostile_env"
w_class = WEIGHT_CLASS_NORMAL
Expand All @@ -122,8 +130,22 @@
/obj/item/clothing/head/helmet/space/hostile_environment/Initialize()
. = ..()
AddComponent(/datum/component/spraycan_paintable)
START_PROCESSING(SSobj, src)
update_icon()

/obj/item/clothing/head/helmet/space/hostile_environment/Destroy()
STOP_PROCESSING(SSobj, src)
return ..()

/obj/item/clothing/head/helmet/space/hostile_environment/process()
var/turf/T = get_turf(src)
if(is_station_level(T.z))
max_heat_protection_temperature = FIRE_SUIT_MAX_TEMP_PROTECT
getArmor(MELEE = 40, BULLET = 20, LASER = 10, ENERGY = 10, BOMB = 50, BIO = 100, RAD = 60, FIRE = 100, ACID = 100)
else
max_heat_protection_temperature = initial(src.max_heat_protection_temperature)
getArmor(initial(src.armor))

/obj/item/clothing/head/helmet/space/hostile_environment/update_icon()
..()
cut_overlays()
Expand Down