Angband
Functions
wizard.h File Reference

Debug mode commands, stats collection, spoiler generation. More...

Go to the source code of this file.

Functions

void wiz_cheat_death (void)
 What happens when you cheat death. More...
 
void get_debug_command (void)
 Main switch for processing debug commands. More...
 
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)
 
void do_cmd_spoilers (void)
 Create Spoiler files. More...
 

Detailed Description

Debug mode commands, stats collection, spoiler generation.

Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke

This work is free software; you can redistribute it and/or modify it under the terms of either:

a) the GNU General Public License as published by the Free Software Foundation, version 2, or

b) the "Angband licence": This software may be copied and distributed for educational, research, and not for profit purposes provided that this copyright and statement are included in all such copies. Other copyrights may also apply.

Function Documentation

◆ disconnect_stats()

void disconnect_stats ( void  )

References msg.

Referenced by get_debug_command().

◆ do_cmd_spoilers()

void do_cmd_spoilers ( void  )

◆ get_debug_command()

void get_debug_command ( void  )

◆ pit_stats()

void pit_stats ( void  )

References msg.

Referenced by get_debug_command().

◆ stats_collect()

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().

◆ wiz_cheat_death()

void wiz_cheat_death ( void  )