summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abl-show.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-29 12:57:33 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-29 12:57:33 +0000
commit942a2a13a9bbe4672247b37e58a53abfc4ca4db5 (patch)
treead0535ec1aae75b8898eaa74b29836d53a2e157b /crawl-ref/source/abl-show.cc
parente5713cc0c97db9275c105a0a5a9e76c738fd0d25 (diff)
downloadcrawl-ref-942a2a13a9bbe4672247b37e58a53abfc4ca4db5.tar.gz
crawl-ref-942a2a13a9bbe4672247b37e58a53abfc4ca4db5.zip
Clean up potion effects as per [2544231]; get rid of the "power == 40 means
it's a potion" hack. Fix security issue in dumping code (never dump a string without using %s.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8846 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/abl-show.cc')
-rw-r--r--crawl-ref/source/abl-show.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/abl-show.cc b/crawl-ref/source/abl-show.cc
index ce87fb2f07..6c09050df8 100644
--- a/crawl-ref/source/abl-show.cc
+++ b/crawl-ref/source/abl-show.cc
@@ -1436,7 +1436,7 @@ static bool _do_ability(const ability_def& abil)
return (false);
}
- potion_effect( POT_INVISIBILITY, 2 * you.skills[SK_EVOCATIONS] + 5 );
+ potion_effect(POT_INVISIBILITY, 2 * you.skills[SK_EVOCATIONS] + 5);
contaminate_player( 1 + random2(3), true );
exercise( SK_EVOCATIONS, 1 );
break;
@@ -1447,7 +1447,7 @@ static bool _do_ability(const ability_def& abil)
break;
case ABIL_EVOKE_LEVITATE: // ring, boots, randarts
- potion_effect( POT_LEVITATION, 2 * you.skills[SK_EVOCATIONS] + 30 );
+ potion_effect(POT_LEVITATION, 2 * you.skills[SK_EVOCATIONS] + 30);
exercise( SK_EVOCATIONS, 1 );
break;
@@ -1601,12 +1601,12 @@ static bool _do_ability(const ability_def& abil)
break;
case ABIL_OKAWARU_MIGHT:
- potion_effect( POT_MIGHT, you.skills[SK_INVOCATIONS] * 8 );
+ potion_effect(POT_MIGHT, you.skills[SK_INVOCATIONS] * 8);
exercise(SK_INVOCATIONS, 1 + random2(3));
break;
case ABIL_OKAWARU_HASTE:
- potion_effect( POT_SPEED, you.skills[SK_INVOCATIONS] * 8 );
+ potion_effect(POT_SPEED, you.skills[SK_INVOCATIONS] * 8);
exercise(SK_INVOCATIONS, 3 + random2(7));
break;