* make weakpoint duration specified in time units
* add test to print the weakpoint distribution
* Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Please iwyu
* please clang
* please IWYU again
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* 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)
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.
This clang-tidy check looks for potentially-expensive-to-copy value
parameters which are only used as const values.
If they are only used once, in an assignment or initialization, then
their use will be converted to std::move. This can save a copy in some
cases.
Otherwise, the parameter will be converted to a const reference, which
can also save a copy in some cases.
* Preliminary work for loading weakpoint_sets
* Randomly select a weakpoint set
* Use sequential loading instead of storing separate sets
* Documentation
* Add unit tests, verify proper set order
* Extract strings from "weakpoint_set"
* Style corrections
* Fix string extractor for "weakpoint_set"