* remove weakness_to_water, add WEAKNESS_TO_WATER as replacement, fix it not working with negative values
* remove fat_to_max_hp, make FAT_TO_MAX_HP as replacement
* remove healthy_rate, create HEALTHY_RATE as a replacement
* remove scent_mask, adds SCENT_MASK to replace it
* remove consume_time_modifier, make CONSUME_TIME_MOD as replacement
* remove reading_speed_multiplier
* remove overmap_sight and overmap_multiplier
* remove sweat_multiplier, add SWEAT_MULTIPLIER as replacement
* remove vomit_multiplier
* remove stamina_regen_modifier, make STAMINA_REGEN_MOD as replacement
* remove fatigue_regen_modifier, make FATIGUE_REGEN as replacement
* remove fatigue_modifier
* remove noise_modifier
* remove crafting_speed_multiplier
* remove casting_time_multiplier
* remove bionic_mana_penalty
* remove mana_regen_multiplier
* remove mana_multiplier
* remove mana_modifier
* refine water damage to allow float values, make it tick once per second instead of once per minute
* lintin and fixin
* Astyle
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* clang tidy
* Astyle
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* more
* more
* data types are hard
* ill squash it in the future, believe me
* Astyle
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* refine crafting speed calculations
* update tests
* Update tests/mutation_test.cpp
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* add identifier to enchantment
* int to double?
* refine mutation OM vision test to check actual OM vision
* Update src/character.cpp
Co-authored-by: mqrause <38702195+mqrause@users.noreply.github.com>
* the last bist of sight test
* final test tweaks
* fix widget test mismatch
* add escape character to fix test
* fix two nocturnal trait
* fix multiple errors
* make new overmap sight test use test mutations, that work all the time (eagleeyed doesn't work at night)
* fix field duplication
* more fixes after merge
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: mqrause <38702195+mqrause@users.noreply.github.com>
* Convert integer parsing test to use normal TEST_CASEs
* Rename test name too similar to another
* Test to enforce normalized test names
* Normalize TEST_CASE names (scripted)
It turns out that a lot of loading code depends on
the availability of certain damage types.
I see two ways to resolve this:
1) Juggle the loading order of JSON types so that damage
types always load first.
2) Add deferred processing for every type with inline
damage type definitions.
I went with option 2, which is better but still
not great since new code that loads damage/resistance
definitions would need to also call finalize_damage_map
in the finalizing stage. Option 1 would cause problems
for mods, especially because the load order would matter.
None of this can be done piecemeal, it has to all be ripped
out in one go unless we want commits that don't compile
on their own.
* Load damage resistances for body parts and mutation armour BP types
* Apply damage resistances from body parts
* Use resistances object and rename fields for consistency
* Documentation & style fixes
* Add unit tests
* Use generic text function for displaying limb encumbrance effects
* Partial jsonification of limb scores
* astyle and json style corrections
* Generate modifier descriptions + Scroll info box
* Partial jsonification of character modifiers
* Style corrections + Add character_mod to translation
* Remove unnecessary static string_id's (clang-tidy)
* Documentation - limb scores and character modifiers
* Switch over to new string extraction system
* Add unit tests for limb scores and character modifiers
* Clang-tidy: use proper string_id name
* Post-merge fix: L comes before Q
* Post-rebase cleanup: new fields / new scores / changed modifiers
- New fields for `character_mod`: "override_encumb" & "override_wounds"
- Migrated new "footing" limb score
- Modified "melee_stamina_cost_mod" to force lift score to be affected by encumbrance
- Updated documentation
* Unhardcode body parts whose encumbrance affects dodge
* Fix reference to non-reference