Initialize fixing (#17279)

* Initialoize fixing

* diff fix

* add init grep test

* fixed missed ones

* .

* some more

* ,
This commit is contained in:
Kashargul
2025-03-08 13:59:29 -05:00
committed by GitHub
parent 76183beaa5
commit 46bea7cfa2
755 changed files with 1905 additions and 1904 deletions
+6 -6
View File
@@ -23,7 +23,7 @@
var/min_harvests = -1
var/list/harvest_loot = null // Should be an associative list for things to spawn, and their weights. An example would be a branch from a tree.
/obj/structure/flora/Initialize()
/obj/structure/flora/Initialize(mapload)
. = ..()
if(randomize_size)
@@ -472,7 +472,7 @@
max_harvests = 2
min_harvests = 0
/obj/structure/flora/mushroom/Initialize()
/obj/structure/flora/mushroom/Initialize(mapload)
. = ..()
icon_state = "mush[rand(1,4)]"
if(prob(50))
@@ -545,7 +545,7 @@
max_harvests = 2
min_harvests = 0
/obj/structure/flora/sif/subterranean/Initialize()
/obj/structure/flora/sif/subterranean/Initialize(mapload)
icon_state = "[initial(icon_state)][rand(1,2)]"
. = ..()
@@ -566,7 +566,7 @@
min_harvests = 0
harvest_loot = list(/obj/item/reagent_containers/food/snacks/grown/sif/eyebulbs = 1)
/obj/structure/flora/sif/eyes/Initialize()
/obj/structure/flora/sif/eyes/Initialize(mapload)
icon_state = "[initial(icon_state)][rand(1,3)]"
. = ..()
@@ -593,7 +593,7 @@
/obj/item/reagent_containers/food/snacks/grown/sif/wildwabback = 30
)
/obj/structure/flora/sif/tendrils/Initialize()
/obj/structure/flora/sif/tendrils/Initialize(mapload)
icon_state = "[initial(icon_state)][rand(1,3)]"
. = ..()
@@ -625,7 +625,7 @@
var/variantnum = null
/obj/structure/flora/sif/frostbelle/Initialize()
/obj/structure/flora/sif/frostbelle/Initialize(mapload)
. = ..()
variantnum = rand(1,3)
update_icon()
@@ -14,7 +14,7 @@
/obj/structure/flora/tree/bigtree/choose_icon_state()
return "[base_state][rand(1, 4)]"
/obj/structure/flora/tree/bigtree/Initialize()
/obj/structure/flora/tree/bigtree/Initialize(mapload)
. = ..()
var/image/i = image('icons/obj/flora/moretrees_vr.dmi', "[icon_state]-b")
@@ -29,4 +29,4 @@
density = FALSE
icon_state = "[icon_state]_stump"
cut_overlays()
set_light(0)
set_light(0)
+2 -2
View File
@@ -15,7 +15,7 @@
var/is_stump = FALSE // If true, suspends damage tracking and most other effects.
var/indestructable = FALSE // If true, the tree cannot die.
/obj/structure/flora/tree/Initialize()
/obj/structure/flora/tree/Initialize(mapload)
icon_state = choose_icon_state()
return ..()
@@ -284,7 +284,7 @@
light_shift = rand(0, 5)
return "[base_state][light_shift]"
/obj/structure/flora/tree/sif/Initialize()
/obj/structure/flora/tree/sif/Initialize(mapload)
. = ..()
update_icon()