From 1ba8b7b47de3e82931d0c26ec2d87395162b48b0 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Tue, 1 Jul 2008 19:34:49 +0000 Subject: Implement the rest of the starting set changes. I sure hope I got all of them. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6303 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/abl-show.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 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 2677d79ff5..2a73a67980 100644 --- a/crawl-ref/source/abl-show.cc +++ b/crawl-ref/source/abl-show.cc @@ -1055,9 +1055,10 @@ static bool _activate_talent(const talent& tal) } const bool success = _do_ability(abil); - if ( success ) + if (success) _pay_ability_costs(abil); - return success; + + return (success); } static bool _do_ability(const ability_def& abil) @@ -1720,7 +1721,7 @@ static bool _do_ability(const ability_def& abil) break; case ABIL_LUGONU_ABYSS_EXIT: - if ( you.level_type != LEVEL_ABYSS ) + if (you.level_type != LEVEL_ABYSS) { mpr("You aren't in the Abyss!"); return (false); // Don't incur costs. @@ -2162,12 +2163,12 @@ std::vector your_talents( bool check_confused ) if (!player_under_penance() && (!silenced(you.x_pos, you.y_pos) || you.religion == GOD_NEMELEX_XOBEH)) { - for ( int i = 0; i < MAX_GOD_ABILITIES; ++i ) + for (int i = 0; i < MAX_GOD_ABILITIES; ++i) { - if ( you.piety >= piety_breakpoint(i) ) + if (you.piety >= piety_breakpoint(i)) { const ability_type abil = god_abilities[you.religion][i]; - if ( abil != ABIL_NON_ABILITY ) + if (abil != ABIL_NON_ABILITY) _add_talent(talents, abil, check_confused); } } -- cgit v1.2.3-54-g00ecf