Punching bags have sound again (#12422)

This commit is contained in:
Shadow-Quill
2021-09-01 09:50:32 -03:00
committed by GitHub
parent 3bf79add92
commit 52b0560f6d
2 changed files with 42 additions and 2 deletions
+1 -2
View File
@@ -1348,12 +1348,11 @@ var/list/total_extraction_beacons = list()
icon_state = "punchingbag"
anchored = TRUE
layer = 5.1
var/list/hit_sounds = list("swing_hit", "punch")
/obj/structure/punching_bag/attack_hand(mob/user as mob)
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
flick("[icon_state]2", src)
playsound(get_turf(src), pick(src.hit_sounds), 25, 1, -1)
playsound(get_turf(src), /decl/sound_category/swing_hit_sound, 25, 1, -1)
/obj/structure/weightlifter
name = "weight machine"