mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 07:28:53 +01:00
removes var/ inside all procs (#19450)
* removes var/ inside all procs * . * ugh
This commit is contained in:
@@ -319,7 +319,7 @@
|
||||
|
||||
|
||||
//assignment: <variable name> '=' expression
|
||||
/datum/SDQL_parser/proc/assignment(var/i, var/list/node, var/list/assignment_list = list())
|
||||
/datum/SDQL_parser/proc/assignment(i, list/node, list/assignment_list = list())
|
||||
assignment_list += token(i)
|
||||
|
||||
if(token(i + 1) == ".")
|
||||
@@ -426,7 +426,7 @@
|
||||
return i + 1
|
||||
|
||||
//array: '[' expression, expression, ... ']'
|
||||
/datum/SDQL_parser/proc/array(var/i, var/list/node)
|
||||
/datum/SDQL_parser/proc/array(i, list/node)
|
||||
// Arrays get turned into this: list("[", list(exp_1a = exp_1b, ...), ...), "[" is to mark the next node as an array.
|
||||
if(copytext(token(i), 1, 2) != "\[")
|
||||
parse_error("Expected an array but found '[token(i)]'")
|
||||
|
||||
@@ -44,7 +44,7 @@ ADMIN_VERB_AND_CONTEXT_MENU(jumptomob, R_ADMIN|R_MOD|R_DEBUG|R_EVENT, "Jump to M
|
||||
user.do_jumptomob(M)
|
||||
|
||||
/// Performs the jumps, also called from admin Topic() for JMP links
|
||||
/client/proc/do_jumptomob(var/mob/M)
|
||||
/client/proc/do_jumptomob(mob/M)
|
||||
if(!CONFIG_GET(flag/allow_admin_jump))
|
||||
tgui_alert_async(usr, "Admin jumping disabled")
|
||||
return
|
||||
@@ -174,7 +174,7 @@ ADMIN_VERB(Getkey, R_ADMIN|R_MOD|R_DEBUG|R_EVENT, "Get Key", "Key to teleport."
|
||||
else
|
||||
tgui_alert_async(usr, "Admin jumping disabled")
|
||||
|
||||
/client/proc/cmd_admin_move_atom(var/atom/movable/AM, tx as num, ty as num, tz as num)
|
||||
/client/proc/cmd_admin_move_atom(atom/movable/AM, tx as num, ty as num, tz as num)
|
||||
set category = "Admin.Game"
|
||||
set name = "Move Atom to Coordinate"
|
||||
|
||||
|
||||
@@ -345,7 +345,7 @@ GLOBAL_LIST_EMPTY(active_buildmode_holders)
|
||||
objholder = get_path_from_partial_text()
|
||||
return 1
|
||||
|
||||
/proc/build_click(var/mob/user, buildmode, params, var/obj/object)
|
||||
/proc/build_click(mob/user, buildmode, params, obj/object)
|
||||
var/obj/effect/bmode/buildholder/holder = null
|
||||
for(var/obj/effect/bmode/buildholder/H)
|
||||
if(H.cl == user.client)
|
||||
@@ -737,7 +737,7 @@ GLOBAL_LIST_EMPTY(active_buildmode_holders)
|
||||
if(holder.buildmode.objsay)
|
||||
to_chat(usr, "[object.type]")
|
||||
|
||||
/proc/build_drag(var/client/user, buildmode, var/atom/fromatom, var/atom/toatom, var/atom/fromloc, var/atom/toloc, var/fromcontrol, var/tocontrol, params)
|
||||
/proc/build_drag(client/user, buildmode, atom/fromatom, atom/toatom, atom/fromloc, atom/toloc, fromcontrol, tocontrol, params)
|
||||
var/obj/effect/bmode/buildholder/holder = null
|
||||
for(var/obj/effect/bmode/buildholder/H)
|
||||
if(H.cl == user)
|
||||
@@ -804,7 +804,7 @@ GLOBAL_LIST_EMPTY(active_buildmode_holders)
|
||||
log_admin("BUILDMODE/ITEM GENERATION: [key_name(usr)] selected [result] to be spawned.")
|
||||
return result
|
||||
|
||||
/obj/effect/bmode/buildmode/proc/make_rectangle(var/turf/A, var/turf/B, var/turf/wall_type, var/turf/floor_type, var/area_enabled, var/area_name)
|
||||
/obj/effect/bmode/buildmode/proc/make_rectangle(turf/A, turf/B, turf/wall_type, turf/floor_type, area_enabled, area_name)
|
||||
if(!A || !B) // No coords
|
||||
return
|
||||
if(A.z != B.z) // Not same z-level
|
||||
@@ -866,7 +866,7 @@ GLOBAL_LIST_EMPTY(active_buildmode_holders)
|
||||
if(area_enabled) //Let's try not to make a new area unless you got walls and a floor.
|
||||
create_buildmode_area(area_name, origin) //Generates a new area.
|
||||
|
||||
/proc/create_buildmode_area(var/area_name, var/turf/origin)
|
||||
/proc/create_buildmode_area(area_name, turf/origin)
|
||||
var/turfs = detect_room_buildmode(origin)
|
||||
|
||||
var/area/newA
|
||||
@@ -890,7 +890,7 @@ GLOBAL_LIST_EMPTY(active_buildmode_holders)
|
||||
oldA.power_check() //Simply makes the area turn the power off if you nicked an APC from it.
|
||||
return TRUE
|
||||
|
||||
/proc/detect_room_buildmode(var/turf/first, var/allowedAreas = AREA_SPACE)
|
||||
/proc/detect_room_buildmode(turf/first, allowedAreas = AREA_SPACE)
|
||||
if(!istype(first))
|
||||
return
|
||||
var/list/turf/found = list()
|
||||
|
||||
@@ -22,7 +22,7 @@ ADMIN_VERB(check_customitem_activity, R_ADMIN|R_MOD|R_SERVER, "Check activity of
|
||||
popup.set_content(dat)
|
||||
popup.open()
|
||||
|
||||
/proc/populate_inactive_customitems_list(var/client/C)
|
||||
/proc/populate_inactive_customitems_list(client/C)
|
||||
set background = 1
|
||||
|
||||
if(GLOB.checked_for_inactives)
|
||||
|
||||
@@ -369,7 +369,7 @@ ADMIN_VERB(cmd_admin_dress, R_FUN, "elect equipment", "Select equipment for a mo
|
||||
feedback_add_details("admin_verb","SEQ")
|
||||
dressup_human(target_human, outfit, 1)
|
||||
|
||||
/proc/dressup_human(var/mob/living/carbon/human/H, var/datum/decl/hierarchy/outfit/outfit)
|
||||
/proc/dressup_human(mob/living/carbon/human/H, datum/decl/hierarchy/outfit/outfit)
|
||||
if(!H || !outfit)
|
||||
return
|
||||
if(outfit.undress)
|
||||
@@ -514,7 +514,7 @@ ADMIN_VERB(cmd_debug_using_map, R_DEBUG, "Debug Map Datum", "Debug the map metad
|
||||
user.debug_variables(using_map)
|
||||
|
||||
// DNA2 - Admin Hax
|
||||
/client/proc/cmd_admin_toggle_block(var/mob/M,var/block)
|
||||
/client/proc/cmd_admin_toggle_block(mob/M,block)
|
||||
if(!SSticker)
|
||||
tgui_alert_async(src, "Wait until the game starts")
|
||||
return
|
||||
|
||||
@@ -119,7 +119,7 @@ ADMIN_VERB(intercom_view, R_DEBUG, "Intercom Range Display", "Displays the inter
|
||||
/client/var/usedZAScolors = 0
|
||||
/client/var/list/image/ZAScolors = list()
|
||||
|
||||
/client/proc/recurse_zone(var/datum/zone/Z, var/recurse_level =1)
|
||||
/client/proc/recurse_zone(datum/zone/Z, recurse_level =1)
|
||||
testZAScolors_zones += Z
|
||||
if(recurse_level > 10)
|
||||
return
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
feedback_add_details("admin_verb","PR") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
log_prayer("[src.key]/([src.name]): [raw_msg]")
|
||||
|
||||
/proc/CentCom_announce(var/msg, var/mob/Sender, var/iamessage)
|
||||
/proc/CentCom_announce(msg, mob/Sender, iamessage)
|
||||
msg = span_blue(span_bold(span_orange("[uppertext(using_map.boss_short)]M[iamessage ? " IA" : ""]:") + "[key_name(Sender, 1)] [ADMIN_PP(Sender)] [ADMIN_VV(Sender)] [ADMIN_SM(Sender)] ([admin_jump_link(Sender)]) [ADMIN_CA(Sender)] [ADMIN_BSA(Sender)] [ADMIN_CENTCOM_REPLY(Sender)]:") + " [msg]")
|
||||
for(var/client/C in GLOB.admins) //VOREStation Edit - GLOB admins
|
||||
if(!check_rights_for(C, R_ADMIN))
|
||||
@@ -34,7 +34,7 @@
|
||||
to_chat(C,msg)
|
||||
C << 'sound/machines/signal.ogg'
|
||||
|
||||
/proc/Syndicate_announce(var/msg, var/mob/Sender)
|
||||
/proc/Syndicate_announce(msg, mob/Sender)
|
||||
msg = span_blue(span_bold(span_crimson("ILLEGAL:") + "[key_name(Sender, 1)] [ADMIN_PP(Sender)] [ADMIN_VV(Sender)] [ADMIN_SM(Sender)] ([admin_jump_link(Sender)]) [ADMIN_CA(Sender)] [ADMIN_BSA(Sender)] [ADMIN_SYNDICATE_REPLY(Sender)]:") + " [msg]")
|
||||
for(var/client/C in GLOB.admins) //VOREStation Edit - GLOB admins
|
||||
if(!check_rights_for(C, R_ADMIN))
|
||||
|
||||
@@ -232,7 +232,7 @@ Allow admins to set players to be able to respawn/bypass 30 min wait, without th
|
||||
Ccomp's first proc.
|
||||
*/
|
||||
|
||||
/client/proc/get_ghosts(var/notify = 0,var/what = 2)
|
||||
/client/proc/get_ghosts(notify = 0,what = 2)
|
||||
// what = 1, return ghosts ass list.
|
||||
// what = 2, return mob list
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/client/proc/smite(var/mob/living/carbon/human/target in GLOB.player_list)
|
||||
/client/proc/smite(mob/living/carbon/human/target in GLOB.player_list)
|
||||
set name = "Smite"
|
||||
set desc = "Abuse a player with various 'special treatments' from a list."
|
||||
set category = "Fun.Do Not"
|
||||
@@ -290,7 +290,7 @@ GLOBAL_VAR(redspace_abduction_z)
|
||||
|
||||
target.transforming = FALSE
|
||||
|
||||
/proc/fake_autosave(var/mob/living/target, var/client/user, var/wide)
|
||||
/proc/fake_autosave(mob/living/target, client/user, wide)
|
||||
if(!istype(target) || !target.client)
|
||||
to_chat(user, span_warning("Skipping [target] because they are not a /mob/living or have no client."))
|
||||
return
|
||||
|
||||
@@ -153,7 +153,7 @@ ADMIN_VERB(response_team, R_ADMIN|R_MOD|R_EVENT, "Dispatch Emergency Response Te
|
||||
sleep(600 * 3) // Minute * Number of Minutes
|
||||
|
||||
|
||||
/proc/trigger_armed_response_team(var/force = 0)
|
||||
/proc/trigger_armed_response_team(force = 0)
|
||||
if(!GLOB.can_call_ert && !force)
|
||||
return
|
||||
if(GLOB.send_emergency_team)
|
||||
|
||||
Reference in New Issue
Block a user