Adds sounds to the Electric Loom (#35561)

* adds sounds to the electric loom

* adjust volume and range
This commit is contained in:
DeityLink
2023-12-11 21:24:51 +01:00
committed by GitHub
parent 890cc8ccae
commit 14e0e5124c
3 changed files with 3 additions and 0 deletions

View File

@@ -268,6 +268,7 @@
if ((remaining_cloth_to_spin > 0) || (current_production > 0))
use_power = MACHINE_POWER_USE_ACTIVE
playsound(src, 'sound/machines/electric_loom.ogg', 15, 0, -3)
spawn()
for (var/i = 1 to (manipulator_rating))
if (!process_cloth())
@@ -313,6 +314,8 @@
else if ((stat & (NOPOWER|FORCEDISABLE)) || !powered())
icon_state = "electric_loom_ready"
else
if (icon_state != "electric_loom_spin")
playsound(src, 'sound/machines/electric_loom_start.ogg', 10, 0, -3)
icon_state = "electric_loom_spin"
luminosity = 2
var/image/led = image(icon,src,"electric_loom-lightready")

Binary file not shown.

Binary file not shown.