mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Ports more things to Initialize (#38653)
This commit is contained in:
committed by
yogstation13-bot
parent
849b18e602
commit
18a35788af
@@ -11,8 +11,8 @@
|
|||||||
|
|
||||||
var/static/list/AllTeleporters
|
var/static/list/AllTeleporters
|
||||||
|
|
||||||
/obj/effect/bump_teleporter/New()
|
/obj/effect/bump_teleporter/Initialize()
|
||||||
..()
|
. = ..()
|
||||||
LAZYADD(AllTeleporters, src)
|
LAZYADD(AllTeleporters, src)
|
||||||
|
|
||||||
/obj/effect/bump_teleporter/Destroy()
|
/obj/effect/bump_teleporter/Destroy()
|
||||||
|
|||||||
@@ -14,9 +14,9 @@
|
|||||||
var/displayed_text
|
var/displayed_text
|
||||||
var/atom/attached_to
|
var/atom/attached_to
|
||||||
|
|
||||||
/obj/effect/countdown/New(atom/A)
|
/obj/effect/countdown/Initialize()
|
||||||
. = ..()
|
. = ..()
|
||||||
attach(A)
|
attach(loc)
|
||||||
|
|
||||||
/obj/effect/countdown/examine(mob/user)
|
/obj/effect/countdown/examine(mob/user)
|
||||||
. = ..()
|
. = ..()
|
||||||
|
|||||||
@@ -12,13 +12,13 @@ would spawn and follow the beaker, even if it is carried or thrown.
|
|||||||
pass_flags = PASSTABLE | PASSGRILLE
|
pass_flags = PASSTABLE | PASSGRILLE
|
||||||
anchored = TRUE
|
anchored = TRUE
|
||||||
|
|
||||||
/obj/effect/particle_effect/New()
|
/obj/effect/particle_effect/Initialize()
|
||||||
..()
|
. = ..()
|
||||||
GLOB.cameranet.updateVisibility(src)
|
GLOB.cameranet.updateVisibility(src)
|
||||||
|
|
||||||
/obj/effect/particle_effect/Destroy()
|
/obj/effect/particle_effect/Destroy()
|
||||||
GLOB.cameranet.updateVisibility(src)
|
GLOB.cameranet.updateVisibility(src)
|
||||||
. = ..()
|
return ..()
|
||||||
|
|
||||||
/datum/effect_system
|
/datum/effect_system
|
||||||
var/number = 3
|
var/number = 3
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
opacity = 1
|
opacity = 1
|
||||||
anchored = TRUE
|
anchored = TRUE
|
||||||
|
|
||||||
/obj/effect/particle_effect/expl_particles/New()
|
/obj/effect/particle_effect/expl_particles/Initialize()
|
||||||
..()
|
. = ..()
|
||||||
QDEL_IN(src, 15)
|
QDEL_IN(src, 15)
|
||||||
|
|
||||||
/datum/effect_system/expl_particles
|
/datum/effect_system/expl_particles
|
||||||
@@ -29,8 +29,8 @@
|
|||||||
pixel_x = -32
|
pixel_x = -32
|
||||||
pixel_y = -32
|
pixel_y = -32
|
||||||
|
|
||||||
/obj/effect/explosion/New()
|
/obj/effect/explosion/Initialize()
|
||||||
..()
|
. = ..()
|
||||||
QDEL_IN(src, 10)
|
QDEL_IN(src, 10)
|
||||||
|
|
||||||
/datum/effect_system/explosion
|
/datum/effect_system/explosion
|
||||||
|
|||||||
@@ -270,8 +270,8 @@
|
|||||||
max_integrity = 20
|
max_integrity = 20
|
||||||
CanAtmosPass = ATMOS_PASS_DENSITY
|
CanAtmosPass = ATMOS_PASS_DENSITY
|
||||||
|
|
||||||
/obj/structure/foamedmetal/New()
|
/obj/structure/foamedmetal/Initialize()
|
||||||
..()
|
. = ..()
|
||||||
air_update_turf(1)
|
air_update_turf(1)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -30,8 +30,8 @@
|
|||||||
set_opacity(0) //if we were blocking view, we aren't now because we're fading out
|
set_opacity(0) //if we were blocking view, we aren't now because we're fading out
|
||||||
stoplag()
|
stoplag()
|
||||||
|
|
||||||
/obj/effect/particle_effect/smoke/New()
|
/obj/effect/particle_effect/smoke/Initialize()
|
||||||
..()
|
. = ..()
|
||||||
create_reagents(500)
|
create_reagents(500)
|
||||||
START_PROCESSING(SSobj, src)
|
START_PROCESSING(SSobj, src)
|
||||||
|
|
||||||
|
|||||||
@@ -22,8 +22,8 @@
|
|||||||
anchored = TRUE
|
anchored = TRUE
|
||||||
light_range = 1
|
light_range = 1
|
||||||
|
|
||||||
/obj/effect/particle_effect/sparks/New()
|
/obj/effect/particle_effect/sparks/Initialize()
|
||||||
..()
|
. = ..()
|
||||||
flick("sparks", src) // replay the animation
|
flick("sparks", src) // replay the animation
|
||||||
playsound(src.loc, "sparks", 100, 1)
|
playsound(src.loc, "sparks", 100, 1)
|
||||||
var/turf/T = loc
|
var/turf/T = loc
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
|
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
|
||||||
|
|
||||||
|
|
||||||
/obj/effect/particle_effect/water/New()
|
/obj/effect/particle_effect/water/Initialize()
|
||||||
..()
|
. = ..()
|
||||||
QDEL_IN(src, 70)
|
QDEL_IN(src, 70)
|
||||||
|
|
||||||
/obj/effect/particle_effect/water/Move(turf/newloc)
|
/obj/effect/particle_effect/water/Move(turf/newloc)
|
||||||
@@ -45,8 +45,8 @@ steam.start() -- spawns the effect
|
|||||||
icon_state = "extinguish"
|
icon_state = "extinguish"
|
||||||
density = FALSE
|
density = FALSE
|
||||||
|
|
||||||
/obj/effect/particle_effect/steam/New()
|
/obj/effect/particle_effect/steam/Initialize()
|
||||||
..()
|
. = ..()
|
||||||
QDEL_IN(src, 20)
|
QDEL_IN(src, 20)
|
||||||
|
|
||||||
/datum/effect_system/steam_spread
|
/datum/effect_system/steam_spread
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
CanAtmosPass = ATMOS_PASS_DENSITY
|
CanAtmosPass = ATMOS_PASS_DENSITY
|
||||||
var/timeleft = 300 //Set to 0 for permanent forcefields (ugh)
|
var/timeleft = 300 //Set to 0 for permanent forcefields (ugh)
|
||||||
|
|
||||||
/obj/effect/forcefield/New()
|
/obj/effect/forcefield/Initialize()
|
||||||
..()
|
. = ..()
|
||||||
if(timeleft)
|
if(timeleft)
|
||||||
QDEL_IN(src, timeleft)
|
QDEL_IN(src, timeleft)
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,9 @@
|
|||||||
icon = 'icons/mob/screen_gen.dmi'
|
icon = 'icons/mob/screen_gen.dmi'
|
||||||
icon_state = "x"
|
icon_state = "x"
|
||||||
|
|
||||||
/obj/effect/manifest/New()
|
/obj/effect/manifest/Initialize()
|
||||||
src.invisibility = INVISIBILITY_ABSTRACT
|
. = ..()
|
||||||
|
invisibility = INVISIBILITY_ABSTRACT
|
||||||
|
|
||||||
/obj/effect/manifest/proc/manifest()
|
/obj/effect/manifest/proc/manifest()
|
||||||
var/dat = "<B>Crew Manifest</B>:<BR>"
|
var/dat = "<B>Crew Manifest</B>:<BR>"
|
||||||
|
|||||||
@@ -98,8 +98,8 @@
|
|||||||
density = FALSE
|
density = FALSE
|
||||||
var/duration = 0
|
var/duration = 0
|
||||||
|
|
||||||
/obj/effect/mine/pickup/New()
|
/obj/effect/mine/pickup/Initialize()
|
||||||
..()
|
. = ..()
|
||||||
animate(src, pixel_y = 4, time = 20, loop = -1)
|
animate(src, pixel_y = 4, time = 20, loop = -1)
|
||||||
|
|
||||||
/obj/effect/mine/pickup/triggermine(mob/victim)
|
/obj/effect/mine/pickup/triggermine(mob/victim)
|
||||||
|
|||||||
@@ -13,8 +13,8 @@
|
|||||||
icon_state="b_beam"
|
icon_state="b_beam"
|
||||||
var/atom/BeamSource
|
var/atom/BeamSource
|
||||||
|
|
||||||
/obj/effect/overlay/beam/New()
|
/obj/effect/overlay/beam/Initialize()
|
||||||
..()
|
. = ..()
|
||||||
QDEL_IN(src, 10)
|
QDEL_IN(src, 10)
|
||||||
|
|
||||||
/obj/effect/overlay/palmtree_r
|
/obj/effect/overlay/palmtree_r
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
|
|
||||||
var/obj/item/toner/ink = null
|
var/obj/item/toner/ink = null
|
||||||
|
|
||||||
/obj/item/airlock_painter/New()
|
/obj/item/airlock_painter/Initialize()
|
||||||
..()
|
. = ..()
|
||||||
ink = new /obj/item/toner(src)
|
ink = new /obj/item/toner(src)
|
||||||
|
|
||||||
//This proc doesn't just check if the painter can be used, but also uses it.
|
//This proc doesn't just check if the painter can be used, but also uses it.
|
||||||
|
|||||||
@@ -14,8 +14,8 @@
|
|||||||
var/start_lit = FALSE
|
var/start_lit = FALSE
|
||||||
heat = 1000
|
heat = 1000
|
||||||
|
|
||||||
/obj/item/candle/New()
|
/obj/item/candle/Initialize()
|
||||||
..()
|
. = ..()
|
||||||
if(start_lit)
|
if(start_lit)
|
||||||
// No visible message
|
// No visible message
|
||||||
light(show_message = FALSE)
|
light(show_message = FALSE)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
anchored = TRUE
|
anchored = TRUE
|
||||||
var/popped = FALSE
|
var/popped = FALSE
|
||||||
|
|
||||||
/obj/effect/fun_balloon/New()
|
/obj/effect/fun_balloon/Initialize()
|
||||||
. = ..()
|
. = ..()
|
||||||
SSobj.processing |= src
|
SSobj.processing |= src
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user