Merge pull request #7920 from deathride58/noisyflashlights

noisy flashlights - makes flashlights play a sound when toggled
This commit is contained in:
nik707
2019-01-14 22:21:21 -06:00
committed by GitHub

View File

@@ -35,6 +35,7 @@
/obj/item/flashlight/attack_self(mob/user)
on = !on
update_brightness(user)
playsound(user, on ? 'sound/weapons/magin.ogg' : 'sound/weapons/magout.ogg', 40, 1)
for(var/X in actions)
var/datum/action/A = X
A.UpdateButtonIcon()