[MIRROR] Cleanup up all instances of using var/ definitions in proc parameters. (#240)

* Cleanup up all instances of using var/ definitions in proc parameters. (#52728)

* var/list cleanup

* The rest of the owl

* plushvar bad

* Can't follow my own advice.

* Cleanup up all instances of using var/ definitions in proc parameters.

Co-authored-by: Timberpoes <silent_insomnia_pp@hotmail.co.uk>
This commit is contained in:
SkyratBot
2020-08-07 19:26:21 +02:00
committed by GitHub
parent 2156012137
commit ee324ab3c2
179 changed files with 359 additions and 359 deletions
+1 -1
View File
@@ -754,7 +754,7 @@
target_mind.traitor_panel()
SSblackbox.record_feedback("tally", "admin_verb", 1, "Traitor Panel") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/datum/admins/proc/show_skill_panel(var/target)
/datum/admins/proc/show_skill_panel(target)
set category = "Admin - Game"
set desc = "Edit mobs's experience and skill levels"
set name = "Show Skill Panel"
+1 -1
View File
@@ -406,7 +406,7 @@
return sortList(world.GetConfig("ban"))
/proc/get_stickyban_from_ckey(var/ckey)
/proc/get_stickyban_from_ckey(ckey)
. = list()
if (!ckey)
return null
+2 -2
View File
@@ -1,5 +1,5 @@
// Proc taken from yogstation, credit to nichlas0010 for the original
/client/proc/fix_air(var/turf/open/T in world)
/client/proc/fix_air(turf/open/T in world)
set name = "Fix Air"
set category = "Admin - Game"
set desc = "Fixes air in specified radius."
@@ -18,4 +18,4 @@
continue
GM.parse_gas_string(F.initial_gas_mix)
F.copy_air(GM)
F.update_visuals()
F.update_visuals()
+1 -1
View File
@@ -303,7 +303,7 @@
unset_busy_human_dummy(DUMMY_HUMAN_SLOT_ADMIN)
return preview_icon
/datum/admins/proc/makeEmergencyresponseteam(var/datum/ert/ertemplate = null)
/datum/admins/proc/makeEmergencyresponseteam(datum/ert/ertemplate = null)
if (ertemplate)
ertemplate = new ertemplate
else
@@ -198,7 +198,7 @@
message_admins("[key_name_admin(src)] mass modified [original_name]'s [variable] to [O.vars[variable]] ([accepted] objects modified)")
//not using global lists as vv is a debug function and debug functions should rely on as less things as possible.
/proc/get_all_of_type(var/T, subtypes = TRUE)
/proc/get_all_of_type(T, subtypes = TRUE)
var/list/typecache = list()
typecache[T] = 1
if (subtypes)
@@ -17,7 +17,7 @@ GLOBAL_PROTECT(VVpixelmovement)
//FALSE = no subtypes, strict exact type pathing (or the type doesn't have subtypes)
//TRUE = Yes subtypes
//NULL = User cancelled at the prompt or invalid type given
/client/proc/vv_subtype_prompt(var/type)
/client/proc/vv_subtype_prompt(type)
if (!ispath(type))
return
var/list/subtypes = subtypesof(type)
+1 -1
View File
@@ -15,7 +15,7 @@ GLOBAL_PROTECT(whitelist)
if(!GLOB.whitelist.len)
GLOB.whitelist = null
/proc/check_whitelist(var/ckey)
/proc/check_whitelist(ckey)
if(!GLOB.whitelist)
return FALSE
. = (ckey in GLOB.whitelist)