Fixes Boogaloo (#1345)

Re-adds IPC APC feeding
Removes more of the horror that is type paths in text strings when they don't have to be there :ree:
Fix a bunch of lore blurbs
SQL saving is fixededed
Mark-up REGEX now requires whitespace or line ending/starts between tokens. It doesn't grab tokens surrounded by non-whitespace characters.
Updated the server greeting to only updated saved hashes if a user actively clicks on a tab.
C4 now forces old system for itself, due to raisins.
Admin verb to toggle between global default explosion type. One round only. Requires R_DEBUG or R_SERVER, is hideable.
This commit is contained in:
skull132
2016-12-31 04:32:33 +02:00
committed by GitHub
parent e4c62c9e1c
commit 14a0c7bf92
17 changed files with 481 additions and 315 deletions
+25 -3
View File
@@ -161,7 +161,8 @@ var/list/admin_verbs_server = list(
/client/proc/toggle_random_events,
/client/proc/check_customitem_activity,
/client/proc/nanomapgen_DumpImage,
/client/proc/admin_edit_motd
/client/proc/admin_edit_motd,
/client/proc/toggle_recursive_explosions
)
var/list/admin_verbs_debug = list(
/client/proc/getruntimelog, // allows us to access runtime logs to somebody,
@@ -196,7 +197,8 @@ var/list/admin_verbs_debug = list(
/client/proc/Jump,
/client/proc/jumptomob,
/client/proc/jumptocoord,
/client/proc/dsay
/client/proc/dsay,
/client/proc/toggle_recursive_explosions
)
var/list/admin_verbs_paranoid_debug = list(
@@ -286,7 +288,8 @@ var/list/admin_verbs_hideable = list(
/client/proc/enable_debug_verbs,
/client/proc/roll_dices,
/proc/possess,
/proc/release
/proc/release,
/client/proc/toggle_recursive_explosions
)
var/list/admin_verbs_mod = list(
/client/proc/cmd_admin_pm_context, // right-click adminPM interface,
@@ -995,3 +998,22 @@ var/list/admin_verbs_cciaa = list(
feedback_add_details("admin_verb","GS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
log_admin("[key_name(usr)] gave [key_name(T)] the spell [S].")
message_admins("\blue [key_name_admin(usr)] gave [key_name(T)] the spell [S].", 1)
/client/proc/toggle_recursive_explosions()
set category = "Server"
set name = "Explosion Type"
set desc = "Toggle between recursive and non-recursive explosions."
if (!check_rights(R_SERVER|R_DEBUG))
return
var/ans = alert(src, "This will force explosions to run in the [config.use_recursive_explosions ? "old manner (non-recursive)" : "new, realistic manner (recursive)"]. Do you want to proceed?", "Switch explosion type", "Yes", "Cancel")
if (!ans || ans == "Cancel")
src << "<span class='notice'>Cancelled.</span>"
return
config.use_recursive_explosions = !config.use_recursive_explosions
log_and_message_admins("has toggled explosions to be [config.use_recursive_explosions ? "recursive" : "non-recursive"].")
feedback_add_details("admin_verb", "TRE")