[MIRROR] cleans up INIT (#10164)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-02-15 05:40:43 +01:00
committed by GitHub
co-authored by Kashargul
parent a71b34b7e0
commit e4f07e43f3
38 changed files with 187 additions and 187 deletions
+1 -1
View File
@@ -58,7 +58,7 @@
var/x_offset = 26
var/y_offset = 26
/obj/structure/construction/Initialize(var/mapload, var/ndir, var/building = FALSE)
/obj/structure/construction/Initialize(mapload, var/ndir, var/building = FALSE)
. = ..()
if(ndir)
set_dir(ndir)
+2 -2
View File
@@ -122,14 +122,14 @@
// Proc: New()
// Parameters: None
// Description: Adds standard components for this SMES, and forces recalculation of properties.
/obj/machinery/power/smes/buildable/Initialize(var/install_coils = 1)
/obj/machinery/power/smes/buildable/Initialize(mapload)
. = ..()
component_parts = list()
component_parts += new /obj/item/stack/cable_coil(src,30)
wires = new /datum/wires/smes(src)
// Allows for mapped-in SMESs with larger capacity/IO
if(install_coils)
if(mapload)
for(var/i = 1, i <= cur_coils, i++)
component_parts += new /obj/item/smes_coil(src)
recalc_coils()