Files
Fluffy c5dabb9cda Armor defines (#20563)
Added armor defines
Converted raw strings use to defines
Added UT test to ensure people set the armor var correctly (to a list)

No player facing changes
2025-03-09 21:37:46 +00:00

65 lines
2.1 KiB
Plaintext

/obj/item/robot_parts/robot_component/armor/mech
name = "exosuit armor plating"
desc = "A pair of flexible armor plates, used to protect the internals of exosuits and its pilot."
armor = list(
MELEE = ARMOR_MELEE_MAJOR,
BULLET = ARMOR_BALLISTIC_MEDIUM,
LASER = ARMOR_LASER_MEDIUM,
ENERGY = ARMOR_ENERGY_MINOR,
BOMB = ARMOR_BOMB_PADDED,
BIO = ARMOR_BIO_SHIELDED,
RAD = ARMOR_RAD_MINOR
)
origin_tech = list(TECH_MATERIAL = 1)
/obj/item/robot_parts/robot_component/armor/mech/Initialize()
. = ..()
AddComponent(/datum/component/armor, armor, ARMOR_TYPE_STANDARD|ARMOR_TYPE_EXOSUIT)
/obj/item/robot_parts/robot_component/armor/mech/radproof
name = "radiation-proof armor plating"
desc = "A fully enclosed radiation hardened shell designed to protect the pilot from radiation."
icon_state = "armor_r"
icon_state_broken = "armor_r_broken"
armor = list(
MELEE = ARMOR_MELEE_RESISTANT,
BULLET = ARMOR_BALLISTIC_MEDIUM,
LASER = ARMOR_LASER_MEDIUM,
ENERGY = ARMOR_ENERGY_MINOR,
BOMB = ARMOR_BOMB_PADDED,
BIO = ARMOR_BIO_SHIELDED,
RAD = ARMOR_RAD_SHIELDED
)
origin_tech = list(TECH_MATERIAL = 3)
/obj/item/robot_parts/robot_component/armor/mech/em
name = "EM-shielded armor plating"
desc = "A shielded plating that sorrounds the eletronics and protects them from electromagnetic radiation."
icon_state = "armor_e"
icon_state_broken = "armor_e_broken"
armor = list(
MELEE = ARMOR_MELEE_RESISTANT ,
BULLET = ARMOR_BALLISTIC_PISTOL,
LASER = ARMOR_LASER_PISTOL,
ENERGY = ARMOR_ENERGY_SHIELDED,
BOMB = ARMOR_BOMB_MINOR,
BIO = ARMOR_BIO_SHIELDED,
RAD = ARMOR_RAD_SMALL
)
origin_tech = list(TECH_MATERIAL = 3)
/obj/item/robot_parts/robot_component/armor/mech/combat
name = "heavy combat plating"
desc = "Plating designed to deflect incoming attacks and explosions."
icon_state = "armor_c"
icon_state_broken = "armor_c_broken"
armor = list(
MELEE = ARMOR_MELEE_VERY_HIGH,
BULLET = ARMOR_BALLISTIC_MAJOR,
LASER = ARMOR_LASER_RIFLE,
ENERGY = ARMOR_ENERGY_MINOR,
BOMB = ARMOR_BOMB_RESISTANT,
BIO = ARMOR_BIO_SHIELDED
)
origin_tech = list(TECH_MATERIAL = 5)