PatrikLundell
f9900fccc2
Merge pull request #79670 from PatrikLundell/mapify
...
mapify: split ammo remaining into link and non link
2025-02-16 14:49:56 -06:00
PatrikLundell
30b83d6c34
add needed includes
2025-02-13 09:15:16 +01:00
PatrikLundell
7bfa56fa99
Merge branch 'master' into mapify
2025-02-13 08:46:56 +01:00
PatrikLundell
831bbab9b6
demanded changes
2025-02-11 16:34:25 +01:00
PatrikLundell
0ac675121c
mapified a little item prompting a lot of vehicle
2025-02-11 15:10:00 +01: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
2a922a6c59
Appease our clang overlords
...
Failing to remember Z before a strikes again
2025-01-10 20:14:36 +00: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
mqrause
bd211963e6
move item_pocket::pocket_type to it's own header
2023-11-27 13:22:35 +01:00
Alexey
07356b65a5
Normalize TEST_CASE names ( #66241 )
...
* 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)
2023-06-17 13:57:19 -03:00
Ruminator24
d971500cbb
UPS no longer automatically gets drained ( #66020 )
...
* Update electronics.json
* Update electronics.json
* Update electronics.json
* Update electronics.json
* Update data/json/items/tool/electronics.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update data/json/items/tool/electronics.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update data/json/items/tool/electronics.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update data/json/items/tool/electronics.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update electronics.json
* Update electronics.json
* Update electronics.json
* Update migration_items.json
* Update migration_items.json
* Update electronics.json
* Update vehicle_interact_test.cpp
* Update electronics.json
* Update data/json/items/tool/electronics.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update data/json/obsoletion/migration_items.json
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update tool_quality_test.cpp
* Update crafting_test.cpp
* Update npc_attack_test.cpp
* Update bionics_test.cpp
* Update electronics.json
* Update power_supplies.json
* Update activities_hobbies.json
* Update clothing.json
* Update gear.json
* Update defense_mode.json
* Update electronics.json
* Update lab_security.json
* Update locations.json
* Update locations_commercial.json
* Update main.json
* Update military.json
* Update science_and_tech.json
* Update shops_trades.json
* Update tools.json
* Update tool_armor.json
* Update microlab_special_tiles.json
* Update classes.json
* Update items_generic.json
* Update NC_SOLDIER.json
* Update robofac_intercom_missions.json
* Update nested.json
* Update tools_electronic.json
* Update electronics.json
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-06-09 09:24:55 -03:00
mqrause
d688521e7b
Character::i_add returns an item_location ( #58191 )
...
Co-authored-by: mqrause <martin@qrause.de >
2022-06-18 21:27:30 -04:00
KorGgenT
99a62861eb
Create wrapper for worn items called outfit
2022-02-27 23:44:51 -05:00
Eric Pierce
a29f71aa7f
Add get_quality test, UPS charged_quality test
2022-01-18 15:07:47 -07:00
Eric Pierce
990adc6026
Tool qualities that only work when tool is charged ( #52304 )
...
* src: Document get_quality and count_by_charges
* Add charged_qualities field to items
* src/tests: Add charged qualities to qualities_info
- Include both inherent and charged item qualities in iteminfo display
- Indicate whether enough charge is present, and how much is needed
- Simplify "Has level" to "Level", rephrase jack ratings
- Add translator notes for positional string interpolation
- Adjust iteminfo tests for revised quality display
* tests: Move tool quality tests to new file
* tests: Add test for battery tool qualities
* json: Use charged_qualities for workshop tools
- Drill and impact wrench now have charges_per_use
- Drill, welder, oxytorch and grinder need charge for all qualities
- Cordless drill retains SCREW 1 without power, but loses DRILL
- Impact wrench retains WRENCH 1 without power, but loses WHEEL_FAST
* json: charged_qualities for electric shears
2021-12-19 15:13:48 -08:00