[MIRROR] JSON Logging Refactor (#11623)

Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-09-14 11:05:26 -07:00
committed by GitHub
parent 272afa33c8
commit 5a62077f2c
425 changed files with 4081 additions and 2568 deletions

View File

@@ -531,13 +531,7 @@
if(ticker < burst)
addtimer(CALLBACK(src, PROC_REF(handle_gunfire),target, ++ticker, TRUE), burst_delay, TIMER_DELETE_ME)
var/target_for_log
if(ismob(target))
target_for_log = target
else
target_for_log = "[target.name]"
add_attack_logs("Unmanned",target_for_log,"Fired [src.name]")
add_attack_logs("Unmanned",target,"Fired [src.name]")
//obtains the next projectile to fire
@@ -581,13 +575,7 @@
"You hear a [fire_sound_text]!"
)
var/target_for_log
if(ismob(target))
target_for_log = target
else
target_for_log = "[target.name]"
add_attack_logs(user, target_for_log, "Fired gun '[src.name]' ([reflex ? "REFLEX" : "MANUAL"])")
add_attack_logs(user, target, "Fired gun '[src.name]' ([reflex ? "REFLEX" : "MANUAL"])")
//called after successfully firing
/obj/item/gun/proc/handle_post_fire(mob/user, atom/target, var/pointblank=0, var/reflex=0)