diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-19 18:28:10 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-19 18:28:10 +0000 |
commit | 0ee4e39dafef899a70bb27ad6604cc3e642f3753 (patch) | |
tree | a95bc3a892a9608e560940683f08f861078150d6 /crawl-ref/source/fight.cc | |
parent | ca67d2a004ef61ceb1ded81f435119caa53af1f2 (diff) | |
download | crawl-ref-0ee4e39dafef899a70bb27ad6604cc3e642f3753.tar.gz crawl-ref-0ee4e39dafef899a70bb27ad6604cc3e642f3753.zip |
Add more consistency fixes: the conduct for melee attacks on holy beings
now uses their hit dice, as beams do, and conducts for stabbing and
unchivalrous attacks give 4 points instead of 5 again, for consistency
with e.g. necromancy and unholy attacks.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5135 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r-- | crawl-ref/source/fight.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index 4d7b766c58..0f820c4f93 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -611,6 +611,9 @@ bool melee_attack::attack() conduct.set(DID_ATTACK_FRIEND, 5, true, def); else if (mons_neutral(def)) conduct.set(DID_ATTACK_NEUTRAL, 5, true, def); + + if (mons_is_holy(def)) + did_god_conduct(DID_ATTACK_HOLY, def->hit_dice, true, def); } // Trying to stay general beyond this point is a recipe for insanity. @@ -1184,9 +1187,6 @@ bool melee_attack::player_apply_aux_unarmed() if (damage_brand == SPWPN_VENOM && coinflip()) poison_monster( def, KC_YOU ); - if (mons_holiness(def) == MH_HOLY) - did_god_conduct(DID_ATTACK_HOLY, 1, true, def); - // normal vampiric biting attack, not if already got stabbing special if (damage_brand == SPWPN_VAMPIRICISM && you.species == SP_VAMPIRE && (!stab_attempt || stab_bonus <= 0)) @@ -1485,7 +1485,7 @@ int melee_attack::player_stab(int damage) exercise(SK_STABBING, 1 + random2avg(5, 4)); - did_god_conduct(DID_STABBING, 5); + did_god_conduct(DID_STABBING, 4); } else { @@ -1761,9 +1761,6 @@ void melee_attack::player_check_weapon_effects() // Returns true if the combat round should end here. bool melee_attack::player_monattk_hit_effects(bool mondied) { - if (!mondied && mons_holiness(def) == MH_HOLY) - did_god_conduct(DID_ATTACK_HOLY, 1, true, def); - player_check_weapon_effects(); // thirsty vampires will try to use a stabbing situation to draw blood @@ -2897,7 +2894,7 @@ void melee_attack::player_stab_check() } } - did_god_conduct(DID_UNCHIVALRIC_ATTACK, 5, true, def); + did_god_conduct(DID_UNCHIVALRIC_ATTACK, 4, true, def); } } |