Commit Graph

6 Commits

Author SHA1 Message Date
Curtis Merrill 063b61b5df only do item charge migration once (#47613)
* only do item charge migration once
* change submap test loading version
2021-02-21 23:22:56 -08:00
Binrui Dong 9fdb7ef59c Run IWYU
* Change _ctype.h and __locale to cctype and clocale

* Change _wctype.h to cwctype in game.cpp

* Change __functional_base to functional

* Remove libcxx internal headers

* Remove UNIX system headers

* Fix clang-tidy error with -nostdinc++
2021-02-06 00:18:41 -05:00
anothersimulacrum 5a522981a6 Use calories instead of kcal in nutrients
calorie precision is only used internally, all external methods should
be dealing with kcal.

Having calorie precision just enables removing rng-based rounding from
metabolism functions, without losing detail.

There was a very minor change in the Calories of some crafted items, as
is caught in the tests.
2021-01-22 11:21:53 -08:00
anothersimulacrum b0bffd504c Change assert to require
We don't need to crash here, we can just abort the test with REQUIRE
2021-01-22 07:38:54 -08:00
Kevin Granade d64669bf29 Silence an advisory warning. 2020-11-27 07:59:27 -08:00
anothersimulacrum 0b82821eb8 Add submap loading tests
Add tests for each part of submap loading (except for camps, which
appear to be obsolete).

Each test tests a single separate area to prevent cross-contamination,
and as such each has a separate JSON definition.

For tests using the four corners and the point (4,7), this is to ensure
no rotation or anything occurs, and the extra point is to make sure
testing just the corners doesn't bite us somewhere.

All JSON is either taken from or inspired by real JSON produced by our
submap deserializer.
2020-11-26 10:53:42 -08:00