Hit things with things with zero force (#10722)

This commit is contained in:
Wowzewow (Wezzy)
2020-12-18 04:37:00 +08:00
committed by GitHub
parent d03a98af53
commit b684c7a224
11 changed files with 73 additions and 16 deletions

View File

@@ -35,7 +35,7 @@
user.do_attack_animation(src)
if(W.force)
user.visible_message(SPAN_DANGER("\The [user] [pick(W.attack_verb)] \the [src] with \the [W]!"), SPAN_NOTICE("You [pick(W.attack_verb)] \the [src] with \the [W]!"))
playsound(loc, W.hitsound, 60, TRUE)
playsound(loc, W.hitsound, W.get_clamped_volume(), TRUE)
playsound(loc, /decl/sound_category/wood_break_sound, 50, TRUE)
health -= W.force
if(health <= 0)