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
This commit is contained in:
Fluffy
2025-03-09 21:37:46 +00:00
committed by GitHub
parent 660f3e90a1
commit c5dabb9cda
109 changed files with 1666 additions and 1578 deletions
@@ -7,7 +7,7 @@
contained_sprite = TRUE
species_restricted = list(BODYTYPE_SKELETON)
body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|ARMS
armor = list(melee = ARMOR_MELEE_MAJOR, bullet = 40, laser = 50, energy = 25, bomb = 30, bio = 0, rad = 0)
armor = list(MELEE = ARMOR_MELEE_MAJOR, bullet = 40, laser = 50, energy = 25, bomb = 30, bio = 0, rad = 0)
/obj/item/clothing/head/helmet/bone
name = "bone helmet"
@@ -17,4 +17,4 @@
item_state = "skull"
contained_sprite = TRUE
species_restricted = list(BODYTYPE_SKELETON)
armor = list(melee = ARMOR_MELEE_MAJOR, bullet = 40, laser = 50, energy = 25, bomb = 30, bio = 0, rad = 0)
armor = list(MELEE = ARMOR_MELEE_MAJOR, bullet = 40, laser = 50, energy = 25, bomb = 30, bio = 0, rad = 0)