veloren/common
holychowders e473c47bcf Distinguish stealth from armor and stealth from sneaking. Also fixes #1525.
- Armor and sneaking have exclusive effects on overall stealth, rather
  than armor taking effect only while sneaking.

Gameplay:
- Agents factor in stealth from armor in all cases, not only when sneaking.
- Max stealth takes place when sneaking (final multiplier of `0.7`) and with stealth from armor up to `0.7` (`0.3` multiplier), resulting in a max distance modifier of about `0.5`, approximately what it was previously.
- Min stealth score from armor is now 0 instead of 2.

Internals:
- Stealth getter accounts for sneaking in final calculation, not just
  armor.
- Prevents potential division by zero.
- Stealth getter returns value that should be multiplied instead of divided.
- Legitimized stealth as a score between 0 and 1.

Notes:
- FIXME: Someone more familiar with the different armor types may want to adjust their stealths.
  - Armor stealths seem to be valued between `0.0` and `1.0`, and I've reinforced this in the code. However, it is possible, particularly for the `Dragonscale` armors, to cumulatively reach a value of `2.0`.
2022-05-06 13:15:46 -05:00
..
assets Move common-assets to 2021 edition 2022-01-26 15:09:00 +02:00
base update toolchain to nightly-2022-04-25 2022-05-03 15:22:28 +02:00
benches use criterion groups and fix tracing to much on wgpu 2021-06-03 22:37:17 +02:00
ecs Move Veloren to 2021 edition 2022-01-26 16:46:40 +02:00
frontend Small logging filter directives refactor including removing: "ignoring ``: invalid filter directive"message that always appeared when using RUST_LOG env var 2022-03-13 01:37:52 -05:00
net switch to upstream vek again 2022-04-28 09:10:55 +02:00
src Distinguish stealth from armor and stealth from sneaking. Also fixes #1525. 2022-05-06 13:15:46 -05:00
state switch to upstream vek again 2022-04-28 09:10:55 +02:00
systems Extract 'calculate_projection_and_collision_dist' function 2022-05-02 09:14:17 +00:00
build.rs use bg_main.jpg instead of bg_main.png 2021-06-18 20:41:18 +03:00
Cargo.toml switch to upstream vek again 2022-04-28 09:10:55 +02:00