mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-27 14:08:44 +01:00
cleans up INIT (#17130)
Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user