mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 19:17:50 +01:00
BRUTAL Part 1 - No proc var/ in procs
This commit is contained in:
+11
-11
@@ -2,14 +2,14 @@ GLOBAL_VAR_INIT(BSACooldown, 0)
|
||||
GLOBAL_VAR_INIT(nologevent, 0)
|
||||
|
||||
////////////////////////////////
|
||||
/proc/message_admins(var/msg)
|
||||
/proc/message_admins(msg)
|
||||
msg = "<span class=\"admin\"><span class=\"prefix\">ADMIN LOG:</span> <span class=\"message\">[msg]</span></span>"
|
||||
for(var/client/C in GLOB.admins)
|
||||
if(R_ADMIN & C.holder.rights)
|
||||
if(C.prefs && !(C.prefs.toggles & PREFTOGGLE_CHAT_NO_ADMINLOGS))
|
||||
to_chat(C, msg)
|
||||
|
||||
/proc/msg_admin_attack(var/text, var/loglevel)
|
||||
/proc/msg_admin_attack(text, loglevel)
|
||||
if(!GLOB.nologevent)
|
||||
var/rendered = "<span class=\"admin\"><span class=\"prefix\">ATTACK:</span> <span class=\"message\">[text]</span></span>"
|
||||
for(var/client/C in GLOB.admins)
|
||||
@@ -54,7 +54,7 @@ GLOBAL_VAR_INIT(nologevent, 0)
|
||||
SEND_SOUND(C, 'sound/effects/adminhelp.ogg')
|
||||
window_flash(C)
|
||||
|
||||
/proc/admin_ban_mobsearch(var/mob/M, var/ckey_to_find, var/mob/admin_to_notify)
|
||||
/proc/admin_ban_mobsearch(mob/M, ckey_to_find, mob/admin_to_notify)
|
||||
if(!M || !M.ckey)
|
||||
if(ckey_to_find)
|
||||
for(var/mob/O in GLOB.mob_list)
|
||||
@@ -70,7 +70,7 @@ GLOBAL_VAR_INIT(nologevent, 0)
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////Panels
|
||||
|
||||
/datum/admins/proc/show_player_panel(var/mob/M in GLOB.mob_list)
|
||||
/datum/admins/proc/show_player_panel(mob/M in GLOB.mob_list)
|
||||
set category = null
|
||||
set name = "Show Player Panel"
|
||||
set desc="Edit player (respawn, ban, heal, etc)"
|
||||
@@ -299,7 +299,7 @@ GLOBAL_VAR_INIT(nologevent, 0)
|
||||
|
||||
show_note()
|
||||
|
||||
/datum/admins/proc/show_player_notes(var/key as text)
|
||||
/datum/admins/proc/show_player_notes(key as text)
|
||||
set category = "Admin"
|
||||
set name = "Show Player Notes"
|
||||
|
||||
@@ -662,7 +662,7 @@ GLOBAL_VAR_INIT(nologevent, 0)
|
||||
|
||||
return 0
|
||||
|
||||
/datum/admins/proc/spawn_atom(var/object as text)
|
||||
/datum/admins/proc/spawn_atom(object as text)
|
||||
set category = "Debug"
|
||||
set desc = "(atom path) Spawn an atom"
|
||||
set name = "Spawn"
|
||||
@@ -698,7 +698,7 @@ GLOBAL_VAR_INIT(nologevent, 0)
|
||||
log_admin("[key_name(usr)] spawned [chosen] at ([usr.x],[usr.y],[usr.z])")
|
||||
SSblackbox.record_feedback("tally", "admin_verb", 1, "Spawn Atom") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/datum/admins/proc/show_traitor_panel(var/mob/M in GLOB.mob_list)
|
||||
/datum/admins/proc/show_traitor_panel(mob/M in GLOB.mob_list)
|
||||
set category = "Admin"
|
||||
set desc = "Edit mobs's memory and role"
|
||||
set name = "Show Traitor Panel"
|
||||
@@ -801,7 +801,7 @@ GLOBAL_VAR_INIT(gamma_ship_location, 1) // 0 = station , 1 = space
|
||||
GLOB.gamma_ship_location = 1
|
||||
return
|
||||
|
||||
/proc/formatJumpTo(var/location,var/where="")
|
||||
/proc/formatJumpTo(location, where="")
|
||||
var/turf/loc
|
||||
if(istype(location,/turf/))
|
||||
loc = location
|
||||
@@ -811,7 +811,7 @@ GLOBAL_VAR_INIT(gamma_ship_location, 1) // 0 = station , 1 = space
|
||||
where=formatLocation(loc)
|
||||
return "<A HREF='?_src_=holder;adminplayerobservecoodjump=1;X=[loc.x];Y=[loc.y];Z=[loc.z]'>[where]</a>"
|
||||
|
||||
/proc/formatLocation(var/location)
|
||||
/proc/formatLocation(location)
|
||||
var/turf/loc
|
||||
if(istype(location,/turf/))
|
||||
loc = location
|
||||
@@ -820,7 +820,7 @@ GLOBAL_VAR_INIT(gamma_ship_location, 1) // 0 = station , 1 = space
|
||||
var/area/A = get_area(location)
|
||||
return "[A.name] - [loc.x],[loc.y],[loc.z]"
|
||||
|
||||
/proc/formatPlayerPanel(var/mob/U,var/text="PP")
|
||||
/proc/formatPlayerPanel(mob/U, text="PP")
|
||||
return "[ADMIN_PP(U,"[text]")]"
|
||||
|
||||
//Kicks all the clients currently in the lobby. The second parameter (kick_only_afk) determins if an is_afk() check is ran, or if all clients are kicked
|
||||
@@ -840,7 +840,7 @@ GLOBAL_VAR_INIT(gamma_ship_location, 1) // 0 = station , 1 = space
|
||||
|
||||
//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/dead/observer/frommob, var/tothing)
|
||||
/datum/admins/proc/cmd_ghost_drag(mob/dead/observer/frommob, tothing)
|
||||
if(!istype(frommob))
|
||||
return //extra sanity check to make sure only observers are shoved into things
|
||||
|
||||
|
||||
Reference in New Issue
Block a user