mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-24 09:03:05 +00:00
Further improved stuff for dealing with associative lists. You can now modify the contents of an associative list. Removed static background noise. Added CarbonCopy command from oldcode.
This commit is contained in:
@@ -163,6 +163,11 @@
|
||||
if(!variable)
|
||||
return
|
||||
|
||||
var/associative
|
||||
if(istext(variable) && !isnull(L[variable]))
|
||||
associative = variable
|
||||
variable = L[variable]
|
||||
|
||||
var/default
|
||||
|
||||
var/dir
|
||||
@@ -252,13 +257,19 @@
|
||||
mod_list(variable)
|
||||
|
||||
if("restore to default")
|
||||
variable = initial(variable)
|
||||
if(associative)
|
||||
L[associative] = initial(L[associative])
|
||||
else
|
||||
variable = initial(variable)
|
||||
|
||||
if("edit referenced object")
|
||||
modify_variables(variable)
|
||||
|
||||
if("(DELETE FROM LIST)")
|
||||
L -= variable
|
||||
if(associative)
|
||||
L.Remove(associative)
|
||||
return
|
||||
L.Remove(variable)
|
||||
return
|
||||
|
||||
if("text")
|
||||
@@ -307,6 +318,9 @@
|
||||
if("marked datum")
|
||||
variable = holder.marked_datum
|
||||
|
||||
if(associative)
|
||||
L[associative] = variable
|
||||
|
||||
/client/proc/modify_variables(var/atom/O, var/param_var_name = null, var/autodetect_class = 0)
|
||||
var/list/locked = list("vars", "key", "ckey", "client", "firemut", "ishulk", "telekinesis", "xray", "virus", "cuffed", "ka", "last_eaten", "urine", "poo", "icon", "icon_state")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user