From 1068b22f3bd82d3de62d6ec512508e87d99fd715 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Tue, 27 Oct 2009 21:04:35 +0100 Subject: 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. --- crawl-ref/source/clua.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'crawl-ref/source/clua.cc') 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); -- cgit v1.2.3-54-g00ecf