Angband
Functions
wiz-stats.c File Reference

Statistics collection on dungeon generation. More...

#include "math.h"
#include "angband.h"
#include "cave.h"
#include "cmds.h"
#include "effects.h"
#include "game-input.h"
#include "generate.h"
#include "init.h"
#include "mon-make.h"
#include "monster.h"
#include "obj-pile.h"
#include "obj-randart.h"
#include "obj-tval.h"
#include "obj-util.h"
#include "object.h"
#include "ui-command.h"
#include "wizard.h"

Functions

void stats_collect (void)
 The stats programs here will provide information on the dungeon, the monsters in it, and the items that they drop. More...
 
void disconnect_stats (void)
 
void pit_stats (void)
 

Detailed Description

Statistics collection on dungeon generation.

Copyright (c) 2008 Andi Sidwell

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Function Documentation

void disconnect_stats ( void  )

References msg.

Referenced by get_debug_command().

void pit_stats ( void  )

References msg.

Referenced by get_debug_command().

void stats_collect ( void  )

The stats programs here will provide information on the dungeon, the monsters in it, and the items that they drop.

Statistics are gotten from a given level by generating a new level, collecting all the items (noting if they were generated in a vault). Then all non-unique monsters are killed and their stats are tracked. The items from these monster drops are then collected and analyzed. Lastly, all unique monsters are killed, and their drops are analyzed. In this way, it is possible to separate unique drops and normal monster drops.

There are two options for simulating the entirety of the dungeon. There is a "diving" option that begins each level with all artifacts and uniques available; and there is a "level-clearing" option that simulates all 100 levels of the dungeon, removing artifacts and uniques as they are discovered/killed. "diving" option only catalogues every 5 levels.

At the end of the "level-clearing" log file, extra post-processing is done to find the mean and standard deviation for the level you are likely to first gain an item with a key resistance or item.

In addition to these sims there is a shorter sim that tests for dungeon connectivity.

References msg.

Referenced by get_debug_command().