mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-03 14:04:41 +00:00
[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:
committed by
GitHub
parent
272afa33c8
commit
5a62077f2c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user