Merge pull request #8912 from tigercat2000/world_logging

Post-logging overhaul tweaks
This commit is contained in:
Fox McCloud
2018-04-25 19:48:33 -04:00
committed by GitHub
6 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -125,7 +125,7 @@
WRITE_LOG(GLOB.world_game_log, "WORLD: [html_decode(text)][log_end]")
/proc/log_runtime_txt(text) // different from /tg/'s log_runtime because our error handler has a log_runtime proc already that does other stuff
GLOB.world_runtime_log << text
WRITE_LOG(GLOB.world_runtime_log, text)
/proc/log_config(text)
WRITE_LOG(GLOB.config_error_log, text)
+1 -1
View File
@@ -66,7 +66,7 @@
user.do_attack_animation(M)
M.attacked_by(src, user, def_zone)
add_attack_logs(user, M, "attacked with [name] (INTENT: [uppertext(user.a_intent)]) (DAMTYPE: [uppertext(damtype)])", admin_notify = (force > 0))
add_attack_logs(user, M, "Attacked with [name] (INTENT: [uppertext(user.a_intent)]) (DAMTYPE: [uppertext(damtype)])", admin_notify = (force > 0 && damtype != STAMINA))
add_fingerprint(user)
+1 -2
View File
@@ -107,8 +107,7 @@
tries_left = 5 //reset our tries since we found a new chump
//make sure we have chumps before we try misinforming them. if we don't make a note of it.
if(!chumps.len)
message_admins("<span class='notice'>Game mode failed to find ANY chumps. Possible causes: no one is opposed/skeptical, or FalseIncarnate can't code.</span>")
log_admin("Game mode failed to find ANY chumps. Possible causes: no one is opposed/skeptical, or FalseIncarnate can't code.")
log_debug("Game mode failed to find ANY chumps. This is likely due to the server being in extreme low-pop with no one set to opposed or skeptical.")
return 0
//we've got chumps! misinform them!
for(var/mob/living/carbon/human/chump in chumps)
+1 -1
View File
@@ -68,7 +68,7 @@ var/world_topic_spam_protect_ip = "0.0.0.0"
var/world_topic_spam_protect_time = world.timeofday
/world/Topic(T, addr, master, key)
log_debug("WORLD/TOPIC: \"[T]\", from:[addr], master:[master], key:[key]")
log_misc("WORLD/TOPIC: \"[T]\", from:[addr], master:[master], key:[key]")
var/list/input = params2list(T)
var/key_valid = (config.comms_password && input["key"] == config.comms_password) //no password means no comms, not any password
+1 -1
View File
@@ -55,7 +55,7 @@
D.apply_damage(damage, BRUTE, affecting, armor_block)
add_attack_logs(A, D, "Melee attacked with [src]")
add_attack_logs(A, D, "Melee attacked with martial-art [src]", admin_notify = (damage > 0) ? TRUE : FALSE)
if((D.stat != DEAD) && damage >= A.species.punchstunthreshold)
D.visible_message("<span class='danger'>[A] has weakened [D]!!</span>", \
+2 -1
View File
@@ -263,6 +263,7 @@
state = GRAB_AGGRESSIVE
icon_state = "grabbed1"
hud.icon_state = "reinforce1"
add_attack_logs(assailant, affecting, "Aggressively grabbed", admin_notify = FALSE)
else if(state < GRAB_NECK)
if(isslime(affecting))
to_chat(assailant, "<span class='notice'>You squeeze [affecting], but nothing interesting happens.</span>")
@@ -272,7 +273,7 @@
state = GRAB_NECK
icon_state = "grabbed+1"
assailant.setDir(get_dir(assailant, affecting))
add_attack_logs(assailant, affecting, "Neck grabbed")
add_attack_logs(assailant, affecting, "Neck grabbed", admin_notify = FALSE)
if(!iscarbon(assailant))
affecting.LAssailant = null
else