diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-27 21:04:35 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-27 21:04:35 +0100 |
commit | 1068b22f3bd82d3de62d6ec512508e87d99fd715 (patch) | |
tree | 267f507f796ccb35c0a150a0a076fa12a04e829c /crawl-ref/source/clua.cc | |
parent | 0eb3a62c89500bc0bf48a6fdac65210b18a38e93 (diff) | |
download | crawl-ref-1068b22f3bd82d3de62d6ec512508e87d99fd715.tar.gz crawl-ref-1068b22f3bd82d3de62d6ec512508e87d99fd715.zip |
Actually load new moninf library.
As a first test that this works, add the following to your .crawlrc:
<
function test_mon()
local m = monster.get_monster_at(1, 0)
if m then
crawl.mpr("damage: " .. m:damage_desc())
else
crawl.mpr("no monster")
end
end
>
Bind the macro "===test_mon" to some key, stand to the left of a
creature, and invoke the macro.
Diffstat (limited to 'crawl-ref/source/clua.cc')
-rw-r--r-- | crawl-ref/source/clua.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc index 9cfdfabdab..ba6302a041 100644 --- a/crawl-ref/source/clua.cc +++ b/crawl-ref/source/clua.cc @@ -579,6 +579,7 @@ void CLua::init_lua() cluaopen_food(_state); cluaopen_crawl(_state); cluaopen_file(_state); + cluaopen_moninf(_state); cluaopen_options(_state); cluaopen_globals(_state); |