summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-08 20:52:58 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-08 20:52:58 +0200
commit3db3a9506e165a6480c51d79ee8ddb2ca509f600 (patch)
treeff309eecb9343103fdc26a2287b695549e33ce6d /lib
parent976701ed6d6a45214bc2ea9fea3f6f7299ae379c (diff)
Lua: Remove now-unused Lua code
Diffstat (limited to 'lib')
-rw-r--r--lib/core/dungeon.lua20
-rw-r--r--lib/mods/theme/core/dungeon.lua20
2 files changed, 0 insertions, 40 deletions
diff --git a/lib/core/dungeon.lua b/lib/core/dungeon.lua
index ba4fd38a..13030eac 100644
--- a/lib/core/dungeon.lua
+++ b/lib/core/dungeon.lua
@@ -1,29 +1,9 @@
-- Internal lua file in charge of dungeon stuff
-function place_dungeon(y, x, d_idx)
- if d_idx then
- wild_map(y, x).entrance = 1000 + d_idx
- else
- wild_map(y, x).entrance = 0
- end
-end
-
function dungeon(d_idx)
return d_info[1 + d_idx]
end
-function wild_feat(wild)
- return wf_info[1 + wild.feat]
-end
-
function explode_dir(dir)
return ddy[dir + 1], ddx[dir + 1]
end
-
--- Place a trap for a specific level
-function place_trap(y, x, level)
- local old_dun = dun_level
- dun_level = level
- %place_trap(y, x)
- dun_level = old_dun
-end
diff --git a/lib/mods/theme/core/dungeon.lua b/lib/mods/theme/core/dungeon.lua
index ba4fd38a..13030eac 100644
--- a/lib/mods/theme/core/dungeon.lua
+++ b/lib/mods/theme/core/dungeon.lua
@@ -1,29 +1,9 @@
-- Internal lua file in charge of dungeon stuff
-function place_dungeon(y, x, d_idx)
- if d_idx then
- wild_map(y, x).entrance = 1000 + d_idx
- else
- wild_map(y, x).entrance = 0
- end
-end
-
function dungeon(d_idx)
return d_info[1 + d_idx]
end
-function wild_feat(wild)
- return wf_info[1 + wild.feat]
-end
-
function explode_dir(dir)
return ddy[dir + 1], ddx[dir + 1]
end
-
--- Place a trap for a specific level
-function place_trap(y, x, level)
- local old_dun = dun_level
- dun_level = level
- %place_trap(y, x)
- dun_level = old_dun
-end