Datum var cleanup (#34314)

* Consolidates datum var location

* Move ui_screen to /datum/tgui

* Move focusers to datum.dm. Move fingerprintslast to /atom

* Remove focusers list, makes mobs check if their focus is QDELETED in Life()

* Consolidate use_tag and var_edited into datum_flags

* Revert garbage comment

* Thought I already removed this

* Remove the var_edited preservation

* Removes focus QDELETED handling
This commit is contained in:
Jordan Brown
2018-01-21 22:38:56 -05:00
committed by CitadelStationBot
parent 193c4d6971
commit e84617f17b
15 changed files with 40 additions and 60 deletions
@@ -43,7 +43,7 @@
return FALSE
. = ValidateAndSet("[var_value]")
if(.)
var_edited = TRUE
datum_flags |= DF_VAR_EDITED
return
if(var_name in banned_edits)
return FALSE
@@ -114,7 +114,7 @@
var/temp = text2num(trim(str_val))
if(!isnull(temp))
value = CLAMP(integer ? round(temp) : temp, min_val, max_val)
if(value != temp && !var_edited)
if(value != temp && !(datum_flags & DF_VAR_EDITED))
log_config("Changing [name] from [temp] to [value]!")
return TRUE
return FALSE