summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stuff.h
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-23 20:59:37 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-23 20:59:37 +0000
commitb97996cd4e4b7c117951a4adf7bb9b4b2ec61b98 (patch)
treef232c827dbf7b3d82bfa29562f8d3397b8edea31 /crawl-ref/source/stuff.h
parent1bfc2ce563b0f4c9f5928d3a942a1d04f2958ca6 (diff)
downloadcrawl-ref-b97996cd4e4b7c117951a4adf7bb9b4b2ec61b98.tar.gz
crawl-ref-b97996cd4e4b7c117951a4adf7bb9b4b2ec61b98.zip
Added potions of resistance, which give fire, electricity and cold resist for
10 + random2(40) turns. Rareness roughly equivalent to levitation. This is FR 1756363. The potion does *not* give MR. Rewrote some vampire potion handling, including some changes: e.g. vampires can now be paralysed by potions of paralysis (I don't see why they shouldn't be.) For now there is no status message for fire/cold resist; will change soon. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1918 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stuff.h')
-rw-r--r--crawl-ref/source/stuff.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/stuff.h b/crawl-ref/source/stuff.h
index 39fa0da021..8e1532a21a 100644
--- a/crawl-ref/source/stuff.h
+++ b/crawl-ref/source/stuff.h
@@ -37,6 +37,7 @@ int random_range(int low, int high);
int random_range(int low, int high, int nrolls);
int random_choose(int first, ...);
int random_choose_weighted(int weight, int first, ...);
+int weighted_random(const int weights[], unsigned int numweights);
unsigned long random_int();
int random2avg( int max, int rolls );
int bestroll(int max, int rolls);