From 48ab3b1a8d6b8849ffc90bde7ffa2ee0c7ba0aeb Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Wed, 4 Nov 2009 18:31:16 -0800 Subject: test/bounce.lua: Turn beam range into a variable. --- crawl-ref/source/test/bounce.lua | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'crawl-ref/source/test/bounce.lua') 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() -- cgit v1.2.3-54-g00ecf