Removes the need for ComponentInitialize (#18833)

* removes `ComponentInitialize`

* mapload

* add back CRASH
This commit is contained in:
SteelSlayer
2022-08-18 16:00:19 -05:00
committed by GitHub
parent 170a6d4ea3
commit 358ff86ddb
22 changed files with 33 additions and 56 deletions
+7 -6
View File
@@ -11,7 +11,8 @@
layer = 9
//Adds the transparency component, exists to be overridden for different args.
/obj/structure/flora/tree/ComponentInitialize()
/obj/structure/flora/tree/Initialize(mapload)
. = ..()
AddComponent(/datum/component/largetransparency)
/obj/structure/flora/tree/pine
@@ -32,7 +33,8 @@
icon = 'icons/obj/flora/deadtrees.dmi'
icon_state = "tree_1"
/obj/structure/flora/tree/dead/ComponentInitialize()
/obj/structure/flora/tree/dead/Initialize(mapload)
. = ..()
AddComponent(/datum/component/largetransparency, 0, 1, 0, 0)
/obj/structure/flora/tree/dead/Initialize(mapload)
@@ -57,10 +59,8 @@
pixel_y = -20
/obj/structure/flora/tree/jungle/Initialize(mapload)
icon_state = "[icon_state][rand(1, 6)]"
. = ..()
/obj/structure/flora/tree/jungle/ComponentInitialize()
icon_state = "[icon_state][rand(1, 6)]"
AddComponent(/datum/component/largetransparency, -1, 1, 2, 2)
/obj/structure/flora/tree/jungle/small
@@ -68,7 +68,8 @@
pixel_x = -32
icon = 'icons/obj/flora/jungletreesmall.dmi'
/obj/structure/flora/tree/jungle/small/ComponentInitialize()
/obj/structure/flora/tree/jungle/small/Initialize(mapload)
. = ..()
AddComponent(/datum/component/largetransparency)
//grass