diff --git a/code/_onclick/hud/alert.dm b/code/_onclick/hud/alert.dm index e83cfadedf5..9c8fe9750a9 100644 --- a/code/_onclick/hud/alert.dm +++ b/code/_onclick/hud/alert.dm @@ -266,8 +266,8 @@ or shoot a gun to move around via Newton's 3rd Law of Motion." icon_state = "no-servants-caches" var/static/list/scripture_states = list(SCRIPTURE_DRIVER = TRUE, SCRIPTURE_SCRIPT = FALSE, SCRIPTURE_APPLICATION = FALSE, SCRIPTURE_REVENANT = FALSE, SCRIPTURE_JUDGEMENT = FALSE) -/obj/screen/alert/clockwork/scripture_reqs/New() - ..() +/obj/screen/alert/clockwork/scripture_reqs/Initialize() + . = ..() START_PROCESSING(SSprocessing, src) process() diff --git a/code/game/area/Space_Station_13_areas.dm b/code/game/area/Space_Station_13_areas.dm index daf8b740520..b0378896ad2 100644 --- a/code/game/area/Space_Station_13_areas.dm +++ b/code/game/area/Space_Station_13_areas.dm @@ -80,8 +80,8 @@ NOTE: there are two lists of areas in the end of this file: centcom and station name = "Asteroid - Artifact" icon_state = "cave" -/area/asteroid/artifactroom/New() - ..() +/area/asteroid/artifactroom/Initialize() + . = ..() set_dynamic_lighting() /area/planet/clown diff --git a/code/game/area/areas.dm b/code/game/area/areas.dm index 4395e5155af..f346da191aa 100644 --- a/code/game/area/areas.dm +++ b/code/game/area/areas.dm @@ -25,7 +25,7 @@ var/lightswitch = 1 var/requires_power = 1 - var/always_unpowered = 0 // This gets overriden to 1 for space in area/New(). + var/always_unpowered = 0 // This gets overriden to 1 for space in area/Initialize(). var/outdoors = 0 //For space, the asteroid, lavaland, etc. Used with blueprints to determine if we are adding a new area (vs editing a station room) diff --git a/code/game/gamemodes/blob/blobs/core.dm b/code/game/gamemodes/blob/blobs/core.dm index 9c41d7b99b5..7ae47f4c0e6 100644 --- a/code/game/gamemodes/blob/blobs/core.dm +++ b/code/game/gamemodes/blob/blobs/core.dm @@ -15,7 +15,7 @@ var/point_rate = 2 -/obj/structure/blob/core/New(loc, client/new_overmind = null, new_rate = 2, placed = 0) +/obj/structure/blob/core/Initialize(mapload, client/new_overmind = null, new_rate = 2, placed = 0) GLOB.blob_cores += src START_PROCESSING(SSobj, src) GLOB.poi_list |= src @@ -25,7 +25,7 @@ if(overmind) update_icon() point_rate = new_rate - ..() + . = ..() /obj/structure/blob/core/scannerreport() return "Directs the blob's expansion, gradually expands, and sustains nearby blob spores and blobbernauts." diff --git a/code/game/gamemodes/blob/blobs/node.dm b/code/game/gamemodes/blob/blobs/node.dm index fcb2bf9be22..d778323ac23 100644 --- a/code/game/gamemodes/blob/blobs/node.dm +++ b/code/game/gamemodes/blob/blobs/node.dm @@ -10,10 +10,10 @@ point_return = 25 -/obj/structure/blob/node/New(loc) +/obj/structure/blob/node/Initialize() GLOB.blob_nodes += src START_PROCESSING(SSobj, src) - ..() + . = ..() /obj/structure/blob/node/scannerreport() return "Gradually expands and sustains nearby blob spores and blobbernauts." diff --git a/code/game/gamemodes/blob/theblob.dm b/code/game/gamemodes/blob/theblob.dm index e8bfbb23bb5..3ae9e3e8d63 100644 --- a/code/game/gamemodes/blob/theblob.dm +++ b/code/game/gamemodes/blob/theblob.dm @@ -21,14 +21,14 @@ var/mob/camera/blob/overmind -/obj/structure/blob/New(loc) +/obj/structure/blob/Initialize() var/area/Ablob = get_area(loc) if(Ablob.blob_allowed) //Is this area allowed for winning as blob? GLOB.blobs_legit += src GLOB.blobs += src //Keep track of the blob in the normal list either way setDir(pick(GLOB.cardinal)) update_icon() - ..() + .= ..() ConsumeTile() if(atmosblock) CanAtmosPass = ATMOS_PASS_NO diff --git a/code/game/gamemodes/changeling/powers/fleshmend.dm b/code/game/gamemodes/changeling/powers/fleshmend.dm index 07a242276ea..3c077f9bc1a 100644 --- a/code/game/gamemodes/changeling/powers/fleshmend.dm +++ b/code/game/gamemodes/changeling/powers/fleshmend.dm @@ -11,8 +11,8 @@ // divided by healing_ticks to get heal/tick var/total_healing = 100 -/obj/effect/proc_holder/changeling/fleshmend/New() - ..() +/obj/effect/proc_holder/changeling/fleshmend/Initialize() + . = ..() START_PROCESSING(SSobj, src) /obj/effect/proc_holder/changeling/fleshmend/Destroy() diff --git a/code/game/gamemodes/changeling/powers/mutations.dm b/code/game/gamemodes/changeling/powers/mutations.dm index 57db295d53d..54e8ea1e38a 100644 --- a/code/game/gamemodes/changeling/powers/mutations.dm +++ b/code/game/gamemodes/changeling/powers/mutations.dm @@ -162,8 +162,8 @@ sharpness = IS_SHARP var/can_drop = FALSE -/obj/item/weapon/melee/arm_blade/New(location,silent,synthetic) - ..() +/obj/item/weapon/melee/arm_blade/Initialize(mapload,silent,synthetic) + . = ..() if(ismob(loc) && !silent) loc.visible_message("A grotesque blade forms around [loc.name]\'s arm!", "Our arm twists and mutates, transforming it into a deadly blade.", "You hear organic matter ripping and tearing!") if(synthetic) @@ -240,8 +240,8 @@ throw_range = 0 throw_speed = 0 -/obj/item/weapon/gun/magic/tentacle/New(location,silent) - ..() +/obj/item/weapon/gun/magic/tentacle/Initialize(mapload, silent) + . = ..() if(ismob(loc)) if(!silent) loc.visible_message("[loc.name]\'s arm starts stretching inhumanly!", "Our arm twists and mutates, transforming it into a tentacle.", "You hear organic matter ripping and tearing!") @@ -266,9 +266,9 @@ firing_effect_type = null var/obj/item/weapon/gun/magic/tentacle/gun //the item that shot it -/obj/item/ammo_casing/magic/tentacle/New(obj/item/weapon/gun/magic/tentacle/tentacle_gun) - gun = tentacle_gun - ..() +/obj/item/ammo_casing/magic/tentacle/Initialize() + gun = loc + . = ..() /obj/item/ammo_casing/magic/tentacle/Destroy() gun = null @@ -285,9 +285,9 @@ var/chain var/obj/item/ammo_casing/magic/tentacle/source //the item that shot it -/obj/item/projectile/tentacle/New(obj/item/ammo_casing/magic/tentacle/tentacle_casing) - source = tentacle_casing - ..() +/obj/item/projectile/tentacle/Initialize() + source = loc + . = ..() /obj/item/projectile/tentacle/fire(setAngle) if(firer) @@ -407,8 +407,8 @@ var/remaining_uses //Set by the changeling ability. -/obj/item/weapon/shield/changeling/New() - ..() +/obj/item/weapon/shield/changeling/Initialize() + . = ..() if(ismob(loc)) loc.visible_message("The end of [loc.name]\'s hand inflates rapidly, forming a huge shield-like mass!", "We inflate our hand into a strong shield.", "You hear organic matter ripping and tearing!") @@ -452,8 +452,8 @@ allowed = list(/obj/item/device/flashlight, /obj/item/weapon/tank/internals/emergency_oxygen, /obj/item/weapon/tank/internals/oxygen) armor = list(melee = 0, bullet = 0, laser = 0,energy = 0, bomb = 0, bio = 0, rad = 0, fire = 90, acid = 90) //No armor at all. -/obj/item/clothing/suit/space/changeling/New() - ..() +/obj/item/clothing/suit/space/changeling/Initialize() + . = ..() if(ismob(loc)) loc.visible_message("[loc.name]\'s flesh rapidly inflates, forming a bloated mass around their body!", "We inflate our flesh, creating a spaceproof suit!", "You hear organic matter ripping and tearing!") START_PROCESSING(SSobj, src) @@ -501,8 +501,8 @@ cold_protection = 0 heat_protection = 0 -/obj/item/clothing/suit/armor/changeling/New() - ..() +/obj/item/clothing/suit/armor/changeling/Initialize() + . = ..() if(ismob(loc)) loc.visible_message("[loc.name]\'s flesh turns black, quickly transforming into a hard, chitinous mass!", "We harden our flesh, creating a suit of armor!", "You hear organic matter ripping and tearing!") diff --git a/code/game/machinery/computer/computer.dm b/code/game/machinery/computer/computer.dm index ef4f973baa5..e1ba2c4fab4 100644 --- a/code/game/machinery/computer/computer.dm +++ b/code/game/machinery/computer/computer.dm @@ -35,7 +35,7 @@ return ..() /obj/machinery/computer/Initialize() - ..() + . = ..() power_change() /obj/machinery/computer/process() diff --git a/code/game/machinery/machinery.dm b/code/game/machinery/machinery.dm index 137a492b3a9..6cd8e75798f 100644 --- a/code/game/machinery/machinery.dm +++ b/code/game/machinery/machinery.dm @@ -127,7 +127,7 @@ Class Procs: /obj/machinery/Initialize() if (!armor) armor = list(melee = 25, bullet = 10, laser = 10, energy = 0, bomb = 0, bio = 0, rad = 0, fire = 50, acid = 70) - ..() + . = ..() GLOB.machines += src if(!speed_process) START_PROCESSING(SSmachines, src) diff --git a/code/game/mecha/mecha.dm b/code/game/mecha/mecha.dm index 6d531f57d30..9b107eb8fa4 100644 --- a/code/game/mecha/mecha.dm +++ b/code/game/mecha/mecha.dm @@ -119,8 +119,8 @@ hud_possible = list (DIAG_STAT_HUD, DIAG_BATT_HUD, DIAG_MECH_HUD, DIAG_TRACK_HUD) -/obj/mecha/New() - ..() +/obj/mecha/Initialize() + . = ..() events = new icon_state += "-open" add_radio() diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm index 9e962ddeeca..111db47f403 100644 --- a/code/game/objects/items.dm +++ b/code/game/objects/items.dm @@ -102,7 +102,7 @@ GLOBAL_DATUM_INIT(fire_overlay, /image, image("icon" = 'icons/effects/fire.dmi', /obj/item/Initialize() if (!materials) materials = list() - ..() + . = ..() for(var/path in actions_types) new path(src) actions_types = null diff --git a/code/game/objects/structures.dm b/code/game/objects/structures.dm index 697e1434625..2c6371093e7 100644 --- a/code/game/objects/structures.dm +++ b/code/game/objects/structures.dm @@ -12,7 +12,7 @@ /obj/structure/Initialize() if (!armor) armor = list(melee = 0, bullet = 0, laser = 0, energy = 0, bomb = 0, bio = 0, rad = 0, fire = 50, acid = 50) - ..() + . = ..() if(smooth) queue_smooth(src) queue_smooth_neighbors(src)