Add valve sound to portable canisters (#96414)

## About The Pull Request
It plays a valve-twisting sound when a portable canister is
opened/closed.

## Why It's Good For The Game
Sound improvements.

## Changelog
🆑
sound: Add valve sound to portable canisters
/🆑
This commit is contained in:
Tim
2026-06-11 03:27:33 +02:00
committed by GitHub
parent 0e4d8223c1
commit 22f57b96bb
@@ -688,6 +688,7 @@
/// Opens/closes the canister valve
/obj/machinery/portable_atmospherics/canister/proc/toggle_valve(mob/user, wire_pulsed = FALSE)
valve_open = !valve_open
playsound(src, 'sound/effects/valve_opening.ogg', 50, TRUE)
if(!valve_open)
var/logmsg = "valve was <b>closed</b> by [key_name(user)] [wire_pulsed ? "via wire pulse" : ""], stopping the transfer into \the [holding || "air"].<br>"
investigate_log(logmsg, INVESTIGATE_ATMOS)