mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 04:22:39 +01:00
New opendream pragmas (#20260)
Enabled new opendream pragmas Fixed some runtime access check operators (`:`) around the codebase (not all, some are unfixable as they're used in macros) No player facing changes (hopefully)
This commit is contained in:
@@ -71,9 +71,10 @@
|
||||
var/a_ip
|
||||
|
||||
if(holder && holder.owner && istype(holder.owner, /client))
|
||||
a_ckey = holder.owner:ckey
|
||||
a_computerid = holder.owner:computer_id
|
||||
a_ip = holder.owner:address
|
||||
var/client/owner_client = holder.owner
|
||||
a_ckey = owner_client.ckey
|
||||
a_computerid = owner_client.computer_id
|
||||
a_ip = owner_client.address
|
||||
else
|
||||
a_ckey = "Adminbot"
|
||||
a_computerid = ""
|
||||
|
||||
@@ -202,11 +202,11 @@
|
||||
var/list/keys = list()
|
||||
for(var/mob/M in GLOB.player_list)
|
||||
keys += M.client
|
||||
var/selection = input("Please, select a player!", "Admin Jumping", null, null) as null|anything in sortKey(keys)
|
||||
var/client/selection = input("Please, select a player!", "Admin Jumping", null, null) as null|anything in sortKey(keys)
|
||||
if(!selection)
|
||||
to_chat(src, "No keys found.")
|
||||
return
|
||||
var/mob/M = selection:mob
|
||||
var/mob/M = selection.mob
|
||||
log_admin("[key_name(usr)] jumped to [key_name(M)]")
|
||||
message_admins("[key_name_admin(usr)] jumped to [key_name_admin(M)]", 1)
|
||||
usr.on_mob_jump()
|
||||
@@ -242,10 +242,10 @@
|
||||
var/list/keys = list()
|
||||
for(var/mob/M in GLOB.player_list)
|
||||
keys += M.client
|
||||
var/selection = input("Please, select a player!", "Admin Jumping", null, null) as null|anything in sortKey(keys)
|
||||
var/client/selection = input("Please, select a player!", "Admin Jumping", null, null) as null|anything in sortKey(keys)
|
||||
if(!selection)
|
||||
return
|
||||
var/mob/M = selection:mob
|
||||
var/mob/M = selection.mob
|
||||
|
||||
if(!M)
|
||||
return
|
||||
|
||||
@@ -72,9 +72,9 @@
|
||||
alert("Wait until the game starts")
|
||||
return
|
||||
if(istype(M, /mob/living/carbon/human))
|
||||
log_admin("[key_name(src)] has robotized [M.key].")
|
||||
spawn(10)
|
||||
M:Robotize()
|
||||
var/mob/living/carbon/human/H = M
|
||||
log_admin("[key_name(src)] has robotized [H.key].")
|
||||
H.Robotize()
|
||||
|
||||
else
|
||||
alert("Invalid mob")
|
||||
@@ -108,10 +108,10 @@
|
||||
alert("Wait until the game starts")
|
||||
return
|
||||
if(ishuman(M))
|
||||
log_and_message_admins("has slimeized [key_name(M)].", user = usr)
|
||||
spawn(10)
|
||||
M:slimeize()
|
||||
feedback_add_details("admin_verb","MKMET") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
var/mob/living/carbon/human/H = M
|
||||
log_and_message_admins("has slimeized [key_name(H)].", user = usr)
|
||||
H.slimeize()
|
||||
feedback_add_details("admin_verb","MKMET") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
else
|
||||
alert("Invalid mob")
|
||||
|
||||
|
||||
@@ -89,9 +89,9 @@
|
||||
output += " [filter]: ERROR<br>"
|
||||
continue
|
||||
output += " [filter]: [f.len]<br>"
|
||||
for (var/device in f)
|
||||
for (var/obj/device as anything in f)
|
||||
if (isobj(device))
|
||||
output += " [device] ([device:x],[device:y],[device:z] in area [get_area(device:loc)])<br>"
|
||||
output += " [device] ([device.x],[device.y],[device.z] in area [get_area(device.loc)])<br>"
|
||||
else
|
||||
output += " [device]<br>"
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
if (!istype(O, /atom))
|
||||
original_name = "[REF(O)] ([O])"
|
||||
else
|
||||
original_name = O:name
|
||||
original_name = O.name
|
||||
|
||||
switch(class)
|
||||
if("restore to default")
|
||||
|
||||
@@ -584,7 +584,7 @@ var/list/VVdynamic_lock = list(
|
||||
if (!istype(O, /atom))
|
||||
original_name = "[REF(O)] ([O])"
|
||||
else
|
||||
original_name = O:name
|
||||
original_name = O.name
|
||||
|
||||
if(holder.marked_datum && class == "marked datum ([holder.marked_datum.type])")
|
||||
class = "marked datum"
|
||||
|
||||
@@ -293,7 +293,7 @@ Ccomp's first proc.
|
||||
G.has_enabled_antagHUD = 2
|
||||
G.can_reenter_corpse = 1
|
||||
|
||||
G:show_message(SPAN_NOTICE("<B>You may now respawn. You should roleplay as if you learned nothing about the round during your time with the dead.</B>"), 1)
|
||||
G.show_message(SPAN_NOTICE("<B>You may now respawn. You should roleplay as if you learned nothing about the round during your time with the dead.</B>"), 1)
|
||||
log_admin("[key_name(usr)] allowed [key_name(G)] to bypass the [GLOB.config.respawn_delay] minute respawn limit")
|
||||
message_admins("Admin [key_name_admin(usr)] allowed [key_name_admin(G)] to bypass the [GLOB.config.respawn_delay] minute respawn limit", 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user