summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/clua.cc
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/clua.cc
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/clua.cc')
-rw-r--r--crawl-ref/source/clua.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc
index 7f735179b1..d0535fd03b 100644
--- a/crawl-ref/source/clua.cc
+++ b/crawl-ref/source/clua.cc
@@ -1212,6 +1212,7 @@ static int l_item_potion_type(lua_State *ls)
case POT_MAGIC:
case POT_RESTORE_ABILITIES:
case POT_CURE_MUTATION:
+ case POT_RESISTANCE:
val = 1;
break;