diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-11-11 04:03:36 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-11-11 04:03:36 +0100 |
commit | ec18d56815caf723976c517556953988bf0e315f (patch) | |
tree | d567e81eadbfecb20bf5e7990d64d4721c4649b2 /crawl-ref/source/test | |
parent | 9ebb196097188ca659b2467d874b5d537b5f6eb5 (diff) | |
download | crawl-ref-ec18d56815caf723976c517556953988bf0e315f.tar.gz crawl-ref-ec18d56815caf723976c517556953988bf0e315f.zip |
Abyss stress bot: cast a spell assigned to 'T' every 50 turns.
Diffstat (limited to 'crawl-ref/source/test')
-rw-r--r-- | crawl-ref/source/test/stress/abyss.rc | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/crawl-ref/source/test/stress/abyss.rc b/crawl-ref/source/test/stress/abyss.rc index f51aa09cb0..d405c8f51e 100644 --- a/crawl-ref/source/test/stress/abyss.rc +++ b/crawl-ref/source/test/stress/abyss.rc @@ -59,6 +59,18 @@ function ready() if you.turns() ~= last_turn then command = 1 last_turn = you.turns() + + -- every 50 turns, cast a spell assigned to 'T' if there is one + if you.turns() % 50 == 0 then + local sp = you.spell_letters() + for i = 1, 52 do + if sp[i] == 'T' then + command = 0 + crawl.sendkeys("ZT" .. eol .. esc) + return + end + end + end else command = command + 1 end @@ -67,8 +79,5 @@ function ready() command = 2 end crawl.sendkeys(cmds[command]) - -- if you.turns() >= 1000 then - -- crawl.sendkeys("*qyes" .. eol .. esc .. esc) - -- end end } |