summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-17 18:02:58 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-17 18:02:58 +0000
commitb305e13fcd4ff065144a40f7dd8a2d328b6fbdf5 (patch)
treecd95a7d6550b9093522cd17d09f00443e23b0eb6 /crawl-ref/source/fight.cc
parentf2cbb9bba137d6b0977f15c5f2b9949b916b5816 (diff)
downloadcrawl-ref-b305e13fcd4ff065144a40f7dd8a2d328b6fbdf5.tar.gz
crawl-ref-b305e13fcd4ff065144a40f7dd8a2d328b6fbdf5.zip
Add yet more minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7463 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index a2bf7c8bc1..67c88e6dd1 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -3602,11 +3602,11 @@ void melee_attack::mons_apply_attack_flavour(const mon_attack_def &attk)
case AF_ROT:
if (one_chance_in(20) || (damage_done > 2 && one_chance_in(3)))
- defender->rot( attacker, 2 + random2(3), damage_done > 5 );
+ defender->rot(attacker, 2 + random2(3), damage_done > 5);
break;
case AF_DISEASE:
- defender->sicken( 50 + random2(100) );
+ defender->sicken(50 + random2(100));
break;
case AF_FIRE:
@@ -3635,7 +3635,7 @@ void melee_attack::mons_apply_attack_flavour(const mon_attack_def &attk)
resist_adjust_damage(defender,
BEAM_COLD,
defender->res_cold(),
- atk->hit_dice + random2( 2 * atk->hit_dice ));
+ atk->hit_dice + random2(2 * atk->hit_dice));
if (needs_message && special_damage)
{
@@ -3652,7 +3652,7 @@ void melee_attack::mons_apply_attack_flavour(const mon_attack_def &attk)
defender,
BEAM_ELECTRICITY,
defender->res_elec(),
- atk->hit_dice + random2( atk->hit_dice / 2 ));
+ atk->hit_dice + random2(atk->hit_dice / 2));
if (defender->airborne())
special_damage = special_damage * 2 / 3;
@@ -3706,7 +3706,7 @@ void melee_attack::mons_apply_attack_flavour(const mon_attack_def &attk)
{
if (defender->atype() == ACT_PLAYER)
mprf("You feel less resilient.");
- defender->rot( attacker, 0, coinflip()? 2 : 1 );
+ defender->rot(attacker, 0, coinflip() ? 2 : 1);
}
}
break;
@@ -3767,7 +3767,7 @@ void melee_attack::mons_apply_attack_flavour(const mon_attack_def &attk)
if (one_chance_in(10)
|| (damage_done > 2 && one_chance_in(3)))
{
- defender->confuse( 1 + random2( 3 + atk->hit_dice ) );
+ defender->confuse(1 + random2(3 + atk->hit_dice));
}
break;
@@ -3819,7 +3819,7 @@ void melee_attack::mons_apply_attack_flavour(const mon_attack_def &attk)
void melee_attack::mons_perform_attack_rounds()
{
- const int nrounds = atk->has_hydra_multi_attack()? atk->number : 4;
+ const int nrounds = atk->has_hydra_multi_attack() ? atk->number : 4;
const coord_def pos = defender->pos();
// Melee combat, tell attacker to wield its melee weapon.