diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2012-04-05 00:07:18 +0200 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2012-04-05 00:58:17 +0200 |
commit | dca6507ea3f717bfa64cf64c98d38998bb824907 (patch) | |
tree | 2c6e4296776e018574468bb809ad02f445720c50 /crawl-ref/source/l_crawl.cc | |
parent | db1e54f8ecda28345aed49f8a40f9c8d15b3d50c (diff) | |
download | crawl-ref-dca6507ea3f717bfa64cf64c98d38998bb824907.tar.gz crawl-ref-dca6507ea3f717bfa64cf64c98d38998bb824907.zip |
A lua hook for div_rand_round.
Diffstat (limited to 'crawl-ref/source/l_crawl.cc')
-rw-r--r-- | crawl-ref/source/l_crawl.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/l_crawl.cc b/crawl-ref/source/l_crawl.cc index 3fa39f1155..6765ce9bb3 100644 --- a/crawl-ref/source/l_crawl.cc +++ b/crawl-ref/source/l_crawl.cc @@ -643,6 +643,8 @@ LUARET1(crawl_roll_dice, number, : roll_dice(luaL_checkint(ls, 1), luaL_checkint(ls, 2))) LUARET1(crawl_x_chance_in_y, boolean, x_chance_in_y(luaL_checkint(ls, 1), luaL_checkint(ls, 2))) +LUARET1(crawl_div_rand_round, number, div_rand_round(luaL_checkint(ls, 1), + luaL_checkint(ls, 2))) static int crawl_is_tiles(lua_State *ls) { @@ -848,6 +850,7 @@ static const struct luaL_reg crawl_clib[] = { "x_chance_in_y", crawl_x_chance_in_y }, { "random_range", crawl_random_range }, { "random_element", crawl_random_element }, + { "div_rand_round", crawl_div_rand_round }, { "redraw_screen", crawl_redraw_screen }, { "c_input_line", crawl_c_input_line}, { "getch", crawl_getch }, |