mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 04:22:39 +01:00
Merge branch 'master' into development
# Conflicts: # code/modules/admin/admin_verbs.dm
This commit is contained in:
@@ -85,6 +85,8 @@ world/IsBanned(key,address,computer_id)
|
||||
expires = " The ban is for [duration] minutes and expires on [expiration] (server time)."
|
||||
|
||||
var/desc = "\nReason: You, or another user of this computer or connection ([pckey]) is banned from playing here. The ban reason is:\n[reason]\nThis ban was applied by [ackey] on [bantime], [expires]"
|
||||
if (config.forum_passphrase)
|
||||
desc += "\nTo register on the forums, please use the following passphrase: [config.forum_passphrase]"
|
||||
|
||||
return list("reason"="[bantype]", "desc"="[desc]", "id" = ban_id)
|
||||
|
||||
|
||||
@@ -99,7 +99,8 @@ var/list/admin_verbs_admin = list(
|
||||
/client/proc/cmd_dev_bst,
|
||||
/client/proc/clear_toxins,
|
||||
/client/proc/wipe_ai, // allow admins to force-wipe AIs
|
||||
/client/proc/flush_lighting_queues
|
||||
/client/proc/flush_lighting_queues,
|
||||
/client/proc/fix_player_list
|
||||
)
|
||||
var/list/admin_verbs_ban = list(
|
||||
/client/proc/unban_panel,
|
||||
@@ -205,7 +206,8 @@ var/list/admin_verbs_debug = list(
|
||||
/client/proc/toggle_recursive_explosions,
|
||||
/client/proc/restart_sql,
|
||||
/client/proc/flush_lighting_queues,
|
||||
/client/proc/debug_pooling
|
||||
/client/proc/debug_pooling,
|
||||
/client/proc/fix_player_list
|
||||
)
|
||||
|
||||
var/list/admin_verbs_paranoid_debug = list(
|
||||
@@ -1073,3 +1075,29 @@ var/list/admin_verbs_cciaa = list(
|
||||
lighting_update_lights = list()
|
||||
lighting_update_corners = list()
|
||||
lighting_update_overlays = list()
|
||||
|
||||
/client/proc/fix_player_list()
|
||||
set category = "Special Verbs"
|
||||
set name = "Regenerate Player List"
|
||||
set desc = "Use this to regenerate the player list if it becomes broken somehow."
|
||||
|
||||
if (!check_rights(R_DEBUG|R_ADMIN))
|
||||
return
|
||||
|
||||
if (alert("Regenerate player lists?", "Player List Repair", "No", "No", "Yes") != "Yes")
|
||||
return
|
||||
|
||||
log_and_message_admins("is rebuilding the master player mob list.")
|
||||
for (var/P in player_list)
|
||||
if (isnull(P) || !ismob(P))
|
||||
var/msg = "P_LIST DEBUG: Found null entry in player_list!"
|
||||
log_debug(msg)
|
||||
message_admins(span("danger", msg))
|
||||
player_list -= P
|
||||
else
|
||||
var/mob/M = P
|
||||
if (!M.client)
|
||||
var/msg = "P_LIST DEBUG: Found a mob without a client in player_list! [M.name]"
|
||||
log_debug(msg)
|
||||
message_admins(span("danger", msg))
|
||||
player_list -= M
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
var/obj/item/organ/external/E = get_organ(organ_name)
|
||||
if(!E || E.is_stump())
|
||||
tally += 4
|
||||
if(E.status & ORGAN_SPLINTED)
|
||||
else if(E.status & ORGAN_SPLINTED)
|
||||
tally += 0.5
|
||||
else if(E.status & ORGAN_BROKEN)
|
||||
tally += 1.5
|
||||
|
||||
@@ -13,17 +13,22 @@
|
||||
for(var/obj/effect/decal/cleanable/O in view(1,src))
|
||||
if(istype(O,/obj/effect/decal/cleanable/blood))
|
||||
var/obj/effect/decal/cleanable/blood/B = O
|
||||
if(B.virus2 && B.virus2.len)
|
||||
for (var/ID in B.virus2)
|
||||
var/datum/disease2/disease/V = B.virus2[ID]
|
||||
infect_virus2(src,V)
|
||||
if (B.virus2 && islist(B.virus2))
|
||||
if(B.virus2.len)
|
||||
for (var/ID in B.virus2)
|
||||
var/datum/disease2/disease/V = B.virus2[ID]
|
||||
infect_virus2(src,V)
|
||||
else
|
||||
B.virus2 = list()
|
||||
|
||||
else if(istype(O,/obj/effect/decal/cleanable/mucus))
|
||||
var/obj/effect/decal/cleanable/mucus/M = O
|
||||
if(M.virus2 && M.virus2.len)
|
||||
if(M.virus2 && islist(M.virus2) && M.virus2.len)
|
||||
for (var/ID in M.virus2)
|
||||
var/datum/disease2/disease/V = M.virus2[ID]
|
||||
infect_virus2(src,V)
|
||||
else
|
||||
M.virus2 = list()
|
||||
|
||||
if(virus2 && virus2.len)
|
||||
for (var/ID in virus2)
|
||||
|
||||
Reference in New Issue
Block a user