[CR] figure out "dynamic" eye encumbrance for eyewear #65131
Labels
stale
Closed for lack of activity, but still valid.
<Suggestion / Discussion>
Talk it out before implementing
Is your feature request related to a problem? Please describe.
TL/DR: what existing data (from the json files) is necessary to calculate eye encumbrance for eyewear?
this is meant as some sort of brainstorming, so please, blast out your ideas.
non-TL/DR:
i was looking for the least encumbering way to get glare protection as a vision unimpaired PC.
pair of sunglasses
have eye encumbrance 1.pair of bifocal sunglasses
have no eye encumbrance and have no downside for a PC who is neither nearsighted nor farsighted.this led to #65018: i tried to remove eye encumbrance from sunglasses which doesn't seem to reflect reality.
i found out about #57243 which introduced a weight dependent system for head encumbrance for helmets. this seems like something worthwhile implementing for exclusive eyewear.
my try to summarize how to system forks for headwear is in #65018 (comment)
Solution you would like.
general/decisions
eyes
exclusivelyweight
volume
flags
qualities
materials
FLASH_PROTECTION
and quality[ "GLARE" : "x" ]
what should happen here? should those be mutually exclusive for the encumbrance calculation?coding
encumbrance_modifiers
by adding the data to a new list somewhere nearCataclysm-DDA/data/json/body_parts.json
Line 143 in 40b1d9d
Cataclysm-DDA/src/itype.cpp
Line 398 in 40b1d9d
flags
toencumbrance_modifiers
. (i.e. flagSUN_GLASSES
adds aFLAT:1
), having a table in body_parts.json with the corresponging values.GLARE
adds aFLAT:10
per its value. so[ "GLARE", 1 ]
adds 10,[ "GLARE", 2 ]
adds 20 and so on)data assembly
encumbrance_per_weight
table.encumbrance_modifiers
table.IMBALANCED
orWELL_SUPPORTED
for helmets which have no meaning otherwise ingame so far.FLAGS
toencumbrance_modifiers
qualities
toencumbrance_modifiers
Describe alternatives you have considered.
Additional context
No response
The text was updated successfully, but these errors were encountered: