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:
committed by
CitadelStationBot
parent
193c4d6971
commit
e84617f17b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user