Adds a dirty var viewer in TESTING mode (#41498)

This commit is contained in:
ShizCalev
2018-11-16 06:31:20 -05:00
committed by yogstation13-bot
parent bd84e84804
commit 736bce805d
2 changed files with 22 additions and 0 deletions

View File

@@ -20,6 +20,10 @@ GLOBAL_DATUM_INIT(_preloader, /datum/map_preloader, new)
var/value = attributes[attribute]
if(islist(value))
value = deepCopyList(value)
#ifdef TESTING
if(what.vars[attribute] == value)
GLOB.dirty_vars += "<font color=green>[what.type]</font> at [AREACOORD(what)] - <b>VAR:</b> <font color=red>[attribute] = [isnull(value) ? "null" : (isnum(value) ? value : "\"[value]\"")]</font>"
#endif
what.vars[attribute] = value
/area/template_noop