Emergency Lights now changes color depending on alert level and whether or not the light is powered. (#26932)

* Emergency Lights now change color depending on alert level and whether or not they are powered.

* Made a condition for null alert level, added summary doc.

* Refactored uid and emergencylightcomponent into Entity<EmergencyLightComponent>
This commit is contained in:
superjj18
2024-04-18 06:50:08 -04:00
committed by GitHub
parent 7b94e244b3
commit ebf87be9f2
4 changed files with 80 additions and 35 deletions

View File

@@ -5,28 +5,35 @@
green:
announcement: alert-level-green-announcement
color: Green
emergencyLightColor: LawnGreen
shuttleTime: 600
blue:
announcement: alert-level-blue-announcement
sound: /Audio/Misc/bluealert.ogg
color: DodgerBlue
forceEnableEmergencyLights: true
emergencyLightColor: DodgerBlue
shuttleTime: 600
violet:
announcement: alert-level-violet-announcement
sound: /Audio/Misc/notice1.ogg
color: Violet
emergencyLightColor: Violet
forceEnableEmergencyLights: true
shuttleTime: 600
yellow:
announcement: alert-level-yellow-announcement
sound: /Audio/Misc/notice1.ogg
color: Yellow
emergencyLightColor: Goldenrod
forceEnableEmergencyLights: true
shuttleTime: 600
red:
announcement: alert-level-red-announcement
sound: /Audio/Misc/redalert.ogg
color: Red
emergencyLightColor: Red
forceEnableEmergencyLights: true
shuttleTime: 600 #No reduction in time as we don't have swiping for red alert like in /tg/. Shuttle times are intended to create friction, so having a way to brainlessly bypass that would be dumb.
gamma:
announcement: alert-level-gamma-announcement