New to init final (#17512)

* Initial

* some more

* next few

* only light left

* fix things up

* some rmore fixes

* guh

* Update ai_vr.dm

* comment

* lets try something

* .

* hmm

* .

* .

* hmm

* push that here

* fix layout

* grrr
This commit is contained in:
Kashargul
2025-04-14 00:07:35 +02:00
committed by GitHub
parent 53ee76ad92
commit cdfa1c853f
170 changed files with 1262 additions and 1219 deletions
+3 -3
View File
@@ -47,8 +47,8 @@
var/last_range
var/last_power
/obj/effect/fusion_em_field/New(loc, var/obj/machinery/power/fusion_core/new_owned_core)
..()
/obj/effect/fusion_em_field/Initialize(mapload, var/obj/machinery/power/fusion_core/new_owned_core)
. = ..()
set_light(light_min_range,light_min_power)
last_range = light_min_range
@@ -56,7 +56,7 @@
owned_core = new_owned_core
if(!owned_core)
qdel(src)
return INITIALIZE_HINT_QDEL
id_tag = owned_core.id_tag
//create the gimmicky things to handle field collisions
var/obj/effect/fusion_particle_catcher/catcher
@@ -34,11 +34,11 @@
movement_range = 25
energy = 50
/obj/effect/accelerated_particle/New(loc, dir = 2)
/obj/effect/accelerated_particle/Initialize(mapload, dir = 2)
. = ..()
src.loc = loc
src.set_dir(dir)
spawn(0)
move(1)
addtimer(CALLBACK(src, PROC_REF(move)), 0.1 SECONDS)
/obj/effect/accelerated_particle/Bump(atom/A)
@@ -31,12 +31,11 @@ GLOBAL_LIST_BOILERPLATE(all_singularities, /obj/singularity)
var/chained = 0//Adminbus chain-grab
/obj/singularity/New(loc, var/starting_energy = 50)
/obj/singularity/Initialize(mapload, var/starting_energy = 50)
//CARN: admin-alert for chuckle-fuckery.
admin_investigate_setup()
. = ..()
energy = starting_energy
..()
START_PROCESSING(SSobj, src)
for(var/obj/machinery/power/singularity_beacon/singubeacon in machines)
if(singubeacon.active)
+29
View File
@@ -78,6 +78,35 @@ GLOBAL_LIST_EMPTY(smeses)
connect_to_network()
if(!should_be_mapped)
warning("Non-buildable or Non-magical SMES at [src.x]X [src.y]Y [src.z]Z")
return INITIALIZE_HINT_LATELOAD
/obj/machinery/power/smes/buildable/LateInitialize()
. = ..()
// Detect new coils placed by mappers
var/list/parts_found = list()
for(var/i = 1, i <= loc.contents.len, i++)
var/obj/item/W = loc.contents[i]
if(istype(W, /obj/item/smes_coil))
parts_found.Add(W)
// If any coils are on us, clear base coils and rebuild using these ones
if(parts_found.len == 0)
return
while(TRUE)
var/obj/item/smes_coil/C = locate(/obj/item/smes_coil) in component_parts
if(isnull(C))
break
component_parts.Remove(C)
C.forceMove(src.loc)
qdel(C)
cur_coils--
// Rebuild from mapper's coils
for(var/i = 1, i <= parts_found.len, i++)
if (cur_coils < max_coils)
var/obj/item/W = parts_found[i]
cur_coils++
component_parts.Add(W)
W.forceMove(src)
RefreshParts()
/obj/machinery/power/smes/Destroy()
for(var/obj/machinery/power/terminal/T in terminals)
+2 -5
View File
@@ -23,12 +23,9 @@
var/energy_to_raise = 32
var/energy_to_lower = -20
/obj/singularity/energy_ball/New(loc, starting_energy = 50, is_miniball = FALSE)
..()
miniball = is_miniball
/obj/singularity/energy_ball/Initialize(mapload)
/obj/singularity/energy_ball/Initialize(mapload, starting_energy = 50, is_miniball = FALSE)
. = ..()
miniball = is_miniball
if(!miniball)
set_light(10, 7, "#EEEEFF")