Item attacks send no logs if they have no force (#17029)

* Hush if no force

* Move it to the other force check instead
This commit is contained in:
Vi3trice
2021-11-05 10:01:58 +01:00
committed by GitHub
parent 3b7e9fee93
commit 640a20878a
+1 -2
View File
@@ -72,6 +72,7 @@
playsound(loc, 'sound/weapons/tap.ogg', get_clamped_volume(), 1, -1)
else
SEND_SIGNAL(M, COMSIG_ITEM_ATTACK)
add_attack_logs(user, M, "Attacked with [name] ([uppertext(user.a_intent)]) ([uppertext(damtype)])", (M.ckey && force > 0 && damtype != STAMINA) ? null : ATKLOG_ALMOSTALL)
if(hitsound)
playsound(loc, hitsound, get_clamped_volume(), TRUE, extrarange = stealthy_audio ? SILENCED_SOUND_EXTRARANGE : -1, falloff_distance = 0)
@@ -81,8 +82,6 @@
user.do_attack_animation(M)
. = M.attacked_by(src, user, def_zone)
add_attack_logs(user, M, "Attacked with [name] ([uppertext(user.a_intent)]) ([uppertext(damtype)])", (M.ckey && force > 0 && damtype != STAMINA) ? null : ATKLOG_ALMOSTALL)
add_fingerprint(user)