Initialize procs for virgo

This commit is contained in:
Leshana
2018-01-27 00:22:10 -05:00
parent cef001bf2a
commit 38f20304ca
17 changed files with 29 additions and 30 deletions

View File

@@ -64,8 +64,8 @@ SUBSYSTEM_DEF(mapping)
if(!istype(MT)) if(!istype(MT))
error("Lateload Z level \"[mapname]\" is not a valid map!") error("Lateload Z level \"[mapname]\" is not a valid map!")
continue continue
MT.load_new_z(centered = FALSE, dont_init = TRUE) MT.load_new_z(centered = FALSE)
//CHECK_TICK //Can't deal with this until SSAtoms CHECK_TICK
if(LAZYLEN(maybe_load)) if(LAZYLEN(maybe_load))
var/picked = pick(maybe_load) var/picked = pick(maybe_load)
@@ -81,7 +81,7 @@ SUBSYSTEM_DEF(mapping)
if(!istype(MT)) if(!istype(MT))
error("Randompick Z level \"[map]\" is not a valid map!") error("Randompick Z level \"[map]\" is not a valid map!")
else else
MT.load_new_z(centered = FALSE, dont_init = TRUE) MT.load_new_z(centered = FALSE)
/datum/controller/subsystem/mapping/stat_entry(msg) /datum/controller/subsystem/mapping/stat_entry(msg)
if (!Debug2) if (!Debug2)

View File

@@ -14,9 +14,8 @@
for(var/turf/unsimulated/floor/F in src) for(var/turf/unsimulated/floor/F in src)
valid_spawn_turfs |= F valid_spawn_turfs |= F
/area/awaymission/initialize() /area/awaymission/LateInitialize()
..() ..()
sleep(180)
EvalValidSpawnTurfs() EvalValidSpawnTurfs()
if(!valid_spawn_turfs.len) if(!valid_spawn_turfs.len)

View File

@@ -46,7 +46,7 @@
// On initialization, copy our tracks from the global list // On initialization, copy our tracks from the global list
/obj/machinery/media/jukebox/initialize() /obj/machinery/media/jukebox/initialize()
..() . = ..()
if(all_jukebox_tracks.len < 1) if(all_jukebox_tracks.len < 1)
stat |= BROKEN // No tracks configured this round! stat |= BROKEN // No tracks configured this round!
return return

View File

@@ -9,10 +9,7 @@
density = 1 density = 1
unacidable = 1 unacidable = 1
/obj/effect/blocker/New()
icon = null // Make it disappear.
icon_state = null // Probably not nessicary.
/obj/effect/blocker/initialize() // For non-gateway maps. /obj/effect/blocker/initialize() // For non-gateway maps.
. = ..()
icon = null icon = null
icon_state = null icon_state = null

View File

@@ -29,7 +29,7 @@
var/global/list/allocated_gamma = list() var/global/list/allocated_gamma = list()
/obj/structure/trash_pile/initialize() /obj/structure/trash_pile/initialize()
..() . = ..()
icon_state = pick( icon_state = pick(
"pile1", "pile1",
"pile2", "pile2",

View File

@@ -38,7 +38,7 @@
icon_state = "desert" icon_state = "desert"
/turf/simulated/floor/beach/sand/desert/initialize() /turf/simulated/floor/beach/sand/desert/initialize()
..() . = ..()
if(prob(5)) if(prob(5))
icon_state = "desert[rand(0,4)]" icon_state = "desert[rand(0,4)]"

View File

@@ -54,7 +54,7 @@ var/global/list/extraMiniMaps = list()
// TODO - Check - They had a delayed init perhaps? // TODO - Check - They had a delayed init perhaps?
for (var/obj/machinery/station_map/S in station_holomaps) for (var/obj/machinery/station_map/S in station_holomaps)
S.initialize() S.setup_holomap()
// Generates the "base" holomap for one z-level, showing only the physical structure of walls and paths. // Generates the "base" holomap for one z-level, showing only the physical structure of walls and paths.
/proc/generateHoloMinimap(var/zLevel = 1) /proc/generateHoloMinimap(var/zLevel = 1)

View File

@@ -10,7 +10,7 @@ var/global/list/station_holomaps = list()
use_power = 1 use_power = 1
idle_power_usage = 10 idle_power_usage = 10
active_power_usage = 500 active_power_usage = 500
auto_init = 0 // We handle our own special initialization needs. // TODO - Make this not ~Leshana //auto_init = 0 // We handle our own special initialization needs. // TODO - Make this not ~Leshana
circuit = /obj/item/weapon/circuitboard/station_map circuit = /obj/item/weapon/circuitboard/station_map
// TODO - Port use_auto_lights from /vg - for now declare here // TODO - Port use_auto_lights from /vg - for now declare here
@@ -36,17 +36,21 @@ var/global/list/station_holomaps = list()
original_zLevel = loc.z original_zLevel = loc.z
station_holomaps += src station_holomaps += src
flags |= ON_BORDER // Why? It doesn't help if its not density flags |= ON_BORDER // Why? It doesn't help if its not density
/obj/machinery/station_map/initialize()
. = ..()
if(ticker && holomaps_initialized) if(ticker && holomaps_initialized)
spawn(1) // Tragically we need to spawn this in order to give the frame construcing us time to set pixel_x/y spawn(1) // Tragically we need to spawn this in order to give the frame construcing us time to set pixel_x/y
initialize() setup_holomap()
/obj/machinery/station_map/Destroy() /obj/machinery/station_map/Destroy()
station_holomaps -= src station_holomaps -= src
stopWatching() stopWatching()
holomap_datum = null holomap_datum = null
..() . = ..()
/obj/machinery/station_map/initialize() /obj/machinery/station_map/proc/setup_holomap()
. = ..()
bogus = FALSE bogus = FALSE
var/turf/T = get_turf(src) var/turf/T = get_turf(src)
original_zLevel = T.z original_zLevel = T.z

View File

@@ -65,10 +65,10 @@
update_music() update_music()
/obj/machinery/media/initialize() /obj/machinery/media/initialize()
..() . = ..()
update_media_source() update_media_source()
/obj/machinery/media/Destroy() /obj/machinery/media/Destroy()
disconnect_media_source() disconnect_media_source()
..() . = ..()

View File

@@ -17,7 +17,7 @@
var/obj/item/weapon/disk/transcore/disk var/obj/item/weapon/disk/transcore/disk
/obj/machinery/computer/transhuman/resleeving/initialize() /obj/machinery/computer/transhuman/resleeving/initialize()
..() . = ..()
updatemodules() updatemodules()
/obj/machinery/computer/transhuman/resleeving/Destroy() /obj/machinery/computer/transhuman/resleeving/Destroy()

View File

@@ -17,9 +17,6 @@
var/mob/living/carbon/human/dummy/mannequin/mannequin = null var/mob/living/carbon/human/dummy/mannequin/mannequin = null
var/obj/item/weapon/disk/body_record/disk = null var/obj/item/weapon/disk/body_record/disk = null
/obj/machinery/computer/transhuman/designer/initialize()
..()
/obj/machinery/computer/transhuman/designer/Destroy() /obj/machinery/computer/transhuman/designer/Destroy()
active_br = null active_br = null
preview_icon = null preview_icon = null

View File

@@ -24,7 +24,7 @@
var/obj/machinery/computer/shuttle_control/belter/shuttle_control var/obj/machinery/computer/shuttle_control/belter/shuttle_control
/obj/machinery/computer/roguezones/initialize() /obj/machinery/computer/roguezones/initialize()
..() . = ..()
shuttle_control = locate(/obj/machinery/computer/shuttle_control/belter) shuttle_control = locate(/obj/machinery/computer/shuttle_control/belter)
/obj/machinery/computer/roguezones/attack_ai(mob/user as mob) /obj/machinery/computer/roguezones/attack_ai(mob/user as mob)

View File

@@ -45,7 +45,7 @@
user << "There are [crystals.len ? crystals.len : "no"] bluespace crystal\s in the crystal slots." user << "There are [crystals.len ? crystals.len : "no"] bluespace crystal\s in the crystal slots."
/obj/machinery/computer/telescience/initialize() /obj/machinery/computer/telescience/initialize()
..() . = ..()
for(var/i = 1; i <= starting_crystals; i++) for(var/i = 1; i <= starting_crystals; i++)
crystals += new /obj/item/weapon/ore/bluespace_crystal/artificial(src) // starting crystals crystals += new /obj/item/weapon/ore/bluespace_crystal/artificial(src) // starting crystals

View File

@@ -36,7 +36,7 @@
if(istype(get_turf(src), /turf/simulated/floor)) if(istype(get_turf(src), /turf/simulated/floor))
src:target_z = z src:target_z = z
qdel(src) return INITIALIZE_HINT_QDEL
/obj/effect/step_trigger/zlevel_fall/Trigger(var/atom/movable/A) //mostly from /obj/effect/step_trigger/teleporter/planetary_fall, step_triggers.dm L160 /obj/effect/step_trigger/zlevel_fall/Trigger(var/atom/movable/A) //mostly from /obj/effect/step_trigger/teleporter/planetary_fall, step_triggers.dm L160
if(!src:target_z) if(!src:target_z)

View File

@@ -81,7 +81,8 @@
new /datum/random_map/automata/cave_system/no_cracks(null, 1, 1, z, world.maxx, world.maxy) new /datum/random_map/automata/cave_system/no_cracks(null, 1, 1, z, world.maxx, world.maxy)
new /datum/random_map/noise/ore/beachmine(null, 1, 1, z, 64, 64) new /datum/random_map/noise/ore/beachmine(null, 1, 1, z, 64, 64)
qdel(src) initialized = TRUE
return INITIALIZE_HINT_QDEL
// These are step-teleporters, for map edge transitions // These are step-teleporters, for map edge transitions
// This top one goes INTO the cave // This top one goes INTO the cave

View File

@@ -51,7 +51,7 @@ obj/machinery/airlock_sensor/phoron/airlock_exterior
var/datum/radio_frequency/radio_connection var/datum/radio_frequency/radio_connection
/obj/machinery/portable_atmospherics/powered/scrubber/huge/stationary/initialize() /obj/machinery/portable_atmospherics/powered/scrubber/huge/stationary/initialize()
..() . = ..()
if(frequency) if(frequency)
set_frequency(frequency) set_frequency(frequency)
@@ -98,7 +98,7 @@ obj/machinery/airlock_sensor/phoron/airlock_exterior
var/tag_scrubber var/tag_scrubber
/obj/machinery/embedded_controller/radio/airlock/phoron/initialize() /obj/machinery/embedded_controller/radio/airlock/phoron/initialize()
..() . = ..()
program = new/datum/computer/file/embedded_program/airlock/phoron(src) program = new/datum/computer/file/embedded_program/airlock/phoron(src)
//Advanced airlock controller for when you want a more versatile airlock controller - useful for turning simple access control rooms into airlocks //Advanced airlock controller for when you want a more versatile airlock controller - useful for turning simple access control rooms into airlocks

View File

@@ -78,6 +78,7 @@
/obj/effect/step_trigger/teleporter/planetary_fall/virgo3b/initialize() /obj/effect/step_trigger/teleporter/planetary_fall/virgo3b/initialize()
planet = planet_virgo3b planet = planet_virgo3b
. = ..()
/obj/effect/step_trigger/lost_in_space /obj/effect/step_trigger/lost_in_space
var/deathmessage = "You drift off into space, floating alone in the void until your life support runs out." var/deathmessage = "You drift off into space, floating alone in the void until your life support runs out."
@@ -131,7 +132,7 @@
var/area/shock_area = /area/tether/surfacebase/tram var/area/shock_area = /area/tether/surfacebase/tram
/turf/simulated/floor/maglev/initialize() /turf/simulated/floor/maglev/initialize()
..() . = ..()
shock_area = locate(shock_area) shock_area = locate(shock_area)
// Walking on maglev tracks will shock you! Horray! // Walking on maglev tracks will shock you! Horray!