diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-02-24 11:13:12 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-02-24 11:13:12 +0000 |
commit | 8674d7ae28e958983128c045fb8504b037785da7 (patch) | |
tree | f703dc699ab5ad333b7d1f3cc48dd9cf6c043fb0 /crawl-ref/source/spells3.cc | |
parent | 822ac3ae2e353dc3ba45be39922d6e24d64791b0 (diff) | |
download | crawl-ref-8674d7ae28e958983128c045fb8504b037785da7.tar.gz crawl-ref-8674d7ae28e958983128c045fb8504b037785da7.zip |
Monster attack refactoring. Likely to be buggy.
Fixed tracer explosion beams generating clouds.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@959 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r-- | crawl-ref/source/spells3.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index 82905972ff..5adb01c171 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -263,11 +263,13 @@ int airstrike(int power) hurted = random2( random2(12) + (random2(power) / 6) + (random2(power) / 7) ); - hurted -= random2(1 + monster->armour_class); - if ( mons_flies(monster) ) { - hurted *= 3; - hurted /= 2; - } + hurted -= random2(1 + monster->ac); + + if ( mons_flies(monster) ) + { + hurted *= 3; + hurted /= 2; + } if (hurted < 0) hurted = 0; |