From 57833f7874b11ac717bad1ba44518bce57ab7fb5 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Thu, 11 Oct 2007 17:12:58 +0000 Subject: Upped Beogh weapon damage bonus. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2435 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/fight.cc | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/fight.cc') 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(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()) -- cgit v1.2.3-54-g00ecf