summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cmd-keys.h
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2010-02-27 23:14:03 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2010-02-27 23:14:03 +1000
commit70f0ac54e5f8a4157a4630ead194a0d2a8abf46f (patch)
treed8180bdcf4969fdd9b68f71269402f2f7793fade /crawl-ref/source/cmd-keys.h
parentc7e232387f1bcda8657402fd02bf0849475a58db (diff)
downloadcrawl-ref-70f0ac54e5f8a4157a4630ead194a0d2a8abf46f.tar.gz
crawl-ref-70f0ac54e5f8a4157a4630ead194a0d2a8abf46f.zip
Framework for debugging portal vaults using 'x-d'.
'd' doesn't look like it's currently being used for anything else. 'D' is currently used for monster debug information, so it makes sense to have 'd' apply to this. Currently, it merely returns the string value of the 'portal_debug' property of the portal in question. If there is no portal, or there is no property, it will return nothing. Using the standard set of portal vault markers that use unmangle, it should be possible to store 'portal_debug' as a debugging function. In other instances, such as TroveMarker, it's necessary to write the functionality into the property call, and write a separate function to do the actual debugging. I don't believe this breaks save compatibility, but if it does, it can quickly be reverted. Not necessary for 0.6, but it is currently necessary for debugging why Troves aren't functioning exactly as intended.
Diffstat (limited to 'crawl-ref/source/cmd-keys.h')
-rw-r--r--crawl-ref/source/cmd-keys.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/cmd-keys.h b/crawl-ref/source/cmd-keys.h
index 21d456de17..ec5210ef6c 100644
--- a/crawl-ref/source/cmd-keys.h
+++ b/crawl-ref/source/cmd-keys.h
@@ -169,6 +169,7 @@
{'~', CMD_TARGET_WIZARD_POLYMORPH},
{'D', CMD_TARGET_WIZARD_DEBUG_MONSTER},
{',', CMD_TARGET_WIZARD_HURT_MONSTER},
+{'d', CMD_TARGET_WIZARD_DEBUG_PORTAL},
#endif
{'v', CMD_TARGET_DESCRIBE},
{'?', CMD_TARGET_HELP},