[0.17.53] Lamps playing working_sound when unpowered
Posted: Wed Jul 03, 2019 6:43 pm
TL;DR
Lamps given a working_sound always play it all the time, even if unpowered (with flashing yellow "unplugged" triangle), or if deactivated via circuit network, or if it's daytime and the lamp is off.I know the wiki says that this property can be applied to entities which "don't actually do work". But my expectation was that turning power into light was counted as work.
Steps to reproduce
1. Add a working sound to an existing lamp, e.g.Code: Select all
data.raw.lamp["small-lamp"].working_sound = {
filename = "__base__/sound/radar.ogg",
volume = 1.0,
}
2b. Power the lamp, connect it to a circuit network that doesn't have any signals, stand near it.
2c. Power the lamp, wait for full daytime, stand near it.