* update batteries
* migrate all removed batteries, clean up
* sprinkle occasional batteries in boxes around the world
* fix density test fail
* fix wrong chemistry on some batteries
* obsolete medium_disposable_cell, replace current medium_battery_cell(D battery) with modern 18650 battery
* fix redefinition of 'itype_medium_battery_cell'
* remove light_disposable_cell, change the names and descriptions of baterries to match what they are
* migrate light_disposable_cell, astyle battery density test
* fix test failures
* swap battery to please ups crafting test
* swap ids for tool batteries to make more sense (and not replace all ids in the entire game)
* migrate removed vehicle parts, fix unreachable cell recipe
* fix missed afs battery
* Main removals
* Further mention removal + additional gun removal
Cleans up mentions in NPC shopkeeps, also removes handmade lever shotgun. Was gonna replace it with a winchester 1901 but they do not seem to exist within large enough quantities
* Remove extra comma
Messed up and left a comma
* Lint Generic Gun migration
* Remove LeMat from ammo_test
* Missed lemat_revolver_shotgun in generic guns
---------
Co-authored-by: Kevin Granade <kevin.granade@gmail.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)
Our string_id constants were a mixture of temporaries, locals, and
globals. Pull them all out as globals, for consistency and efficiency.
The efficiency comes from the fact that each string_id instance caches
its respective int_id, and sharing one instance means that value need
not be recomputed.
Catch2 provides a customization point for converting our types to
strings by specializing the StringMaker template.
We have some specializations in stringmaker.h, but this feature was only
working intermittently. I finally figured out that was due to an ODR
violation. The test files that didn't include stringmaker.h were
compiling a different specialization than the ones that did.
Re-jig the test includes so that any file including catch.hpp also
includes stringmaker.h, thereby ensuring that the custom
specializations are used everywhere and there is no ODR violation.
I achieved this by adding a new cata_catch.h header and making all
existing headers include catch.hpp via the new header.