diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-23 18:20:57 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-23 18:20:57 +0000 |
commit | e676769f64300c5da6daf5afbb1b27347060a5bb (patch) | |
tree | 4e12c1df76c6c68e25ea0f92652d036c39d847bb /crawl-ref/source/message.cc | |
parent | ea9a4edf153660b7feb11b085dd308d4e3b84b60 (diff) | |
download | crawl-ref-e676769f64300c5da6daf5afbb1b27347060a5bb.tar.gz crawl-ref-e676769f64300c5da6daf5afbb1b27347060a5bb.zip |
Made trap ammo dependent on T&D.
Old: 11 + G(1/3), bounded at 20 (G is the geometric distribution.)
New: 10 + random2(T&D skill).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1353 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/message.cc')
-rw-r--r-- | crawl-ref/source/message.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/message.cc b/crawl-ref/source/message.cc index 6a1421e701..0438fb3c0f 100644 --- a/crawl-ref/source/message.cc +++ b/crawl-ref/source/message.cc @@ -250,6 +250,14 @@ static void do_message_print( int channel, int param, mpr(buff, channel, param); } +void mprf( int channel, int param, const char *format, ... ) +{ + va_list argp; + va_start( argp, format ); + do_message_print( channel, param, format, argp ); + va_end( argp ); +} + void mprf( int channel, const char *format, ... ) { va_list argp; |