summaryrefslogtreecommitdiff
path: root/lib/mods/theme/core/dungeon.lua
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-05 21:03:18 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-07 15:28:25 +0200
commit46498dfaab2cb0698822397b43039e3ecf605a1e (patch)
treeee758d0906ef96311bdaa4b5f392f9704553ab48 /lib/mods/theme/core/dungeon.lua
parentc92f7bf932d6e36c1aecd704a2a69d742ef7748d (diff)
Lua: Move geomancy spell effects to C
Diffstat (limited to 'lib/mods/theme/core/dungeon.lua')
-rw-r--r--lib/mods/theme/core/dungeon.lua26
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/mods/theme/core/dungeon.lua b/lib/mods/theme/core/dungeon.lua
index d91d785b..ba4fd38a 100644
--- a/lib/mods/theme/core/dungeon.lua
+++ b/lib/mods/theme/core/dungeon.lua
@@ -20,32 +20,6 @@ function explode_dir(dir)
return ddy[dir + 1], ddx[dir + 1]
end
-function rotate_dir(dir, mov)
- if mov > 0 then
- if dir == 7 then dir = 8
- elseif dir == 8 then dir = 9
- elseif dir == 9 then dir = 6
- elseif dir == 6 then dir = 3
- elseif dir == 3 then dir = 2
- elseif dir == 2 then dir = 1
- elseif dir == 1 then dir = 4
- elseif dir == 4 then dir = 7
- end
- elseif mov < 0 then
- if dir == 7 then dir = 4
- elseif dir == 4 then dir = 1
- elseif dir == 1 then dir = 2
- elseif dir == 2 then dir = 3
- elseif dir == 3 then dir = 6
- elseif dir == 6 then dir = 9
- elseif dir == 9 then dir = 8
- elseif dir == 8 then dir = 7
- end
- end
-
- return dir
-end
-
-- Place a trap for a specific level
function place_trap(y, x, level)
local old_dun = dun_level