Hit things with things with zero force (#10722)

This commit is contained in:
Wowzewow (Wezzy)
2020-12-17 21:37:00 +01:00
committed by GitHub
parent d03a98af53
commit b684c7a224
11 changed files with 73 additions and 16 deletions
+2 -2
View File
@@ -175,7 +175,7 @@
user.do_attack_animation(src)
animate_shake()
user.visible_message("<span class='danger'>\The [user] forcefully strikes \the [src] with \the [I]!</span>")
playsound(src.loc, material.hitsound, 100, 1)
playsound(src.loc, material.hitsound, W.get_clamped_volume(), 1)
src.health -= W.force * 1
CheckHealth()
@@ -242,4 +242,4 @@
/obj/structure/simple_door/cult/New(var/newloc, var/material_name)
..(newloc, MATERIAL_CULT)
color = COLOR_CULT_DOOR // looks better than the standard cult colours
color = COLOR_CULT_DOOR // looks better than the standard cult colours