From ee183b121218deff2df20e68d69f8220a32b9d8c Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Thu, 7 Jan 2010 23:09:38 +0100 Subject: Make unknown potions of rage override clarity. Drugs > being focused > anger. --- crawl-ref/source/player.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 52f577cc12..f5a0c2a852 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -5998,9 +5998,9 @@ void player::attacking(actor *other) } } -void player::go_berserk(bool intentional) +void player::go_berserk(bool intentional, bool potion) { - ::go_berserk(intentional); + ::go_berserk(intentional, potion); } bool player::can_go_berserk() const @@ -6008,9 +6008,9 @@ bool player::can_go_berserk() const return (can_go_berserk(false)); } -bool player::can_go_berserk(bool intentional) const +bool player::can_go_berserk(bool intentional, bool potion) const { - const bool verbose = intentional; + const bool verbose = intentional || potion; if (berserk()) { @@ -6046,7 +6046,7 @@ bool player::can_go_berserk(bool intentional) const return (false); } - if (!intentional && player_mental_clarity(true)) + if (!intentional && !potion && player_mental_clarity(true)) { if (verbose) { -- cgit v1.2.3-54-g00ecf