mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-27 23:29:10 +01:00
[MIRROR] cleans up INIT (#10164)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Kashargul
parent
a71b34b7e0
commit
e4f07e43f3
@@ -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