diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-20 10:07:45 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-20 10:07:45 +0000 |
commit | 82abef2e72f839e3d3b75ec771cdfe8219761b20 (patch) | |
tree | 242d406f409e94f250fc2f3af1d60e9599dd7268 /crawl-ref/source/mon-util.h | |
parent | d7f1dd21aacab1548caf9315b035a5cedab29c5f (diff) | |
download | crawl-ref-82abef2e72f839e3d3b75ec771cdfe8219761b20.tar.gz crawl-ref-82abef2e72f839e3d3b75ec771cdfe8219761b20.zip |
Fix monsters capable of LOS attack behind glass walls being ignored.
Fix monsters behind glass walls being autotargetted for spells that
need a path.
Fix spacing in spl-data.h, and add some comments about commenting
to coding_conventions.txt.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5148 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mon-util.h')
-rw-r--r-- | crawl-ref/source/mon-util.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/crawl-ref/source/mon-util.h b/crawl-ref/source/mon-util.h index d2b50087a4..2a75ff66c6 100644 --- a/crawl-ref/source/mon-util.h +++ b/crawl-ref/source/mon-util.h @@ -19,16 +19,16 @@ enum corpse_effect_type { - CE_NOCORPSE, // 0 - CE_CLEAN, // 1 - CE_CONTAMINATED, // 2 - CE_POISONOUS, // 3 - CE_HCL, // 4 - CE_MUTAGEN_RANDOM, // 5 - CE_MUTAGEN_GOOD, // 6 - may be worth implementing {dlb} - CE_MUTAGEN_BAD, // 7 - may be worth implementing {dlb} - CE_RANDOM, // 8 - not used, but may be worth implementing {dlb} - CE_ROTTEN = 50 // 50 - must remain at 50 for now {dlb} + CE_NOCORPSE, // 0 + CE_CLEAN, // 1 + CE_CONTAMINATED, // 2 + CE_POISONOUS, // 3 + CE_HCL, // 4 + CE_MUTAGEN_RANDOM, // 5 + CE_MUTAGEN_GOOD, // 6 - may be worth implementing {dlb} + CE_MUTAGEN_BAD, // 7 - may be worth implementing {dlb} + CE_RANDOM, // 8 - not used, but may be worth implementing {dlb} + CE_ROTTEN = 50 // 50 - must remain at 50 for now {dlb} }; enum gender_type @@ -596,16 +596,16 @@ bool ms_direct_nasty(spell_type monspell); /* *********************************************************************** * called from: monstuff * *********************************************************************** */ -bool ms_requires_tracer(spell_type mons_spell); bool ms_useful_fleeing_out_of_sight( const monsters *mon, spell_type monspell ); bool ms_quick_get_away( const monsters *mon, spell_type monspell ); bool ms_waste_of_time( const monsters *mon, spell_type monspell ); bool ms_low_hitpoint_cast( const monsters *mon, spell_type monspell ); +bool mons_is_magic_user( const monsters *mon ); +bool mons_has_los_ability( int mclass ); bool mons_has_ranged_spell( const monsters *mon ); bool mons_has_ranged_attack( const monsters *mon ); -bool mons_is_magic_user( const monsters *mon ); // last updated 06mar2001 (gdl) /* *********************************************************************** |