summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-11 17:12:58 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-11 17:12:58 +0000
commit57833f7874b11ac717bad1ba44518bce57ab7fb5 (patch)
treef3bc69a8ad96151821c236fce78128c7a5a8a08b /crawl-ref/source/fight.cc
parent8de5316035f791bf6ad2eeb1c94432a5bb337a56 (diff)
downloadcrawl-ref-57833f7874b11ac717bad1ba44518bce57ab7fb5.tar.gz
crawl-ref-57833f7874b11ac717bad1ba44518bce57ab7fb5.zip
Upped Beogh weapon damage bonus.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2435 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/fight.cc')
-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())