diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-01 19:34:49 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-01 19:34:49 +0000 |
commit | 1ba8b7b47de3e82931d0c26ec2d87395162b48b0 (patch) | |
tree | 73461b36fa06c9b9b2e347442592232782a2f879 /crawl-ref/source/abl-show.cc | |
parent | 030f8cd07a95993151d3c30142bf0522229df831 (diff) | |
download | crawl-ref-1ba8b7b47de3e82931d0c26ec2d87395162b48b0.tar.gz crawl-ref-1ba8b7b47de3e82931d0c26ec2d87395162b48b0.zip |
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
Diffstat (limited to 'crawl-ref/source/abl-show.cc')
-rw-r--r-- | crawl-ref/source/abl-show.cc | 13 |
1 files changed, 7 insertions, 6 deletions
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<talent> 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); } } |