add enemy count generator

This commit is contained in:
Martin Michelsen
2025-02-17 19:34:36 -08:00
parent 963788af33
commit f4da9c8cb2
2 changed files with 10 additions and 4 deletions
+8 -2
View File
@@ -2625,8 +2625,14 @@ Action a_show_battle_params(
s->battle_params->get_table(true, Episode::EP4).print(stdout);
});
Action a_load_maps_test(
"load-maps-test", nullptr, +[](phosg::Arguments& args) {
Action a_check_supermaps(
"check-supermaps", "\
check-supermaps [--disassemble] [--generate-enemy-stats]\n\
Checks the supermaps for all free-play areas and quests. If --disassemble\n\
is given, saves the contents of each supermap to text files in the current\n\
directory. If --generate-enemy-stats is given, saves tables of enemy\n\
counts for each quest to text files in the current directory.\n",
+[](phosg::Arguments& args) {
bool save_disassembly = args.get<bool>("disassemble");
bool generate_enemy_stats = args.get<bool>("generate-enemy-stats");
@@ -7,4 +7,4 @@ if [ -z "$EXECUTABLE" ]; then
EXECUTABLE="./newserv"
fi
$EXECUTABLE --config=tests/config.json load-maps-test
$EXECUTABLE --config=tests/config.json check-supermaps