diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-24 14:11:22 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-24 14:11:22 +0000 |
commit | 22f5db88e448378b78770430edc5fd8e1bcb9a48 (patch) | |
tree | f01f63abba6ce1f19422c6687ae9dc1324cab285 /crawl-ref/source/fight.cc | |
parent | e11dba64d54f66fca604f0484ada549fb19db709 (diff) | |
download | crawl-ref-22f5db88e448378b78770430edc5fd8e1bcb9a48.tar.gz crawl-ref-22f5db88e448378b78770430edc5fd8e1bcb9a48.zip |
A few simple fixes.
* Add zero level invocations to Trog and Ely's religion screens
* Demonspawn get 0-2 additional damage for demonic weapons
(similar to MD + dwarven weapons)
* Darts and Throwing don't crosstrain anymore
* Don't offer "inscribe items" text during tutorial.
* Cleanup and minor fixes of tutorial
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2187 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r-- | crawl-ref/source/fight.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index 6b500c2af4..adda527f80 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -1127,6 +1127,14 @@ int melee_attack::player_apply_weapon_bonuses(int damage) if (coinflip()) damage++; } + + if (you.species == SP_DEMONSPAWN + && (weapon->sub_type == WPN_DEMON_BLADE || + weapon->sub_type == WPN_DEMON_WHIP || + weapon->sub_type == WPN_DEMON_TRIDENT)) + { + damage += random2(3); + } } return (damage); @@ -2322,7 +2330,7 @@ int melee_attack::player_to_hit(bool random_factor) { your_to_hit++; } - + } else if (item_is_staff( *weapon )) { |