Fixes PDA and cargo tug lights (#22859)

PDA flashlights work again and their strength is now determined by the
flashlight inside. There is still only one type of flashlight.
Cargo tug lights work again and are now directional.
This commit is contained in:
Casper3667
2026-07-17 20:50:04 +00:00
committed by GitHub
parent d34fc57999
commit 4a50853514
6 changed files with 29 additions and 10 deletions
@@ -61,7 +61,7 @@
data["battery"] = computer.battery_module ? list("rating" = computer.battery_module.battery_rating, "percent" = computer.battery_module.battery.percent()) : null
if(computer.flashlight)
var/brightness = clamp(0, round(computer.flashlight.power, 0.1) * 10, 10)
var/brightness = clamp(0, round(computer.flashlight.light_power, 0.1) * 10, 10)
data["brightness"] = brightness
return data