Refactors armor into dedicated subtypes (#71986)

## About The Pull Request

See title.
## Why It's Good For The Game

Code is cleaner, and more readable/intuitive
Technically closes
https://github.com/tgstation/dev-cycles-initiative/issues/8
## Changelog
🆑
refactor: armor, from the ground up basically
/🆑

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
Zephyr
2022-12-23 19:21:22 -05:00
committed by GitHub
parent 8bbc0d1c62
commit 72add64520
259 changed files with 7071 additions and 768 deletions

View File

@@ -11,7 +11,7 @@ GLOBAL_LIST_EMPTY(TabletMessengers) // a list of all active messengers, similar
light_on = FALSE
integrity_failure = 0.5
max_integrity = 100
armor = list(MELEE = 0, BULLET = 20, LASER = 20, ENERGY = 100, BOMB = 0, BIO = 0, FIRE = 0, ACID = 0)
armor_type = /datum/armor/item_modular_computer
light_system = MOVABLE_LIGHT_DIRECTIONAL
///The ID currently stored in the computer.
@@ -110,6 +110,11 @@ GLOBAL_LIST_EMPTY(TabletMessengers) // a list of all active messengers, similar
///The max amount of paper that can be held at once.
var/max_paper = 30
/datum/armor/item_modular_computer
bullet = 20
laser = 20
energy = 100
/obj/item/modular_computer/Initialize(mapload)
. = ..()