MCPcopy Create free account
hub / github.com/crawl/crawl / _write_monster_stats

Function _write_monster_stats

crawl-ref/source/dbg-objstat.cc:1281–1302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1279}
1280
1281static void _write_monster_stats(monster_type mc)
1282{
1283 string mons_name;
1284 if (mc == NUM_MONSTERS)
1285 mons_name = "All Monsters";
1286 else
1287 mons_name = mons_type_name(mc, DESC_PLAIN);
1288
1289 for (const level_id &level: stat_levels)
1290 {
1291 if (monster_recs[level][mc]["Num"] < 1)
1292 continue;
1293
1294 fprintf(stat_outf, "%s\t%s", mons_name.c_str(),
1295 _level_name(level).c_str());
1296
1297 for (const string &field : monster_fields)
1298 _write_stat(monster_recs[level][mc], field);
1299
1300 fprintf(stat_outf, "\n");
1301 }
1302}
1303
1304static void _write_feature_stats(dungeon_feature_type feat_type)
1305{

Callers 1

_write_object_statsFunction · 0.85

Calls 3

mons_type_nameFunction · 0.85
_level_nameFunction · 0.85
_write_statFunction · 0.85

Tested by

no test coverage detected