next new to init (#17400)

* next new to init

* .

* this needs thorough testing

* .

* needs an istype

* also vnotice

* mvoe to defines
This commit is contained in:
Kashargul
2025-03-24 06:18:39 -04:00
committed by GitHub
parent 8a4ac36d15
commit d3b7ba8b43
141 changed files with 529 additions and 601 deletions
+2 -2
View File
@@ -16,7 +16,8 @@
var/x_offset = 0 // Offset from the 'center' of where the projector is, so that if it moves, the shield can recalc its position.
var/y_offset = 0 // Ditto.
/obj/effect/directional_shield/New(var/newloc, var/new_projector)
/obj/effect/directional_shield/Initialize(mapload, var/new_projector)
. = ..()
if(new_projector)
projector = new_projector
var/turf/us = get_turf(src)
@@ -26,7 +27,6 @@
y_offset = us.y - them.y
else
update_color()
..(newloc)
/obj/effect/directional_shield/proc/relocate()
if(!projector)
+2 -2
View File
@@ -24,8 +24,8 @@
var/ticks_recovering = 10
var/max_strength = 10
/obj/effect/energy_field/New(var/newloc, var/new_gen)
..(newloc)
/obj/effect/energy_field/Initialize(mapload, var/new_gen)
. = ..()
my_gen = new_gen
update_nearby_tiles()