diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-14 08:55:24 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-14 08:55:24 +0000 |
commit | 6dba2ac32df50d8a0d3628fbc65fb81825a96fdd (patch) | |
tree | c5db7daf782a95707f90fd4351e85c3dfa070b49 /crawl-ref/source/fight.cc | |
parent | 60f850418fc4a37a5f2eccec19a83065fa7769e5 (diff) | |
download | crawl-ref-6dba2ac32df50d8a0d3628fbc65fb81825a96fdd.tar.gz crawl-ref-6dba2ac32df50d8a0d3628fbc65fb81825a96fdd.zip |
Implemented Beogh, god of Orcs.
+ added information about random choice to newgame
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1585 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r-- | crawl-ref/source/fight.cc | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index f315f89b46..4e01f554f8 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -999,11 +999,19 @@ int melee_attack::player_apply_weapon_bonuses(int damage) } if (get_equip_race(*weapon) == ISFLAG_ORCISH - && you.species == SP_HILL_ORC && coinflip()) + && you.species == SP_HILL_ORC) + { + if (you.religion == GOD_BEOGH) + { + damage++; + } + + if (coinflip()) { damage++; } } + } return (damage); } @@ -2114,6 +2122,12 @@ int melee_attack::player_to_hit(bool random_factor) { your_to_hit += (random_factor && coinflip() ? 2 : 1); } + else if (get_equip_race(*weapon) == ISFLAG_ORCISH + && you.religion == GOD_BEOGH) + { + your_to_hit++; + } + } else if (item_is_staff( *weapon )) { |