add enemy count generator
This commit is contained in:
+8
-2
@@ -2625,8 +2625,14 @@ Action a_show_battle_params(
|
|||||||
s->battle_params->get_table(true, Episode::EP4).print(stdout);
|
s->battle_params->get_table(true, Episode::EP4).print(stdout);
|
||||||
});
|
});
|
||||||
|
|
||||||
Action a_load_maps_test(
|
Action a_check_supermaps(
|
||||||
"load-maps-test", nullptr, +[](phosg::Arguments& args) {
|
"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 save_disassembly = args.get<bool>("disassemble");
|
||||||
bool generate_enemy_stats = args.get<bool>("generate-enemy-stats");
|
bool generate_enemy_stats = args.get<bool>("generate-enemy-stats");
|
||||||
|
|
||||||
|
|||||||
@@ -7,4 +7,4 @@ if [ -z "$EXECUTABLE" ]; then
|
|||||||
EXECUTABLE="./newserv"
|
EXECUTABLE="./newserv"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$EXECUTABLE --config=tests/config.json load-maps-test
|
$EXECUTABLE --config=tests/config.json check-supermaps
|
||||||
Reference in New Issue
Block a user