diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-04 18:31:16 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-04 18:32:06 -0800 |
commit | 48ab3b1a8d6b8849ffc90bde7ffa2ee0c7ba0aeb (patch) | |
tree | f2d3608466cb81b1735ec6103aca910c545240b0 /crawl-ref/source/test | |
parent | f5dd3f8ffad0ff552b6bea4fbc8601240eb5f93f (diff) | |
download | crawl-ref-48ab3b1a8d6b8849ffc90bde7ffa2ee0c7ba0aeb.tar.gz crawl-ref-48ab3b1a8d6b8849ffc90bde7ffa2ee0c7ba0aeb.zip |
test/bounce.lua: Turn beam range into a variable.
Diffstat (limited to 'crawl-ref/source/test')
-rw-r--r-- | crawl-ref/source/test/bounce.lua | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/crawl-ref/source/test/bounce.lua b/crawl-ref/source/test/bounce.lua index 561a57edbc..ef20a0656b 100644 --- a/crawl-ref/source/test/bounce.lua +++ b/crawl-ref/source/test/bounce.lua @@ -3,6 +3,7 @@ local checks = 0 local iters = 10 +local range = 1000 local function test_bounce_iter(map) dgn.reset_level() @@ -21,14 +22,14 @@ local function test_bounce_iter(map) -- Fire beams slightly off of compass directions, to get the -- beam to bounce all over the place. - debug.bouncy_beam(30, 30, 30 - 8, 30 - 7, 1000) - debug.bouncy_beam(30, 30, 30 - 1, 30 - 8, 1000) - debug.bouncy_beam(30, 30, 30 + 8, 30 - 7, 1000) - debug.bouncy_beam(30, 30, 30 + 1, 30 - 8, 1000) - debug.bouncy_beam(30, 30, 30 - 8, 30 + 7, 1000) - debug.bouncy_beam(30, 30, 30 - 1, 30 + 8, 1000) - debug.bouncy_beam(30, 30, 30 + 8, 30 + 7, 1000) - debug.bouncy_beam(30, 30, 30 + 1, 30 + 8, 1000) + debug.bouncy_beam(30, 30, 30 - 8, 30 - 7, range) + debug.bouncy_beam(30, 30, 30 - 1, 30 - 8, range) + debug.bouncy_beam(30, 30, 30 + 8, 30 - 7, range) + debug.bouncy_beam(30, 30, 30 + 1, 30 - 8, range) + debug.bouncy_beam(30, 30, 30 - 8, 30 + 7, range) + debug.bouncy_beam(30, 30, 30 - 1, 30 + 8, range) + debug.bouncy_beam(30, 30, 30 + 8, 30 + 7, range) + debug.bouncy_beam(30, 30, 30 + 1, 30 + 8, range) end local function test_bounces() |