19 Commits

Author SHA1 Message Date
RenechCDDA da2aaffffd Add quick setup option to clear map 2026-06-22 15:07:51 -04:00
Anton Simakov 7c0aa2c094 unify windage and no_power effects for limbs (#85824) 2026-03-16 18:14:29 -05:00
dumb-kevin d6eecb51a5 Filter get_avg_coverage() by viewer anatomy
Add filtered overload that skips body parts the viewer doesn't have.
Use it in armor inventory menu and ablative pocket info display.

Add test fixture and tests for phantom limb filtering.
2026-03-11 09:24:52 +04:00
Andrew Krieger 0215b26cce Rewrite all tests to clear map without touching character map memory, for performance. 2026-02-08 23:05:55 -08:00
GuardianDll 03794a5ba1 Fix multiple issues with limbs 2026-01-30 18:05:49 +01:00
b3brodie 0948249f59 [MOM] Add encumbrance enchantment and convert Enhanced Mobility to use it (#80031)
* Migrate enhanced mobility to effect

* add encumbrance enchant and convert effect to use that

* remove generic encumbrance_data getter method for more specific accessors

* remove effect additions

* misc changes

* astyle

* reject "code is self-documenting"

* iwyu

* fix silly math error
2025-03-25 22:30:13 -05:00
moxian 2ee44002fd Mechanically IWYU the tests
python3 ~/github/include-what-you-use/iwyu_tool.py -j5 -p build $( find
src/ tests/ -maxdepth 1 -name '*.cpp' | grep -v -f
tools/iwyu/bad_files.txt )  --  -Xiwyu --comment_style=long -Xiwyu -
-max_line_length=1000 -Xiwyu --cxx17ns -Xiwyu
--mapping_file=../tools/iwyu/cata.imp   | tee out/iwyu/f-a-01.txt >
/dev/null

followed by

cat out/iwyu/f-a-02.txt | python3
~/github/include-what-you-use/fix_includes.py --reorder --nosafe_headers

followed by manual fixups of <stddef.h> -> <cstddef> and similar.

tests/generic_factory_test.cpp gets mangled very badly (IWYU bug) so
it's excluded from the list.

Code size:
includes:
$ cat obj/tiles/*.inc | wc
 288068  576136 17898260
$ cat tests/obj/tiles/*.inc | wc
 167044  334088 10465766

post-processed source (clang -E):
./make_preproc.sh src/
68567896 177775140 2134075721
./make_preproc.sh tests/
39341957 102891720 1243323710
2025-02-10 00:46:57 -08:00
Procyonae 982df19d0f Change /tests remaining uses of raw string item initialisation to use itype_id s
"remaining uses" being somewhat of an understatement -_-
2025-01-10 15:31:15 +00:00
PatrikLundell c380147ab2 typified creature.h and monster.h (#78565)
* typified creature.h and monster.h

* Update src/monmove.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update src/monster.h

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-16 22:16:00 -06:00
akrieger f369c6f2c2 Fix ASAN error in limb test. (#78452) 2024-12-09 21:24:20 -08:00
ShnitzelX2 6a78cc5e03 fix limb drying rate and related test data
weather not accounted for in test, update test values
2024-11-27 10:55:14 -05:00
ShnitzelX2 eff14ba68b drying_rate test displays weather, clears map 2024-11-19 21:06:06 -05:00
Venera3 c3b29e05d3 Consumption modifiers, tests (#73827) 2024-05-16 19:42:11 -05:00
Venera3 70e17826f1 Allow disabling limb conditional flags via effects (#72609)
* Flag-disabling effect flags

* Code part 2

* Update limb_test.cpp

* Update data/json/effects.json

* Update data/json/effects.json

---------

Co-authored-by: Maleclypse <54345792+Maleclypse@users.noreply.github.com>
2024-03-28 23:00:03 -05:00
Venera3 95fd2264ff Fixage (#72650) 2024-03-27 11:18:21 -07:00
Venera3 4fd3179a2f Drying_rate 2024-03-15 16:32:31 +01:00
Venera3 a637765346 Sublimb substitution 2024-03-02 08:30:26 +01:00
Venera3 d8ebc7574a Limb/Armor Fun Part 1: Support for similar limbs on armor (#71896)
* First

* Clang_wants_every_single_test_variable_to_be_eleven_thousand_char_long_and_is_a_dumdum

* Fix

* Not helping your case, clang

* ASan, hopefully

* Look at me being an idiot

* Copy-from-dum-dum
2024-02-27 22:39:49 -06:00
Venera3 5aa9176243 Add limb tests (#70924)
* Limb tests

* Breakage tests + suffer fix

* clang

* Fix tests

* Update limb_test.cpp
2024-01-15 22:13:55 -06:00