summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/test
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-08-30 01:30:11 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-08-30 01:30:11 +0200
commit572012ac31067c39e95409fb99c3694e17a180f5 (patch)
tree7cf929b2f4b98923a39d9565e0edac54ec70fa16 /crawl-ref/source/test
parent1832f94891d23acf31dd457b80e2d3e85d597206 (diff)
downloadcrawl-ref-572012ac31067c39e95409fb99c3694e17a180f5.tar.gz
crawl-ref-572012ac31067c39e95409fb99c3694e17a180f5.zip
Save the Abyss bot at 1000 time boundaries, rather than after 1000 turns.
Easier to predict when the time chunk will end.
Diffstat (limited to 'crawl-ref/source/test')
-rw-r--r--crawl-ref/source/test/stress/abyss.rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/test/stress/abyss.rc b/crawl-ref/source/test/stress/abyss.rc
index b43298e95b..918c95383f 100644
--- a/crawl-ref/source/test/stress/abyss.rc
+++ b/crawl-ref/source/test/stress/abyss.rc
@@ -15,7 +15,7 @@ autofight_stop = 0
Lua{
bot_start = true
last_turn = -1
-first_turn = you.turns()
+time1000 = math.floor(you.time() / 10000)
local cmds = {string.char(9), 'u', 'k', 'l', 'n', '.'}
function ready()
local esc = string.char(27)
@@ -102,7 +102,7 @@ function ready()
crawl.sendkeys(cmds[command])
--# do only 1000 turns per invocation
- if you.turns() - first_turn >= 1000 then
+ if math.floor(you.time() / 10000) > time1000 then
crawl.sendkeys(string.char(19))
end
end