summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/clua.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-12 10:00:32 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-12 10:00:32 +0000
commit205fef63161ab4933da846e55f9116fa1248ce8f (patch)
tree717d7a27d46f4fe37dc29b85f4ee3a535401e839 /crawl-ref/source/clua.cc
parent74c498a25a9ea3e5d03a41e6cc0e9822e94d5c9c (diff)
downloadcrawl-ref-205fef63161ab4933da846e55f9116fa1248ce8f.tar.gz
crawl-ref-205fef63161ab4933da846e55f9116fa1248ce8f.zip
[1752315] Made zombie orc entry to D:11-only and reduced the frequency of
wraiths and orc sorcerers. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1845 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/clua.cc')
-rw-r--r--crawl-ref/source/clua.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc
index 742a92a093..2c20e1592b 100644
--- a/crawl-ref/source/clua.cc
+++ b/crawl-ref/source/clua.cc
@@ -1841,6 +1841,10 @@ static int crawl_split(lua_State *ls)
LUARET1(crawl_game_started, boolean, crawl_state.need_save)
LUARET1(crawl_random2, number, random2( luaL_checkint(ls, 1) ))
+LUARET1(crawl_one_chance_in, boolean, one_chance_in( luaL_checkint(ls, 1) ))
+LUARET1(crawl_random2avg, number,
+ random2avg( luaL_checkint(ls, 1), luaL_checkint(ls, 2) ))
+LUARET1(crawl_coinflip, boolean, coinflip())
static int crawl_err_trace(lua_State *ls)
{
@@ -1880,6 +1884,9 @@ static const struct luaL_reg crawl_lib[] =
{ "mpr", crawl_mpr },
{ "mesclr", crawl_mesclr },
{ "random2", crawl_random2 },
+ { "one_chance_in", crawl_one_chance_in },
+ { "random2avg" , crawl_random2avg },
+ { "coinflip", crawl_coinflip },
{ "redraw_screen", crawl_redraw_screen },
{ "input_line", crawl_input_line },
{ "c_input_line", crawl_c_input_line},