mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 12:02:31 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user