This is still pretty terrible (#33495)

This commit is contained in:
AnturK
2017-12-14 04:08:11 +01:00
committed by CitadelStationBot
parent b11d1c024e
commit db3afb8ee1
2 changed files with 4 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ would spawn and follow the beaker, even if it is carried or thrown.
var/atom/holder
var/effect_type
var/total_effects = 0
var/autocleanup = FALSE //will delete itself after use
/datum/effect_system/Destroy()
holder = null
@@ -69,3 +70,5 @@ would spawn and follow the beaker, even if it is carried or thrown.
/datum/effect_system/proc/decrement_total_effect()
total_effects--
if(autocleanup && total_effects <= 0)
qdel(src)

View File

@@ -12,8 +12,8 @@
var/datum/effect_system/spark_spread/sparks = new
sparks.set_up(n, c, source)
sparks.autocleanup = TRUE
sparks.start()
qdel(sparks)
/obj/effect/particle_effect/sparks