mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
removes the useless effect/delete() proc, used QDEL_IN and addtimers, nanofrost can weld scrubbers too, some more cleanup fixes and tried to get smoke fade_out to work (it doesn't work and hasn't in the past)
This commit is contained in:
@@ -21,20 +21,6 @@ would spawn and follow the beaker, even if it is carried or thrown.
|
||||
cameranet.updateVisibility(src)
|
||||
return ..()
|
||||
|
||||
/obj/effect/proc/delete()
|
||||
qdel(src)
|
||||
|
||||
/datum/effect/proc/fadeOut(atom/A, frames = 16)
|
||||
if(A.alpha == 0) //Handle already transparent case
|
||||
return
|
||||
if(frames == 0)
|
||||
frames = 1 //We will just assume that by 0 frames, the coder meant "during one frame".
|
||||
var/step = A.alpha / frames
|
||||
for(var/i = 0, i < frames, i++)
|
||||
A.alpha -= step
|
||||
sleep(world.tick_lag)
|
||||
return
|
||||
|
||||
/datum/effect/system
|
||||
var/number = 3
|
||||
var/cardinals = 0
|
||||
|
||||
Reference in New Issue
Block a user