Update every initialize() proc to return an initialize hint.

* Yes, all of them.
* Also did a few corrections to redundant New() and broken Destroy() along the way
* Renamed the turf_initializer.initialize() proc to InitializeTurf to avoid confusion.
* Subsumed /area/proc/initialize into /atom/proc/initialize() - Made /area's LateInitialize to get same behavior as before.
This commit is contained in:
Leshana
2018-02-03 01:00:57 -05:00
parent ef73c090ab
commit cef001bf2a
114 changed files with 196 additions and 197 deletions
+2 -5
View File
@@ -13,10 +13,7 @@ var/global/list/plant_seed_sprites = list()
/obj/item/seeds/initialize()
update_seed()
..()
/obj/item/seeds/New()
..()
. = ..()
//Grabs the appropriate seed datum from the global list.
/obj/item/seeds/proc/update_seed()
@@ -79,7 +76,7 @@ var/global/list/plant_seed_sprites = list()
/obj/item/seeds/random/initialize()
seed = plant_controller.create_random_seed()
seed_type = seed.name
update_seed()
. = ..()
/obj/item/seeds/replicapod
seed_type = "diona"
+6 -3
View File
@@ -165,16 +165,19 @@
nymph.visible_message("<font color='blue'><b>[nymph]</b> rolls around in [src] for a bit.</font>","<font color='blue'>You roll around in [src] for a bit.</font>")
return
/obj/machinery/portable_atmospherics/hydroponics/New()
..()
/obj/machinery/portable_atmospherics/hydroponics/initialize()
. = ..()
temp_chem_holder = new()
temp_chem_holder.create_reagents(10)
create_reagents(200)
if(mechanical)
connect()
update_icon()
return INITIALIZE_HINT_LATELOAD
/obj/machinery/portable_atmospherics/hydroponics/initialize()
// Give the seeds time to initialize itself
/obj/machinery/portable_atmospherics/hydroponics/LateInitialize()
. = ..()
var/obj/item/seeds/S = locate() in loc
if(S)
plant_seeds(S)