summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/fight.cc17
1 files changed, 14 insertions, 3 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index 69560b7187..5bf1d1b43f 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -1135,10 +1135,21 @@ int melee_attack::player_apply_weapon_bonuses(int damage)
if (get_equip_race(*weapon) == ISFLAG_ORCISH
&& you.species == SP_HILL_ORC)
{
- if (you.religion == GOD_BEOGH && !you.penance[GOD_BEOGH]
- && (you.piety > 80 || coinflip()))
+ if (you.religion == GOD_BEOGH && !you.penance[GOD_BEOGH])
{
- damage++;
+#ifdef DEBUG_DIAGNOSTICS
+ const int orig_damage = damage;
+#endif
+ if (you.piety > 80 || coinflip())
+ damage++;
+ damage +=
+ random2avg(
+ div_rand_round(
+ std::min(static_cast<int>(you.piety), 180), 33), 2);
+#ifdef DEBUG_DIAGNOSTICS
+ mprf(MSGCH_DIAGNOSTICS, "Damage: %d -> %d, Beogh bonus: %d",
+ orig_damage, damage, damage - orig_damage);
+#endif
}
if (coinflip())