Move clothing to /Initialize() (#18294)

* Move clothing to /Initialize()

* Farie review
This commit is contained in:
moxian
2022-07-21 11:42:24 +02:00
committed by GitHub
parent e7d8d60597
commit 51e5384299
19 changed files with 90 additions and 83 deletions
+12 -5
View File
@@ -55,15 +55,19 @@
armor = list(MELEE = 70, BULLET = 40, LASER = 10, ENERGY = 10, BOMB = 50, BIO = 100, RAD = 100, FIRE = 100, ACID = 100)
allowed = list(/obj/item/flashlight, /obj/item/tank/internals, /obj/item/resonator, /obj/item/mining_scanner, /obj/item/t_scanner/adv_mining_scanner, /obj/item/gun/energy/kinetic_accelerator, /obj/item/pickaxe, /obj/item/melee/spellblade)
/obj/item/clothing/suit/space/hostile_environment/New()
..()
AddComponent(/datum/component/spraycan_paintable)
/obj/item/clothing/suit/space/hostile_environment/Initialize(mapload)
. = ..()
START_PROCESSING(SSobj, src)
/obj/item/clothing/suit/space/hostile_environment/Destroy()
STOP_PROCESSING(SSobj, src)
return ..()
/obj/item/clothing/suit/space/hostile_environment/ComponentInitialize()
..()
AddComponent(/datum/component/spraycan_paintable)
/obj/item/clothing/suit/space/hostile_environment/process()
var/mob/living/carbon/C = loc
if(istype(C) && prob(2)) //cursed by bubblegum
@@ -83,10 +87,13 @@
armor = list(MELEE = 70, BULLET = 40, LASER = 10, ENERGY = 10, BOMB = 50, BIO = 100, RAD = 100, FIRE = 100, ACID = 100)
resistance_flags = FIRE_PROOF | LAVA_PROOF
/obj/item/clothing/head/helmet/space/hostile_environment/New()
/obj/item/clothing/head/helmet/space/hostile_environment/Initialize(mapload)
. = ..()
update_icon()
/obj/item/clothing/head/helmet/space/hostile_environment/ComponentInitialize()
..()
AddComponent(/datum/component/spraycan_paintable)
update_icon()
/obj/item/clothing/head/helmet/space/hostile_environment/update_overlays()
. = ..()