summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dlua.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-20 00:40:33 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-20 00:44:30 +0200
commit378834da4d947a1a06c90ff3c20705b976714109 (patch)
tree30b18b1323dad6ded5ba020581a738ae411ebbaa /crawl-ref/source/dlua.cc
parenta4f9da4c2defdeedba6e172d8c8538f4b1aefe78 (diff)
downloadcrawl-ref-378834da4d947a1a06c90ff3c20705b976714109.tar.gz
crawl-ref-378834da4d947a1a06c90ff3c20705b976714109.zip
Split some parts of lua library "dgn" out.
Specifically, item and monster-related functions to l_dgnit.cc and l_dgnmon.cc.
Diffstat (limited to 'crawl-ref/source/dlua.cc')
-rw-r--r--crawl-ref/source/dlua.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/dlua.cc b/crawl-ref/source/dlua.cc
index 0775c2635d..a14b88937e 100644
--- a/crawl-ref/source/dlua.cc
+++ b/crawl-ref/source/dlua.cc
@@ -308,6 +308,8 @@ void init_dungeon_lua()
luaL_openlib(dlua, "dgn", dgn_lib, 0);
luaL_openlib(dlua, "dgn", dgn_event_lib, 0);
+ luaL_openlib(dlua, "dgn", dgn_item_lib, 0);
+ luaL_openlib(dlua, "dgn", dgn_mons_lib, 0);
// Add additional function to the Crawl module.
luaL_openlib(dlua, "crawl", crawl_lib, 0);
luaL_openlib(dlua, "file", file_lib, 0);
@@ -327,7 +329,8 @@ void init_dungeon_lua()
register_builder_funcs(dlua);
- register_mapdef_tables(dlua);
+ register_itemlist(dlua);
+ register_monslist(dlua);
}
// Can be called from within a debugger to look at the current Lua