Subsystem created... works!

This commit is contained in:
Purpose
2018-10-06 20:05:02 +01:00
parent bc67a1e39d
commit d335a5a4ce
15 changed files with 95 additions and 54 deletions
+24
View File
@@ -0,0 +1,24 @@
var/datum/controller/subsystem/icon_smooth/SSicon_smooth
/datum/controller/subsystem/icon_smooth
name = "Icon Smoothing"
priority = -5
wait = 5
var/list/smooth_queue = list()
/datum/controller/subsystem/icon_smooth/New()
NEW_SS_GLOBAL(SSicon_smooth)
/datum/controller/subsystem/icon_smooth/fire()
for(var/atom in smooth_queue)
ss_smooth_icon(atom)
smooth_queue -= atom
/datum/controller/subsystem/icon_smooth/Initialize()
smooth_zlevel(1,TRUE)
smooth_zlevel(2,TRUE)
for(var/V in smooth_queue)
var/atom/A = V
if(A.z == 1 || A.z == 2)
smooth_queue -= A
..()