summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/shopping.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/shopping.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/shopping.cc')
-rw-r--r--crawl-ref/source/shopping.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc
index 627874cd5d..fce0a7cab6 100644
--- a/crawl-ref/source/shopping.cc
+++ b/crawl-ref/source/shopping.cc
@@ -1113,6 +1113,9 @@ unsigned int item_value( item_def item, bool ident )
case POT_MAGIC:
valued += 120;
break;
+ case POT_RESISTANCE:
+ valued += 70;
+ break;
case POT_INVISIBILITY:
valued += 55;
break;