mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-25 04:57:47 +01:00
removes var/ inside all procs (#19450)
* removes var/ inside all procs * . * ugh
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
|
||||
//Either pass the mob you wish to ban in the 'banned_mob' attribute, or the banckey, banip and bancid variables. If both are passed, the mob takes priority! If a mob is not passed, banckey is the minimum that needs to be passed! banip and bancid are optional.
|
||||
/datum/admins/proc/DB_ban_record(var/bantype, var/mob/banned_mob, var/duration = -1, var/reason, var/job = "", var/rounds = 0, var/banckey = null, var/banip = null, var/bancid = null)
|
||||
/datum/admins/proc/DB_ban_record(bantype, mob/banned_mob, duration = -1, reason, job = "", rounds = 0, banckey = null, banip = null, bancid = null)
|
||||
|
||||
if(!check_rights(R_MOD,0) && !check_rights(R_BAN)) return
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
qdel(query_insert)
|
||||
|
||||
|
||||
/datum/admins/proc/DB_ban_unban(var/ckey, var/bantype, var/job = "")
|
||||
/datum/admins/proc/DB_ban_unban(ckey, bantype, job = "")
|
||||
|
||||
if(!check_rights(R_BAN))
|
||||
return
|
||||
@@ -154,7 +154,7 @@
|
||||
|
||||
DB_ban_unban_by_id(ban_id)
|
||||
|
||||
/datum/admins/proc/DB_ban_edit(client/user, var/banid = null, var/param = null)
|
||||
/datum/admins/proc/DB_ban_edit(client/user, banid = null, param = null)
|
||||
|
||||
if(!check_rights_for(user, R_BAN))
|
||||
return
|
||||
@@ -217,7 +217,7 @@
|
||||
to_chat(user, span_filter_adminlog("Cancelled"))
|
||||
return
|
||||
|
||||
/datum/admins/proc/DB_ban_unban_by_id(var/id)
|
||||
/datum/admins/proc/DB_ban_unban_by_id(id)
|
||||
|
||||
if(!check_rights(R_BAN)) return
|
||||
|
||||
@@ -269,7 +269,7 @@
|
||||
holder.DB_ban_panel(src)
|
||||
|
||||
|
||||
/datum/admins/proc/DB_ban_panel(client/user, var/playerckey = null)
|
||||
/datum/admins/proc/DB_ban_panel(client/user, playerckey = null)
|
||||
if(!user)
|
||||
return
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ GLOBAL_VAR_INIT(c_minutes, 0)
|
||||
GLOBAL_DATUM(banlist, /savefile)
|
||||
|
||||
|
||||
/proc/CheckBan(var/ckey, var/id, var/address)
|
||||
/proc/CheckBan(ckey, id, address)
|
||||
if(!GLOB.banlist) // if Banlist cannot be located for some reason
|
||||
LoadBans() // try to load the bans
|
||||
if(!GLOB.banlist) // uh oh, can't find bans!
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#define TORFILE "data/ToR_ban.bdb"
|
||||
#define TOR_UPDATE_INTERVAL 216000 //~6 hours
|
||||
|
||||
/proc/ToRban_isbanned(var/ip_address)
|
||||
/proc/ToRban_isbanned(ip_address)
|
||||
var/savefile/F = new(TORFILE)
|
||||
if(F)
|
||||
if( ip_address in F.dir )
|
||||
|
||||
@@ -2,7 +2,7 @@ GLOBAL_VAR_INIT(floorIsLava, 0)
|
||||
|
||||
|
||||
////////////////////////////////
|
||||
/proc/message_admins(var/msg)
|
||||
/proc/message_admins(msg)
|
||||
msg = span_filter_adminlog(span_log_message(span_prefix("ADMIN LOG:") + span_message("[msg]")))
|
||||
//log_admin_private(msg) //log_and_message_admins is for this
|
||||
|
||||
@@ -13,7 +13,7 @@ GLOBAL_VAR_INIT(floorIsLava, 0)
|
||||
html = msg,
|
||||
confidential = TRUE)
|
||||
|
||||
/proc/msg_admin_attack(var/text) //Toggleable Attack Messages
|
||||
/proc/msg_admin_attack(text) //Toggleable Attack Messages
|
||||
var/rendered = span_filter_attacklog(span_log_message(span_prefix("ATTACK:") + span_message("[text]")))
|
||||
for(var/client/C in GLOB.admins)
|
||||
if(check_rights_for(C, (R_ADMIN|R_MOD)))
|
||||
@@ -24,7 +24,7 @@ GLOBAL_VAR_INIT(floorIsLava, 0)
|
||||
html = msg,
|
||||
confidential = TRUE)
|
||||
|
||||
/proc/admin_notice(var/message, var/rights)
|
||||
/proc/admin_notice(message, rights)
|
||||
for(var/mob/M in GLOB.mob_list)
|
||||
var/C = M.client
|
||||
|
||||
@@ -262,7 +262,7 @@ ADMIN_VERB(PlayerNotes, R_ADMIN|R_MOD|R_EVENT|R_DEBUG, "Player Notes", "Access t
|
||||
A.tgui_interact(user)
|
||||
|
||||
|
||||
/datum/admins/proc/player_has_info(var/key as text)
|
||||
/datum/admins/proc/player_has_info(key as text)
|
||||
var/savefile/info = new("data/player_saves/[copytext(key, 1, 2)]/[key]/info.sav")
|
||||
var/list/infos
|
||||
info >> infos
|
||||
@@ -554,7 +554,7 @@ ADMIN_VERB(access_news_network, R_ADMIN|R_EVENT, "Access Newscaster Network", "A
|
||||
popup.open()
|
||||
|
||||
/*
|
||||
/datum/admins/proc/Secrets(var/datum/admin_secret_category/active_category = null)
|
||||
/datum/admins/proc/Secrets(datum/admin_secret_category/active_category = null)
|
||||
if(!check_rights(0)) return
|
||||
|
||||
// Print the header with category selection buttons.
|
||||
@@ -927,7 +927,7 @@ ADMIN_VERB(adrev, R_SERVER, "Toggle Revive", "Toggle admin revives.", ADMIN_CATE
|
||||
message_admins(span_blue("Toggled reviving to [CONFIG_GET(flag/allow_admin_rev)]."))
|
||||
feedback_add_details("admin_verb","TAR") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/datum/admins/proc/unprison(var/mob/M in GLOB.mob_list)
|
||||
/datum/admins/proc/unprison(mob/M in GLOB.mob_list)
|
||||
set category = "Admin.Moderation"
|
||||
set name = "Unprison"
|
||||
if (M.z == 2)
|
||||
@@ -943,7 +943,7 @@ ADMIN_VERB(adrev, R_SERVER, "Toggle Revive", "Toggle admin revives.", ADMIN_CATE
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////ADMIN HELPER PROCS
|
||||
|
||||
/proc/is_special_character(var/character) // returns 1 for special characters and 2 for heroes of gamemode
|
||||
/proc/is_special_character(character) // returns 1 for special characters and 2 for heroes of gamemode
|
||||
if(!SSticker|| !SSticker.mode)
|
||||
return 0
|
||||
var/datum/mind/M
|
||||
@@ -1223,7 +1223,7 @@ ADMIN_VERB(toggleguests, R_HOST, "Toggle guests", "Guests can't enter.", ADMIN_C
|
||||
|
||||
//Returns 1 to let the dragdrop code know we are trapping this event
|
||||
//Returns 0 if we don't plan to trap the event
|
||||
/datum/admins/proc/cmd_ghost_drag(var/mob/observer/dead/frommob, var/mob/living/tomob)
|
||||
/datum/admins/proc/cmd_ghost_drag(mob/observer/dead/frommob, mob/living/tomob)
|
||||
if(!istype(frommob))
|
||||
return //Extra sanity check to make sure only observers are shoved into things
|
||||
|
||||
@@ -1322,7 +1322,7 @@ ADMIN_VERB(sendFax, R_ADMIN|R_MOD|R_EVENT, "Send Fax", "Sends a fax to this mach
|
||||
|
||||
/datum/admins/var/obj/item/paper/admin/faxreply // var to hold fax replies in
|
||||
|
||||
/datum/admins/proc/faxCallback(var/obj/item/paper/admin/P, var/obj/machinery/photocopier/faxmachine/destination)
|
||||
/datum/admins/proc/faxCallback(obj/item/paper/admin/P, obj/machinery/photocopier/faxmachine/destination)
|
||||
var/customname = tgui_input_text(src.owner, "Pick a title for the report", "Title")
|
||||
|
||||
P.name = "[P.origin] - [customname]"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
/atom/var/lastattacker = null
|
||||
|
||||
/proc/log_and_message_admins(var/message as text, var/mob/user = usr)
|
||||
/proc/log_and_message_admins(message as text, mob/user = usr)
|
||||
log_admin(user ? "[key_name(user)] [message]" : "EVENT [message]")
|
||||
message_admins(user ? "[key_name_admin(user)] [message]" : "EVENT [message]")
|
||||
|
||||
/proc/log_and_message_admins_many(var/list/mob/users, var/message)
|
||||
/proc/log_and_message_admins_many(list/mob/users, message)
|
||||
if(!users || !users.len)
|
||||
return
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#define INVESTIGATE_DIR "data/investigate/"
|
||||
|
||||
//SYSTEM
|
||||
/proc/investigate_subject2file(var/subject)
|
||||
/proc/investigate_subject2file(subject)
|
||||
return file("[INVESTIGATE_DIR][subject].html")
|
||||
|
||||
/hook/startup/proc/resetInvestigate()
|
||||
@@ -19,7 +19,7 @@
|
||||
if(fdel(INVESTIGATE_DIR)) return 1
|
||||
return 0
|
||||
|
||||
/atom/proc/investigate_log(var/message, var/subject)
|
||||
/atom/proc/investigate_log(message, subject)
|
||||
if(!message) return
|
||||
var/F = investigate_subject2file(subject)
|
||||
if(!F) return
|
||||
|
||||
@@ -29,7 +29,7 @@ GLOBAL_LIST_EMPTY(jobban_keylist) //to store the keys & ranks
|
||||
return ckey_is_jobbanned(M.ckey, rank)
|
||||
return 0
|
||||
|
||||
/proc/ckey_is_jobbanned(var/check_key, var/rank)
|
||||
/proc/ckey_is_jobbanned(check_key, rank)
|
||||
for(var/s in GLOB.jobban_keylist)
|
||||
if(findtext(s,"[check_key] - [rank]") == 1 )
|
||||
var/startpos = findtext(s, "## ")+3
|
||||
@@ -106,7 +106,7 @@ DEBUG
|
||||
jobban_savebanfile()
|
||||
|
||||
|
||||
/proc/ban_unban_log_save(var/formatted_log)
|
||||
/proc/ban_unban_log_save(formatted_log)
|
||||
text2file(formatted_log,"data/ban_unban_log.txt")
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Command to set the ckey of a mob without requiring VV permission
|
||||
/client/proc/SetCKey(var/mob/M in GLOB.mob_list)
|
||||
/client/proc/SetCKey(mob/M in GLOB.mob_list)
|
||||
set category = "Admin.Game"
|
||||
set name = "Set CKey"
|
||||
set desc = "Mob to teleport"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// showadvscan toggles whether to give additional scan information about chemicals in their body.
|
||||
// By default this proc is set to it's most powerful scan.
|
||||
|
||||
/mob/living/proc/scan_mob(mob/user, var/mode = 1, var/advscan = SCANNABLE_SECRETIVE, var/showadvscan = 1)
|
||||
/mob/living/proc/scan_mob(mob/user, mode = 1, advscan = SCANNABLE_SECRETIVE, showadvscan = 1)
|
||||
var/mob/living/M = src
|
||||
var/dat = ""
|
||||
|
||||
|
||||
@@ -584,13 +584,13 @@ ADMIN_VERB_AND_CONTEXT_MENU(modify_robot, R_ADMIN|R_FUN|R_VAREDIT|R_EVENT, "Modi
|
||||
target.hud_used?.update_robot_modules_display()
|
||||
return TRUE
|
||||
|
||||
/datum/eventkit/modify_robot/proc/get_target_items(var/mob/user)
|
||||
/datum/eventkit/modify_robot/proc/get_target_items(mob/user)
|
||||
var/list/target_items = list()
|
||||
for(var/obj/item in target.module.modules)
|
||||
target_items += list(list("name" = item.name, "ref" = "\ref[item]", "icon" = icon2html(item, user, sourceonly=TRUE), "desc" = item.desc))
|
||||
return target_items
|
||||
|
||||
/datum/eventkit/modify_robot/proc/get_module_source(var/mob/user, var/datum/asset/spritesheet_batched/robot_icons/spritesheet)
|
||||
/datum/eventkit/modify_robot/proc/get_module_source(mob/user, datum/asset/spritesheet_batched/robot_icons/spritesheet)
|
||||
var/list/source_list = list()
|
||||
source_list["model"] = source.module
|
||||
source_list["sprite"] = sanitize_css_class_name("[source.sprite_datum.type]")
|
||||
@@ -660,7 +660,7 @@ ADMIN_VERB_AND_CONTEXT_MENU(modify_robot, R_ADMIN|R_FUN|R_VAREDIT|R_EVENT, "Modi
|
||||
all_upgrades["restricted_upgrades"] = restricted_upgrades
|
||||
return all_upgrades
|
||||
|
||||
/datum/eventkit/modify_robot/proc/get_pka(var/obj/item/gun/energy/kinetic_accelerator/kin)
|
||||
/datum/eventkit/modify_robot/proc/get_pka(obj/item/gun/energy/kinetic_accelerator/kin)
|
||||
var/list/pka = list()
|
||||
pka["name"] = kin.name
|
||||
var/list/installed_modkits = list()
|
||||
@@ -695,7 +695,7 @@ ADMIN_VERB_AND_CONTEXT_MENU(modify_robot, R_ADMIN|R_FUN|R_VAREDIT|R_EVENT, "Modi
|
||||
pka["max_capacity"] = kin.max_mod_capacity
|
||||
return pka
|
||||
|
||||
/datum/eventkit/modify_robot/proc/get_mult_belt(var/obj/item/robotic_multibelt/mult_belt)
|
||||
/datum/eventkit/modify_robot/proc/get_mult_belt(obj/item/robotic_multibelt/mult_belt)
|
||||
var/list/multi_belt_list = list()
|
||||
multi_belt_list["name"] = mult_belt.name
|
||||
multi_belt_list["ref"] = REF(mult_belt)
|
||||
@@ -739,7 +739,7 @@ ADMIN_VERB_AND_CONTEXT_MENU(modify_robot, R_ADMIN|R_FUN|R_VAREDIT|R_EVENT, "Modi
|
||||
cell_options += list(initial(C.name) = list("path" = "[C]", "charge" = initial(C.maxcharge), "max_charge" = initial(C.maxcharge), "charge_amount" = initial(C.charge_amount) , "self_charge" = initial(C.self_recharge), "max_damage" = initial(C.robot_durability))) // our cells do not have their charge predefined, they do it on init, so both maaxcharge for now
|
||||
return cell_options
|
||||
|
||||
/datum/eventkit/modify_robot/proc/get_component(var/type)
|
||||
/datum/eventkit/modify_robot/proc/get_component(type)
|
||||
var/path
|
||||
switch(type)
|
||||
if("camera")
|
||||
@@ -791,14 +791,14 @@ ADMIN_VERB_AND_CONTEXT_MENU(modify_robot, R_ADMIN|R_FUN|R_VAREDIT|R_EVENT, "Modi
|
||||
components += list(list("name" = C.name, "ref" = "\ref[C]", "brute_damage" = C.brute_damage, "electronics_damage" = C.electronics_damage, "max_damage" = C.max_damage, "idle_usage" = C.idle_usage, "active_usage" = C.active_usage, "installed" = C.installed, "exists" = (C.wrapped ? TRUE : FALSE)))
|
||||
return components
|
||||
|
||||
/datum/eventkit/modify_robot/proc/package_laws(var/list/data, var/field, var/list/datum/ai_law/laws)
|
||||
/datum/eventkit/modify_robot/proc/package_laws(list/data, field, list/datum/ai_law/laws)
|
||||
var/list/packaged_laws = list()
|
||||
for(var/datum/ai_law/AL in laws)
|
||||
packaged_laws[++packaged_laws.len] = list("law" = AL.law, "index" = AL.get_index(), "state" = target.laws.get_state_law(AL), "ref" = "\ref[AL]")
|
||||
data[field] = packaged_laws
|
||||
data["has_[field]"] = packaged_laws.len
|
||||
|
||||
/datum/eventkit/modify_robot/proc/package_multiple_laws(var/list/datum/ai_laws/laws)
|
||||
/datum/eventkit/modify_robot/proc/package_multiple_laws(list/datum/ai_laws/laws)
|
||||
var/list/law_sets = list()
|
||||
for(var/datum/ai_laws/ALs in laws)
|
||||
var/list/packaged_laws = list()
|
||||
@@ -809,8 +809,8 @@ ADMIN_VERB_AND_CONTEXT_MENU(modify_robot, R_ADMIN|R_FUN|R_VAREDIT|R_EVENT, "Modi
|
||||
law_sets[++law_sets.len] = list("name" = ALs.name, "header" = ALs.law_header, "ref" = "\ref[ALs]","laws" = packaged_laws)
|
||||
return law_sets
|
||||
|
||||
/datum/eventkit/modify_robot/proc/is_malf(var/mob/user)
|
||||
/datum/eventkit/modify_robot/proc/is_malf(mob/user)
|
||||
return (is_admin(user) && !target.is_slaved()) || is_special_role(user)
|
||||
|
||||
/datum/eventkit/modify_robot/proc/is_special_role(var/mob/user)
|
||||
/datum/eventkit/modify_robot/proc/is_special_role(mob/user)
|
||||
return user.mind?.special_role ? TRUE : FALSE
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
GLOBAL_DATUM(banlistjob, /savefile)
|
||||
|
||||
|
||||
/proc/_jobban_isbanned(var/client/clientvar, var/rank)
|
||||
/proc/_jobban_isbanned(client/clientvar, rank)
|
||||
if(!clientvar) return 1
|
||||
ClearTempbansjob()
|
||||
var/id = clientvar.computer_id
|
||||
|
||||
@@ -39,7 +39,7 @@ ADMIN_VERB(modify_server_news, R_SERVER|R_EVENT, "Modify Public News", "Modify t
|
||||
if(F)
|
||||
return F
|
||||
// This is used when submitting the news input, so the safe markup can get past sanitize.
|
||||
/proc/paper_markup2html(var/text)
|
||||
/proc/paper_markup2html(text)
|
||||
text = replacetext(text, "\n", "<br>")
|
||||
text = replacetext(text, "\[center\]", "<center>")
|
||||
text = replacetext(text, "\[/center\]", "</center>")
|
||||
@@ -77,7 +77,7 @@ ADMIN_VERB(modify_server_news, R_SERVER|R_EVENT, "Modify Public News", "Modify t
|
||||
return text
|
||||
|
||||
// This is used when reading text that went through paper_markup2html(), to reverse it so that edits don't need to replace everything once more to avoid sanitization.
|
||||
/proc/html2paper_markup(var/text)
|
||||
/proc/html2paper_markup(text)
|
||||
text = replacetext(text, "<br>", "\[br\]")
|
||||
text = replacetext(text, "<center>", "\[center\]")
|
||||
text = replacetext(text, "</center>", "\[/center\]")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//Hijacking this file for BS12 playernotes functions. I like this ^ one systemm alright, but converting sounds too bothersome~ Chinsky.
|
||||
/proc/notes_add(var/key, var/note, var/mob/user)
|
||||
/proc/notes_add(key, note, mob/user)
|
||||
if (!key || !note)
|
||||
return
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
del(note_list) // savefile, so NOT qdel
|
||||
|
||||
|
||||
/proc/notes_del(var/key, var/index)
|
||||
/proc/notes_del(key, index)
|
||||
var/savefile/info = new("data/player_saves/[copytext(key, 1, 2)]/[key]/info.sav")
|
||||
var/list/infos
|
||||
info >> infos
|
||||
@@ -67,7 +67,7 @@
|
||||
admin_action_message(usr.key, key, "deleted note on", "\[Note gone\]", 0) //VOREStation Add
|
||||
qdel(info)
|
||||
|
||||
/proc/show_player_info_irc(var/key as text)
|
||||
/proc/show_player_info_irc(key as text)
|
||||
var/dat = " Info on [key]\n"
|
||||
var/savefile/info = new("data/player_saves/[copytext(key, 1, 2)]/[key]/info.sav")
|
||||
var/list/infos
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/mob/proc/quest_from_above(var/specific_quest)
|
||||
/mob/proc/quest_from_above(specific_quest)
|
||||
var/list/quests = list("Search",
|
||||
"Collect",
|
||||
"Drink",
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
|
||||
/// Returns the base save directory for a given ckey.
|
||||
/proc/get_player_save_dir(var/ckey)
|
||||
/proc/get_player_save_dir(ckey)
|
||||
return "data/player_saves/[copytext(ckey, 1, 2)]/[ckey]"
|
||||
|
||||
ADMIN_VERB(admin_convert_savefile, R_ADMIN, "Convert Player Savefile", "Convert a player's preferences.sav to preferences.json or vice versa. Player must be logged off.", ADMIN_CATEGORY_SERVER_ADMIN)
|
||||
|
||||
@@ -1809,15 +1809,15 @@
|
||||
/atom/proc/extra_admin_link()
|
||||
return
|
||||
|
||||
/mob/extra_admin_link(var/source)
|
||||
/mob/extra_admin_link(source)
|
||||
if(client && eyeobj)
|
||||
return "|<A HREF='?[source];[HrefToken(TRUE)];adminplayerobservejump=\ref[eyeobj]'>EYE</A>"
|
||||
|
||||
/mob/observer/dead/extra_admin_link(var/source)
|
||||
/mob/observer/dead/extra_admin_link(source)
|
||||
if(mind && mind.current)
|
||||
return "|<A HREF='?[source];[HrefToken(TRUE)];adminplayerobservejump=\ref[mind.current]'>BDY</A>"
|
||||
|
||||
/proc/admin_jump_link(var/atom/target, var/source)
|
||||
/proc/admin_jump_link(atom/target, source)
|
||||
if(!target) return
|
||||
// The way admin jump links handle their src is weirdly inconsistent...
|
||||
if(istype(source, /datum/admins))
|
||||
|
||||
@@ -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