BRUTAL Part 1 - No proc var/ in procs

This commit is contained in:
AffectedArc07
2021-02-01 14:10:08 +00:00
parent 1d89138436
commit f5f97882cf
533 changed files with 1558 additions and 1554 deletions
+4 -4
View File
@@ -18,7 +18,7 @@
* Also, this should only be called by `list_to_object` in persistence.dm - at least
* with current plans - that way it can actually initialize the type from the list
*/
/datum/proc/deserialize(var/list/data)
/datum/proc/deserialize(list/data)
return
/atom
@@ -50,7 +50,7 @@
return data
/atom/deserialize(var/list/data)
/atom/deserialize(list/data)
for(var/thing in vars_to_save())
if(thing in data)
vars[thing] = data[thing]
@@ -70,11 +70,11 @@ If you're clever, you can do neat things with SDQL and this, though be careful -
some objects, like humans, are dependent that certain extra things are defined
in their list
*/
/proc/json_to_object(var/json_data, var/loc)
/proc/json_to_object(json_data, loc)
var/data = json_decode(json_data)
return list_to_object(data, loc)
/proc/list_to_object(var/list/data, var/loc)
/proc/list_to_object(list/data, loc)
if(!islist(data))
throw EXCEPTION("You didn't give me a list, bucko")
if(!("type" in data))