# Fireworks, benchmark version. Tests performance of display code.
#
# Wizmode is needed.

name = CPU_hog
species = mu
background = ar
restart_after_game = false
show_more = false
pregen_dungeon = false
#message_colour = mute:.*

: bot_start = true
: function ready()
:   local esc = string.char(27)
:   local eol = string.char(13)
:   if you.turns() == 0 and bot_start then
:     bot_start = false
:     crawl.enable_more(false)
:     crawl.set_sendkeys_errors(true)
:     crawl.sendkeys("&Y" .. esc)
:     crawl.sendkeys("&_nemelex" .. eol)
:     crawl.sendkeys("&~T")
:     crawl.sendkeys("&Lcircular_temple_12" .. eol)
:     crawl.sendkeys("&" .. string.char(20) ..
:                    "debug.disable('confirmations')" .. eol ..
:                    "debug.disable('death')" .. eol ..
:                    "crawl_require('dlua/stress.lua')" .. eol ..
:                    "stress.fill_level('floor')" .. eol ..
:                    "you.teleport_to(40, 33)" .. eol ..
:                    "dgn.create_monster(40, 40, 'statue hp:10000')" .. eol ..
:                    "you.piety(200)" .. eol .. esc)
:     crawl.sendkeys("X" .. string.char(6) .. "y" .. esc)
:     crawl.sendkeys("&l27" .. eol)
:     crawl.sendkeys("&A27" .. eol)
:     for i = 1, 40 do
:       crawl.sendkeys("&H")
:     end
:   end
:   if (you.turns() % 7) == 1 then
:     crawl.call_dlua("crawl_require('dlua/stress.lua')" .. eol ..
:                     "stress.boost_monster_hp()")
:     crawl.sendkeys("&corb" .. eol .. eol)
:   end
:   if you.turns() < 1000 then
:     crawl.sendkeys(".")
:   else
:     crawl.sendkeys("*qyes" .. eol .. esc .. esc)
:   end
: end
