Code Readability - Effects (#18150)

* effects

* removed anchored = TRUE from objects that inherit that property within the effects folder and subfolders
This commit is contained in:
KalevTait
2022-07-02 16:48:46 +01:00
committed by GitHub
parent 3c00a1f061
commit 89ba9c047c
31 changed files with 35 additions and 92 deletions
@@ -9,7 +9,6 @@ would spawn and follow the beaker, even if it is carried or thrown.
name = "particle effect"
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
pass_flags = PASSTABLE | PASSGRILLE
anchored = TRUE
/obj/effect/particle_effect/New()
..()
@@ -1,8 +1,7 @@
/obj/effect/particle_effect/expl_particles
name = "explosive particles"
icon_state = "explosion_particle"
opacity = 1
anchored = 1
opacity = TRUE
/obj/effect/particle_effect/expl_particles/New()
..()
@@ -25,8 +24,7 @@
name = "explosive particles"
icon = 'icons/effects/96x96.dmi'
icon_state = "explosion"
opacity = 1
anchored = 1
opacity = TRUE
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
pixel_x = -32
pixel_y = -32
@@ -5,9 +5,8 @@
/obj/effect/particle_effect/foam
name = "foam"
icon_state = "foam"
opacity = 0
anchored = 1
density = 0
opacity = FALSE
density = FALSE
layer = OBJ_LAYER + 0.9
animate_movement = 0
var/amount = 3
@@ -2,7 +2,6 @@
/obj/effect/particle_effect/ion_trails
name = "ion trails"
icon_state = "ion_trails"
anchored = TRUE
/obj/effect/particle_effect/ion_trails/Initialize(mapload, targetdir)
. = ..()
@@ -10,8 +10,8 @@
icon = 'icons/effects/96x96.dmi'
pixel_x = -32
pixel_y = -32
opacity = 1
anchored = 0
opacity = TRUE
anchored = FALSE
var/steps = 0
var/lifetime = 5
var/direction
@@ -142,11 +142,11 @@
/obj/effect/particle_effect/smoke/freezing
name = "nanofrost smoke"
color = "#B2FFFF"
opacity = 0
opacity = FALSE
/datum/effect_system/smoke_spread/freezing
effect_type = /obj/effect/particle_effect/smoke/freezing
var/blast = 0
var/blast = FALSE
/datum/effect_system/smoke_spread/freezing/proc/Chilled(atom/A)
if(istype(A, /turf/simulated))
@@ -163,12 +163,12 @@
G.toxins = 0
for(var/obj/machinery/atmospherics/unary/vent_pump/V in T)
if(!isnull(V.welded) && !V.welded) //must be an unwelded vent pump.
V.welded = 1
V.welded = TRUE
V.update_icon()
V.visible_message("<span class='danger'>[V] was frozen shut!</span>")
for(var/obj/machinery/atmospherics/unary/vent_scrubber/U in T)
if(!isnull(U.welded) && !U.welded) //must be an unwelded vent scrubber.
U.welded = 1
U.welded = TRUE
U.update_icon()
U.visible_message("<span class='danger'>[U] was frozen shut!</span>")
for(var/mob/living/L in T)
@@ -19,7 +19,6 @@
name = "sparks"
desc = "it's a spark what do you need to know?"
icon_state = "sparks"
anchored = TRUE
var/hotspottemp = 1000
/obj/effect/particle_effect/sparks/New()
@@ -42,7 +42,7 @@
/obj/effect/particle_effect/steam
name = "steam"
icon_state = "extinguish"
density = 0
density = FALSE
/obj/effect/particle_effect/steam/New()
..()