Files
Thunder12345andnevimer 20118ad747 Converts a bunch of time/delay vars to use time defines (#92495)
## About The Pull Request

Converts as many time vars expressed in deciseconds as I could find to
use time defines.

## Why It's Good For The Game

Makes these values neater and more readable.

## Changelog
🆑
code: Converted a lot of time-based variables to be expressed with time
defines.
/🆑
# Conflicts:
#	code/modules/clothing/head/hat.dm
#	code/modules/clothing/shoes/boots.dm
#	code/modules/clothing/suits/utility.dm
2025-08-19 22:38:55 -04:00

100 lines
3.8 KiB
Plaintext

//NASA Voidsuit
/obj/item/clothing/head/helmet/space/nasavoid
name = "NASA Void Helmet"
desc = "An old, NASA CentCom branch designed, dark red space suit helmet."
icon_state = "void"
inhand_icon_state = "void_helmet"
/obj/item/clothing/suit/space/nasavoid
name = "NASA Voidsuit"
icon_state = "void"
inhand_icon_state = "void_suit"
desc = "An old, NASA CentCom branch designed, dark red space suit."
allowed = list(/obj/item/flashlight, /obj/item/tank/internals, /obj/item/multitool)
/obj/item/clothing/head/helmet/space/nasavoid/old
name = "Engineering Void Helmet"
desc = "A CentCom engineering dark red space suit helmet. While old and dusty, it still gets the job done."
icon_state = "void"
visor_dirt = "void_dirt"
/obj/item/clothing/suit/space/nasavoid/old
name = "Engineering Voidsuit"
icon_state = "void"
inhand_icon_state = "void_suit"
desc = "A CentCom engineering dark red space suit. Age has degraded the suit making it difficult to move around in."
slowdown = 4
allowed = list(/obj/item/flashlight, /obj/item/tank/internals, /obj/item/multitool)
//EVA suit
/obj/item/clothing/suit/space/eva
name = "EVA suit"
icon_state = "space"
inhand_icon_state = "s_suit"
desc = "A lightweight space suit with the basic ability to protect the wearer from the vacuum of space during emergencies."
armor_type = /datum/armor/space_eva
/obj/item/clothing/head/helmet/space/eva
name = "EVA helmet"
icon_state = "space"
inhand_icon_state = "space_helmet"
desc = "A lightweight space helmet with the basic ability to protect the wearer from the vacuum of space during emergencies."
flash_protect = FLASH_PROTECTION_NONE
armor_type = /datum/armor/space_eva
visor_dirt = "space_dirt"
/datum/armor/space_eva
bio = 100
fire = 50
acid = 65
/obj/item/clothing/head/helmet/space/eva/examine(mob/user)
. = ..()
. += span_notice("You can start constructing a critter sized mecha with a [span_bold("cyborg leg")].")
/obj/item/clothing/head/helmet/space/eva/attackby(obj/item/attacked_with, mob/user, list/modifiers, list/attack_modifiers)
. = ..()
if(.)
return
if(!istype(attacked_with, /obj/item/bodypart/leg/left/robot) && !istype(attacked_with, /obj/item/bodypart/leg/right/robot))
return
if(ismob(loc))
user.balloon_alert(user, "drop the helmet first!")
return
user.balloon_alert(user, "leg attached")
new /obj/item/bot_assembly/vim(loc)
qdel(attacked_with)
qdel(src)
//Emergency suit
/obj/item/clothing/head/helmet/space/fragile
name = "emergency space helmet"
desc = "A bulky, airtight helmet meant to protect the user during emergency situations. It doesn't look very durable."
icon_state = "syndicate-helm-orange"
inhand_icon_state = "syndicate-helm-orange" //resprite?
armor_type = /datum/armor/space_fragile
strip_delay = 6.5 SECONDS
/obj/item/clothing/suit/space/fragile
name = "emergency space suit"
desc = "A bulky, airtight suit meant to protect the user during emergency situations. It doesn't look very durable."
var/torn = FALSE
icon_state = "syndicate-orange"
inhand_icon_state = "syndicate-orange"
slowdown = 2
armor_type = /datum/armor/space_fragile
strip_delay = 6.5 SECONDS
/datum/armor/space_fragile
melee = 5
/obj/item/clothing/suit/space/fragile/hit_reaction(mob/living/carbon/human/owner, atom/movable/hitby, attack_text = "the attack", final_block_chance = 0, damage = 0, attack_type = MELEE_ATTACK, damage_type = BRUTE)
if(!torn && prob(50))
to_chat(owner, span_warning("[src] tears from the damage, breaking the airtight seal!"))
clothing_flags &= ~STOPSPRESSUREDAMAGE
name = "torn [src]."
desc = "A bulky suit meant to protect the user during emergency situations, at least until someone tore a hole in the suit."
torn = TRUE
playsound(loc, 'sound/items/weapons/slashmiss.ogg', 50, TRUE)
playsound(loc, 'sound/effects/refill.ogg', 50, TRUE)