Files
nethack/dat/wizhelp
Alex Smith 62a50413d3 New debug command #wizobjprobs for listing item probabilities
As of the change to allow for item probabilities that don't add up
to 1000, it's become a little difficult to figure out the exact
probabilities from the source code, which makes it hard to balance
item generation. Adding a tool to list the probabilities helps.

Part of the problem is that changing an item's probability without
balancing it elsewhere is usually wrong: doing that would in effect
take the probability equally from (or add the probability equally
to) all other items in the class, which might break the balancing
of those items due to the probability change.

As such, it is usually better to make an intentional decision about
which items should be less and which items should be more likely to
generate, then change them in a balancing way (meaning that the
probabilities of objects that weren't intentionally changed remain
unchanged). Doing a complex such change makes arithmetic errors
fairly likely, though, so it's useful to have a command that verifies
that it's been done correctly.

This command is primarily intended as a development aid, so it's
included only in debug builds and pre-release builds (the same as
other similar commands like #wizmondiff).
2026-03-21 05:05:48 +00:00

52 lines
2.6 KiB
Plaintext

Debug-Mode Quick Reference:
^E == detect secret doors and traps nearby
^F == map level; reveals traps and secret corridors but not secret doors
^G == create monster by name or class
^I == identify items in pack
^T == do intra-level teleport
^V == do trans-level teleport; '?' yields menu of special destinations
^W == make a wish for an item or a trap or a limited subset of terrain
^X == show status, attributes, and characteristics (extended enlightenment)
#debugfuzzer == set game to run on autopilot; keeps going until failure;
escalates impossible warnings to panic
#levelchange == set hero's experience level
#lightsources == show mobile light sources
#migratemons == show migrating monsters; [Opt] potentially create some
#panic == panic test (warning: current game will be terminated)
#polyself == polymorph self
#stats == show memory statistics
#terrain == show current level (more options than in normal play)
#timeout == look at timeout queue and hero's timed intrinsics
#vision == show vision array
#wizborn == show monster birth/death/geno/extinct stats
#wizcast == cast any spell
#wizdispmacros == [Opt] check internal display classifications
#wizfliplevel == transpose the current dungeon level
#wizintrinsic == set selected intrinsic timeouts
#wizkill == remove monster(s) from play
#wizloaddes == load and execute a special level description lua script
#wizloadlua == load and execute a lua script
#wizmakemap == recreate the current dungeon level
#wizmondiff == [Opt] check for discrepancies in monster difficulty ratings
#wizobjprobs == [Opt] list actual probabilities of item generation
#wizrumorcheck == validate rumor indexing; also show first, second, and last
random engravings, epitaphs, and hallucinatory monsters
#wizseenv == show map locations' seen vectors
#wizsmell == smell a monster
#wiztelekinesis == magically shove a monster
#wizwhere == show dungeon placement of all special levels
#wmode == show wall modes
Options:
debug_hunger == disable hero's hunger
debug_mongen == disable random monster generation
debug_overwrite_stairs
== allows stairs to be replaced by other terrain
monpolycontrol == prompt for new form whenever any monster changes shape
sanity_check == evaluate monsters, objects, and map prior to each turn
wizweight == augment object descriptions with their objects' weight
[Opt] = conditionally available depending upon build-time settings