summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/exercise.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-10-15 01:55:59 +0200
committerAdam Borowski <kilobyte@angband.pl>2010-10-15 01:55:59 +0200
commit555734fcd3aef4c83605d70d0456dda28b7b5ace (patch)
tree9c34fe5bc58d5f3d4c0a7622045adc7aa1d17a98 /crawl-ref/source/exercise.cc
parentacf5187334f2cfb983a1a8de07d1e77f73e4283a (diff)
downloadcrawl-ref-555734fcd3aef4c83605d70d0456dda28b7b5ace.tar.gz
crawl-ref-555734fcd3aef4c83605d70d0456dda28b7b5ace.zip
Massive spacing fixes: "( spaces after parentheses )".
I did review it manually to find places where they made sense (like some tables), but for a massive sed job like this there might be places that I missed.
Diffstat (limited to 'crawl-ref/source/exercise.cc')
-rw-r--r--crawl-ref/source/exercise.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/exercise.cc b/crawl-ref/source/exercise.cc
index 5c2e2abf70..7f9a65006f 100644
--- a/crawl-ref/source/exercise.cc
+++ b/crawl-ref/source/exercise.cc
@@ -194,7 +194,7 @@ static void _exercise_spell(spell_type spell, bool success)
//jmf: evil evil evil -- exclude HOLY bit
disciplines &= (~SPTYP_HOLY);
- int skillcount = count_bits( disciplines );
+ int skillcount = count_bits(disciplines);
if (!success)
skillcount += 4 + random2(10);
@@ -207,7 +207,7 @@ static void _exercise_spell(spell_type spell, bool success)
std::vector<int> disc;
for (int ndx = 0; ndx <= SPTYP_LAST_EXPONENT; ndx++)
{
- if (!spell_typematch( spell, 1 << ndx ))
+ if (!spell_typematch(spell, 1 << ndx))
continue;
disc.push_back(ndx);
@@ -217,13 +217,13 @@ static void _exercise_spell(spell_type spell, bool success)
for (unsigned int k = 0; k < disc.size(); ++k)
{
int ndx = disc[k];
- skill = spell_type2skill( 1 << ndx );
+ skill = spell_type2skill(1 << ndx);
workout = (random2(1 + diff) / skillcount);
if (!one_chance_in(5))
workout++; // most recently, this was an automatic add {dlb}
- const int exercise_amount = exercise( skill, workout );
+ const int exercise_amount = exercise(skill, workout);
exer += exercise_amount;
}
@@ -231,7 +231,7 @@ static void _exercise_spell(spell_type spell, bool success)
Other recent formulae for the above:
* workout = random2(spell_difficulty(spell_ex)
- * (10 + (spell_difficulty(spell_ex) * 2 )) / 10 / spellsy + 1);
+ * (10 + (spell_difficulty(spell_ex) * 2)) / 10 / spellsy + 1);
* workout = spell_difficulty(spell_ex)
* (15 + spell_difficulty(spell_ex)) / 15 / spellsy;