summaryrefslogtreecommitdiff
path: root/lib/core
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-06-11 20:12:00 +0200
committerBardur Arantsson <bardur@scientician.net>2012-06-19 18:36:20 +0200
commit4b70bb3c271fc00a4e2246f31747a5020e72a9b2 (patch)
treea15d4ed1f5fcf0b9a65366562c2ade5e92a3da9a /lib/core
parenta00ed11376064353475b29c23b6deebc1cc1dfc9 (diff)
Lua: Remove dead building.lua
Diffstat (limited to 'lib/core')
-rw-r--r--lib/core/building.lua15
-rw-r--r--lib/core/init.lua1
2 files changed, 0 insertions, 16 deletions
diff --git a/lib/core/building.lua b/lib/core/building.lua
deleted file mode 100644
index 8e88888a..00000000
--- a/lib/core/building.lua
+++ /dev/null
@@ -1,15 +0,0 @@
-__building_actions = {}
-
-function add_building_action(a)
- assert(a.index, "No building action index")
- assert(a.action, "No building action action")
- __building_actions[a.index] = a.action
-end
-
-function __bact_activate(bact)
- if __building_actions[bact] then
- return __building_actions[bact]()
- end
-end
-
-add_hook_script(HOOK_BUILDING_ACTION, "__bact_activate", "__bact_activate")
diff --git a/lib/core/init.lua b/lib/core/init.lua
index de104e52..230a07a7 100644
--- a/lib/core/init.lua
+++ b/lib/core/init.lua
@@ -14,7 +14,6 @@ tome_dofile_anywhere(ANGBAND_DIR_CORE, "util.lua")
tome_dofile_anywhere(ANGBAND_DIR_CORE, "player.lua")
tome_dofile_anywhere(ANGBAND_DIR_CORE, "objects.lua")
tome_dofile_anywhere(ANGBAND_DIR_CORE, "monsters.lua")
-tome_dofile_anywhere(ANGBAND_DIR_CORE, "building.lua")
tome_dofile_anywhere(ANGBAND_DIR_CORE, "dungeon.lua")
-- The dofile functions for each patch