mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-23 20:16:19 +01:00
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:
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user