Revert "Merge branch 'master' of https://github.com/PolarisSS13/Polaris into NanoGrade"

This reverts commit 6bb5409349, reversing
changes made to f6a83d5ee0.
This commit is contained in:
SinTwo
2016-08-15 12:58:00 -04:00
parent 6bb5409349
commit eabefc538a
325 changed files with 3375 additions and 41824 deletions

View File

@@ -27,20 +27,20 @@ var/list/VVckey_edit = list("key", "ckey")
src.modify_variables(ticker)
feedback_add_details("admin_verb","ETV") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/mod_list_add_ass()
var/class = "text"
var/list/class_input = list("text","num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default")
if(src.holder)
var/datum/marked_datum = holder.marked_datum()
if(marked_datum)
class_input += "marked datum ([marked_datum.type])"
/client/proc/mod_list_add_ass() //haha
var/class = "text"
if(src.holder && src.holder.marked_datum)
class = input("What kind of variable?","Variable Type") as null|anything in list("text",
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default","marked datum ([holder.marked_datum.type])")
else
class = input("What kind of variable?","Variable Type") as null|anything in list("text",
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default")
class = input("What kind of variable?","Variable Type") as null|anything in class_input
if(!class)
return
var/datum/marked_datum = holder.marked_datum()
if(marked_datum && class == "marked datum ([marked_datum.type])")
if(holder.marked_datum && class == "marked datum ([holder.marked_datum.type])")
class = "marked datum"
var/var_value = null
@@ -69,7 +69,7 @@ var/list/VVckey_edit = list("key", "ckey")
var_value = input("Pick icon:","Icon") as null|icon
if("marked datum")
var_value = holder.marked_datum()
var_value = holder.marked_datum
if(!var_value) return
@@ -79,18 +79,17 @@ var/list/VVckey_edit = list("key", "ckey")
/client/proc/mod_list_add(var/list/L, atom/O, original_name, objectvar)
var/class = "text"
var/list/class_input = list("text","num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default")
if(src.holder)
var/datum/marked_datum = holder.marked_datum()
if(marked_datum)
class_input += "marked datum ([marked_datum.type])"
if(src.holder && src.holder.marked_datum)
class = input("What kind of variable?","Variable Type") as null|anything in list("text",
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default","marked datum ([holder.marked_datum.type])")
else
class = input("What kind of variable?","Variable Type") as null|anything in list("text",
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default")
class = input("What kind of variable?","Variable Type") as null|anything in class_input
if(!class)
return
var/datum/marked_datum = holder.marked_datum()
if(marked_datum && class == "marked datum ([marked_datum.type])")
if(holder.marked_datum && class == "marked datum ([holder.marked_datum.type])")
class = "marked datum"
var/var_value = null
@@ -119,7 +118,7 @@ var/list/VVckey_edit = list("key", "ckey")
var_value = input("Pick icon:","Icon") as icon
if("marked datum")
var_value = holder.marked_datum()
var_value = holder.marked_datum
if(!var_value) return
@@ -245,21 +244,17 @@ var/list/VVckey_edit = list("key", "ckey")
usr << "If a direction, direction is: [dir]"
var/class = "text"
var/list/class_input = list("text","num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default")
if(src.holder)
var/datum/marked_datum = holder.marked_datum()
if(marked_datum)
class_input += "marked datum ([marked_datum.type])"
class_input += "DELETE FROM LIST"
class = input("What kind of variable?","Variable Type",default) as null|anything in class_input
if(src.holder && src.holder.marked_datum)
class = input("What kind of variable?","Variable Type",default) as null|anything in list("text",
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default","marked datum ([holder.marked_datum.type])", "DELETE FROM LIST")
else
class = input("What kind of variable?","Variable Type",default) as null|anything in list("text",
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default", "DELETE FROM LIST")
if(!class)
return
var/datum/marked_datum = holder.marked_datum()
if(marked_datum && class == "marked datum ([marked_datum.type])")
if(holder.marked_datum && class == "marked datum ([holder.marked_datum.type])")
class = "marked datum"
var/original_var
@@ -341,9 +336,7 @@ var/list/VVckey_edit = list("key", "ckey")
L[L.Find(variable)] = new_var
if("marked datum")
new_var = holder.marked_datum()
if(!new_var)
return
new_var = holder.marked_datum
if(assoc)
L[assoc_key] = new_var
else
@@ -508,12 +501,12 @@ var/list/VVckey_edit = list("key", "ckey")
if(dir)
usr << "If a direction, direction is: [dir]"
var/list/class_input = list("text","num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default")
if(src.holder)
var/datum/marked_datum = holder.marked_datum()
if(marked_datum)
class_input += "marked datum ([marked_datum.type])"
class = input("What kind of variable?","Variable Type",default) as null|anything in class_input
if(src.holder && src.holder.marked_datum)
class = input("What kind of variable?","Variable Type",default) as null|anything in list("text",
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default","marked datum ([holder.marked_datum.type])")
else
class = input("What kind of variable?","Variable Type",default) as null|anything in list("text",
"num","type","reference","mob reference", "icon","file","list","edit referenced object","restore to default")
if(!class)
return
@@ -525,8 +518,7 @@ var/list/VVckey_edit = list("key", "ckey")
else
original_name = O:name
var/datum/marked_datum = holder.marked_datum()
if(marked_datum && class == "marked datum ([marked_datum.type])")
if(holder.marked_datum && class == "marked datum ([holder.marked_datum.type])")
class = "marked datum"
switch(class)
@@ -592,7 +584,7 @@ var/list/VVckey_edit = list("key", "ckey")
O.vars[variable] = var_new
if("marked datum")
O.vars[variable] = holder.marked_datum()
O.vars[variable] = holder.marked_datum
world.log << "### VarEdit by [src]: [O.type] [variable]=[html_encode("[O.vars[variable]]")]"
log_admin("[key_name(src)] modified [original_name]'s [variable] to [O.vars[variable]]")