* Test for mon_ prefix
* Replace LIXA_ with mon_
* deal with pseudo monsters
* Check for prefix in vanilla monster during data load
* better cpp
* fix hardcoded ids
---------
Co-authored-by: Fris0uman <fris0uman@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)
* Preliminary spear changes
* add spear shaft item
* Add proper spear knife to tests
* spear shaft recipes
* Add more spears to test, adjust DPS numbers to run tests again
* reduce improper spear volume and weight to make them suck a bit less
* adjust a few tests, run em again
* Remove durable from copper spear
* remove parry back down to block
* Add all the recipes
* lower oil requirements for spear shaft by half
* fix the tests, hopefully the last time
* polearm flag for qiang and dory
* Audit To-Hit for Polearms
Most polearms were changed to have "neutral" balance, because while they may be long with a weight on one end, they are MEANT to be used for stabbing so it didn't seem appropriate to give them the "uneven" tag given that the description of the "good" balance tag says "Well-balanced for swinging or stabbing."
* Qiang is point not line
* Slight buff to most spears
* Update effective_dps_test.cpp
* Nerf Qiang
* Nerf Polearms a Bit
* Update effective_dps_test.cpp
* Nerf Survivor Naginata
* Update effective_dps_test.cpp
* Reduce damage of tonfas and batons and make tonfas autolearned.
* Update DPS tests
* Remove DURABLE_MELEE from wooden tonfa, make recipe a bit easier
* Shorten the staff sling and remove wood sawing
Reduce length, weight, and volume of staff sling
* Reduce bash damage of staff sling
* Changed effective dps test to reflect damage changes, pulled from the pull request's error logs
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.
* Change existing "wrench" to "adjustable wrench"
Rename existing wrench to have a more specific name, in preparation of
adding several other kinds of wrench.
Also reduce existing wrench volume; steel density is around 8 g/ml.
Preserve original weight, but reduce volume.
Lowering the volume increased the wrench's effective density, making it
do slightly (~0.94) more damage per second, from 7 to 8 DPS. Adjust the
test case accordingly.
* Add new wrenches and wrenching tools
- cordless impact wrench - medium-battery-powered, for bolts or lug nuts
- locking pliers - can turn bolts (but not fine bolts), and clamp
- socket wrench set - regular or fine bolts, but not lug nuts
- socket screwdriver set - screws or fine bolts
- large adjustable wrench - large bolts or lug nuts
- small adjustable wrench - fine bolts only
* Add new wrench tools to various itemgroups
* Remove WHEEL_FAST from gunsmith kits and bionic
* Change vehicle wheel requirement to tools
Listing specific tools that can fasten a vehicle wheel allows the use of
charged power tools like the cordless impact wrench.
Including the WHEEL_FAST quality requirement is redundant in this case
and clutters the UI, but these three tools are now the only ones with
that quality.
* Ignore weakpoints for item DPS calculations
* Increase epsilon between actual and expected DPS
* Fix bug with rapid strike calculation
* set effective_dps_test to use a test soldier
* Update zed_soldiers.json
Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
* Fixes melee weapon variant inconsistencies.
Previously, the fake battleaxe had the wide technique while the legitimate version lacked it. Fake weapons should still break easily, but you should be able to do the same attacks with every version of a melee weapon so long as you possess the skills.
Co-authored-by: anothersimulacrum <anothersimulacrum@gmail.com>
Co-authored-by: I-am-Erk <45136638+I-am-Erk@users.noreply.github.com>
Co-authored-by: Kevin Granade <kevin.granade@gmail.com>
The problem matchers with GitHub actions are meant to make seeing errors
in tests easier, without having to navigate through the somewhat clumsy
interface to find the errors.
However, because the CHECK does not include the name of the item, this
is still required.
Move the CHECK to be on the line with the item name, so it is not
necessary to go through the clumsy GHA interface.
This does mean the test will not print failures and the expected value
to stdout. I think that being more compatible with the GHA problem
matchers is worth making this slightly more annoying to manually run.
* Fix JSON errors, DPS test
Add a missing comma, two spaces between sentences, and fix the DPS
test.
The DPS test probably could use something more than just matching the
value, but that's all I'm doing for now.
* Fix partial proficiency tests
'practice_proficiency' was not practicing the correct amount due to
focus or other changes when this test was run in conjunction with other
tests.
Add a function to unconditionally practice a proficiency a certain
amount, and use it.
* Fix old-style monster death function
* Balance quarterstaves
Remove durable melee, reduce discrepancies between quarterstaff and staff sling, add staff sling to quarterstaff martial arts, adjust quarterstaves according to wood density and recipe components' weight/vol
* Update dps tests for quarterstaves, add tests for sling staff
* Update data/json/items/ranged/slings.json
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.
The baselard and bone shiv, when plugged into the effective DPS test,
produced expected values of 22.5 - 3.5 points above any conventional
knife. Drop the damage of the baselard to match other knives, and drop
the damage of bone knive to roughly 75% of that, as per GAME_BALANCE.md
on makeshift weapons. (I overshot a bit, but I think where it is is
fine).
Also, move the combat knife to sort the effective dps test knife section
again.