Skip to content

Commit

Permalink
narrow miss
Browse files Browse the repository at this point in the history
  • Loading branch information
realforest2001 committed Jul 27, 2023
1 parent 4f772f0 commit 299201a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/modules/projectiles/projectile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -501,13 +501,14 @@
if(ammo.sound_miss) playsound_client(L.client, ammo.sound_miss, get_turf(L), 75, TRUE)
L.visible_message(SPAN_AVOIDHARM("[src] misses [L]!"),
SPAN_AVOIDHARM("[src] narrowly misses you!"), null, 4, CHAT_TYPE_TAKING_HIT)
log_attack("[src] narrowly missed [key_name(L)]")
var/log_message = "[src] narrowly missed [key_name(L)]"

var/mob/living/carbon/shotby = firer
if(istype(shotby))
L.attack_log += "[time_stamp()]\] [src], fired by [key_name(firer)], narrowly missed [key_name(L)]"
shotby.attack_log += "[time_stamp()]\] [src], fired by [key_name(shotby)], narrowly missed [key_name(L)]"

log_message = "[src], fired by [key_name(firer)], narrowly missed [key_name(L)]"
log_attack(log_message)

#if DEBUG_HIT_CHANCE
to_world(SPAN_DEBUG("([L]) Missed."))
Expand Down

0 comments on commit 299201a

Please sign in to comment.