From 942a2a13a9bbe4672247b37e58a53abfc4ca4db5 Mon Sep 17 00:00:00 2001 From: haranp Date: Thu, 29 Jan 2009 12:57:33 +0000 Subject: 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 --- crawl-ref/source/abl-show.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/abl-show.cc') 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; -- cgit v1.2.3-54-g00ecf