diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-07 20:27:45 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-07 20:27:45 +0000 |
commit | 5fa864a78e4ebd44189a31827edeead3f0c12597 (patch) | |
tree | 103a4942b363bcf3a5b021d831f572f439ceca09 /crawl-ref/source/mon-util.h | |
parent | 4a27714410c3f8f0f5113421a77e21a43242a0c2 (diff) | |
download | crawl-ref-5fa864a78e4ebd44189a31827edeead3f0c12597.tar.gz crawl-ref-5fa864a78e4ebd44189a31827edeead3f0c12597.zip |
Implemented Erik's invisibility proposal:
- M_SENSE_INVIS for perceptive monsters; split existing monsters with see
invisible into M_SEE_INVIS and M_SENSE_INVIS.
- Monsters that can't see invisible get to-hit penalties vs invisible players
and monsters in both melee and at range.
- Monsters that sense where you are know where to shoot and attack, but still
get to-hit penalties because they don't know exactly where you are.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1260 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mon-util.h')
-rw-r--r-- | crawl-ref/source/mon-util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-util.h b/crawl-ref/source/mon-util.h index 1317bf983a..df1add3afb 100644 --- a/crawl-ref/source/mon-util.h +++ b/crawl-ref/source/mon-util.h @@ -156,8 +156,8 @@ char mons_itemuse(int mc); /* *********************************************************************** * called from: beam - fight - monstuff - view * *********************************************************************** */ -char mons_see_invis( struct monsters *mon ); - +bool mons_see_invis(const monsters *mon); +bool mons_sense_invis(const monsters *mon); bool mons_monster_visible( struct monsters *mon, struct monsters *targ ); bool mons_player_visible( struct monsters *mon ); |