Allow players to flick utility lights on and off #1003
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
SUMMARY: Content "Add off state for utility lights, allow turning them on and off"
Purpose of change
A simple change making use of the transform feature introduced in #716, allowing players to turn utility lights off. Useful since it makes it less annoying trying to get some shuteye in places like the refugee center.
Describe the solution
Added a terrain entry for an off version of the utility light. Does not use copy-from for reasons mentioned below.
Describe alternatives you've considered
Could give the "concrete floor with overhead light" this feature too. It's not as useful since those tend to only show up in labs where players likely won't make a permanent base in anyway unless they're doing the lab challenge, plus presumably the switch would be either on the wall (not doable) or a hassle to reach. Could still do it if anyone requests however.
Testing
looks_like
, and that it actually lets you render a lit room dark.Additional context
Side note, turns out that terrain doesn't properly inherit
symbol
andcolor
when using copy-from. It also seems that flags don't inherit properly either (TRANSPARENT
at minimum visibly did not inherit right), so I quickly discarded my initial idea of using copy-from for it.