New() goes in the trash, we've gotta Initialize()

This commit is contained in:
CitadelStationBot
2017-04-26 17:15:48 -05:00
parent e7df2bc14a
commit bcab389ca2
69 changed files with 358 additions and 245 deletions
+2 -2
View File
@@ -27,8 +27,8 @@ using metal and glass, it uses glass and reagents (usually sulfuric acis).
"Computer Parts"
)
/obj/machinery/r_n_d/circuit_imprinter/New()
..()
/obj/machinery/r_n_d/circuit_imprinter/Initialize()
. = ..()
materials = new(src, list(MAT_GLASS, MAT_GOLD, MAT_DIAMOND, MAT_METAL, MAT_BLUESPACE))
create_reagents(0)
var/obj/item/weapon/circuitboard/machine/B = new /obj/item/weapon/circuitboard/machine/circuit_imprinter(null)
+4 -4
View File
@@ -54,10 +54,10 @@ other types of metals and chemistry for reagents).
var/list/blueprints = list()
var/max_blueprints = 1
/obj/item/weapon/disk/design_disk/New()
..()
src.pixel_x = rand(-5, 5)
src.pixel_y = rand(-5, 5)
/obj/item/weapon/disk/design_disk/Initialize()
. = ..()
pixel_x = rand(-5, 5)
pixel_y = rand(-5, 5)
for(var/i in 1 to max_blueprints)
blueprints += null
@@ -13,8 +13,8 @@ Note: Must be placed within 3 tiles of the R&D Console
icon_state = "d_analyzer"
var/decon_mod = 0
/obj/machinery/r_n_d/destructive_analyzer/New()
..()
/obj/machinery/r_n_d/destructive_analyzer/Initialize()
. = ..()
var/obj/item/weapon/circuitboard/machine/B = new /obj/item/weapon/circuitboard/machine/destructive_analyzer(null)
B.apply_default_parts(src)
+4 -4
View File
@@ -79,8 +79,8 @@
critical_items += I
/obj/machinery/r_n_d/experimentor/New()
..()
/obj/machinery/r_n_d/experimentor/Initialize()
. = ..()
var/obj/item/weapon/circuitboard/machine/B = new /obj/item/weapon/circuitboard/machine/experimentor(null)
B.apply_default_parts(src)
@@ -589,8 +589,8 @@
var/cooldownMax = 60
var/cooldown
/obj/item/weapon/relic/New()
..()
/obj/item/weapon/relic/Initialize()
. = ..()
icon_state = pick("shock_kit","armor-igniter-analyzer","infra-igniter0","infra-igniter1","radio-multitool","prox-radio1","radio-radio","timer-multitool0","radio-igniter-tank")
realName = "[pick("broken","twisted","spun","improved","silly","regular","badly made")] [pick("device","object","toy","illegal tech","weapon")]"
+2 -3
View File
@@ -78,12 +78,11 @@ GLOBAL_LIST_INIT(message_servers, list())
var/active = 1
var/decryptkey = "password"
/obj/machinery/message_server/New()
/obj/machinery/message_server/Initialize()
GLOB.message_servers += src
decryptkey = GenerateKey()
send_pda_message("System Administrator", "system", "This is an automated message. The messaging system is functioning correctly.")
..()
return
. = ..()
/obj/machinery/message_server/Destroy()
GLOB.message_servers -= src
+2 -2
View File
@@ -31,8 +31,8 @@ Note: Must be placed west/left of and R&D console to function.
)
/obj/machinery/r_n_d/protolathe/New()
..()
/obj/machinery/r_n_d/protolathe/Initialize()
. = ..()
create_reagents(0)
materials = new(src, list(MAT_METAL, MAT_GLASS, MAT_SILVER, MAT_GOLD, MAT_DIAMOND, MAT_PLASMA, MAT_URANIUM, MAT_BANANIUM, MAT_TITANIUM, MAT_BLUESPACE))
var/obj/item/weapon/circuitboard/machine/B = new /obj/item/weapon/circuitboard/machine/protolathe(null)
+4 -4
View File
@@ -100,8 +100,8 @@ won't update every console in existence) but it's more of a hassle to do. Also,
C.files.RefreshResearch()
/obj/machinery/computer/rdconsole/New()
..()
/obj/machinery/computer/rdconsole/Initialize()
. = ..()
files = new /datum/research(src) //Setup the research data holder.
matching_designs = list()
if(!id)
@@ -1065,8 +1065,8 @@ won't update every console in existence) but it's more of a hassle to do. Also,
req_access = null
req_access_txt = "29"
/obj/machinery/computer/rdconsole/robotics/New()
..()
/obj/machinery/computer/rdconsole/robotics/Initialize()
. = ..()
if(circuit)
circuit.name = "RD Console - Robotics (Computer Board)"
circuit.build_path = /obj/machinery/computer/rdconsole/robotics
+2 -2
View File
@@ -16,8 +16,8 @@
var/obj/machinery/computer/rdconsole/linked_console
var/obj/item/loaded_item = null //the item loaded inside the machine (currently only used by experimentor and destructive analyzer)
/obj/machinery/r_n_d/New()
..()
/obj/machinery/r_n_d/Initialize()
. = ..()
wires = new /datum/wires/r_n_d(src)
/obj/machinery/r_n_d/Destroy()
+6 -6
View File
@@ -313,10 +313,10 @@ research holder datum.
var/list/tech_stored = list()
var/max_tech_stored = 1
/obj/item/weapon/disk/tech_disk/New()
..()
src.pixel_x = rand(-5, 5)
src.pixel_y = rand(-5, 5)
/obj/item/weapon/disk/tech_disk/Initialize()
. = ..()
pixel_x = rand(-5, 5)
pixel_y = rand(-5, 5)
for(var/i in 1 to max_tech_stored)
tech_stored += null
@@ -339,8 +339,8 @@ research holder datum.
materials = list()
max_tech_stored = 0
/obj/item/weapon/disk/tech_disk/debug/New()
..()
/obj/item/weapon/disk/tech_disk/debug/Initialize()
. = ..()
var/list/techs = subtypesof(/datum/tech)
max_tech_stored = techs.len
for(var/V in techs)
+2 -2
View File
@@ -14,8 +14,8 @@
var/delay = 10
req_access = list(GLOB.access_rd) //Only the R&D can change server settings.
/obj/machinery/r_n_d/server/New()
..()
/obj/machinery/r_n_d/server/Initialize()
. = ..()
var/obj/item/weapon/circuitboard/machine/B = new /obj/item/weapon/circuitboard/machine/rdserver(null)
B.apply_default_parts(src)
+4 -4
View File
@@ -72,10 +72,10 @@ If you create T5+ please take a pass at gene_modder.dm [L40]. Max_values MUST fi
w_class = WEIGHT_CLASS_SMALL
var/rating = 1
/obj/item/weapon/stock_parts/New()
..()
src.pixel_x = rand(-5, 5)
src.pixel_y = rand(-5, 5)
/obj/item/weapon/stock_parts/Initialize()
. = ..()
pixel_x = rand(-5, 5)
pixel_y = rand(-5, 5)
//Rating 1
@@ -25,9 +25,9 @@
qdel(O)
..()
/obj/item/slime_extract/New()
..()
create_reagents(100)
/obj/item/slime_extract/Initialize()
. = ..()
create_reagents(100)
/obj/item/slime_extract/grey
name = "grey slime extract"
@@ -559,8 +559,8 @@
var/duration = 140
alpha = 125
/obj/effect/timestop/New()
..()
/obj/effect/timestop/Initialize()
. = ..()
for(var/mob/living/M in GLOB.player_list)
for(var/obj/effect/proc_holder/spell/aoe_turf/conjure/timestop/T in M.mind.spell_list) //People who can stop time are immune to timestop
immune |= M