-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add TRANSLUCENT terrain flag which blocks vision but not light #76290
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TRANSLUCENT can be used in combination with TRANSPARENT to create tiles which admit light but block vision, such as fosted glass, stained glass, or to simulate tall walls with small windows placed high up. This is a binary implementation, which does not leverage the transluceny and lighting falloff system used by (e.g.) fields. This approach was taken in order to simplify the developer experience: you can simply add a flag to the terrain without having to know precisely what transluceny value would be requried to block all vision through the tile. Future work could leverage the transluceny and lighting falloff system to enable (e.g.) semi-translucent windows that let you see just a few tiles out.
github-actions
bot
added
[JSON]
Changes (can be) made in JSON
Code: Tests
Measurement, self-control, statistics, balancing.
[C++]
Changes (can be) made in C++. Previously named `Code`
Fields / Furniture / Terrain / Traps
Objects that are part of the map or its features.
json-styled
JSON lint passed, label assigned by github actions
astyled
astyled PR, label is assigned by github actions
labels
Sep 8, 2024
github-actions
bot
added
<Documentation>
Design documents, internal info, guides and help.
[Markdown]
Markdown issues and PRs
labels
Sep 8, 2024
Excellent idea! I've wanted this functionality for a while |
Vgoloshivskiy
pushed a commit
to Vgoloshivskiy/Cataclysm-DDA
that referenced
this pull request
Sep 8, 2024
GuardianDll
commented
Sep 9, 2024
CLIDragon
suggested changes
Sep 9, 2024
github-actions
bot
added
the
BasicBuildPassed
This PR builds correctly, label assigned by github actions
label
Sep 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
astyled
astyled PR, label is assigned by github actions
BasicBuildPassed
This PR builds correctly, label assigned by github actions
[C++]
Changes (can be) made in C++. Previously named `Code`
Code: Tests
Measurement, self-control, statistics, balancing.
<Documentation>
Design documents, internal info, guides and help.
Fields / Furniture / Terrain / Traps
Objects that are part of the map or its features.
[JSON]
Changes (can be) made in JSON
json-styled
JSON lint passed, label assigned by github actions
[Markdown]
Markdown issues and PRs
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
None
Purpose of change
Reopen #61872
Describe the solution
Fix conflicts mostly
Testing
with flashlight inside at night
Additional context
Previous PR was drafted because it was pointed terrain should not require TRANSPARENT flag, i fixed it