summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_debug.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-03-22 10:45:32 +0100
committerAdam Borowski <kilobyte@angband.pl>2012-03-22 11:24:40 +0100
commit5918fd6a840110cc44808ce3f12cf609fcf0b1a5 (patch)
tree528f482555e752fecb17e56fb12226084b9106af /crawl-ref/source/l_debug.cc
parentb5b93d8e298f5d53bf74909620ee76e7f22db0c2 (diff)
downloadcrawl-ref-5918fd6a840110cc44808ce3f12cf609fcf0b1a5.tar.gz
crawl-ref-5918fd6a840110cc44808ce3f12cf609fcf0b1a5.zip
A really crude and wrong way to disable confirmations.
This lets more advanced stress-test bots to continue through "Really levitate into this cloud of steam?" prompts. I intentionally kept it within the existing dlua debug.disables() interface, even though non-wizmode clua bots do want this too, as it's the wrong way to do so. What we really want is a hook that receives the question, preferably in a machine-parsable way rather than having different messages for walk/levitate/fly/slither/ride your riding dachshund/waddle. Such a hook would have to be well-though out, so I'm putting this quick hack in instead, so I can waste CPU time running abys{s,m}al test bots.
Diffstat (limited to 'crawl-ref/source/l_debug.cc')
-rw-r--r--crawl-ref/source/l_debug.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/l_debug.cc b/crawl-ref/source/l_debug.cc
index 16e622d1f2..8a9881927e 100644
--- a/crawl-ref/source/l_debug.cc
+++ b/crawl-ref/source/l_debug.cc
@@ -329,6 +329,7 @@ static const char* disablements[] =
"hunger",
"death",
"delay",
+ "confirmations",
};
LUAFN(debug_disable)