summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.h
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-05 17:55:42 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-05 17:55:42 +0000
commite63e7a7682cef5ad092c715ae602a8813886783a (patch)
treeab241bea3ef0dbaa93364339863c1709a608b71a /crawl-ref/source/mon-util.h
parentd3b7fd1f062b31f65e5a933efbf2f18f1e91dce0 (diff)
downloadcrawl-ref-e63e7a7682cef5ad092c715ae602a8813886783a.tar.gz
crawl-ref-e63e7a7682cef5ad092c715ae602a8813886783a.zip
Remove the M_WALL_SHIELDED flag. Instead, use the function
mons_is_wall_shielded() to determine whether a monster can pass through/be shielded by walls, as it's a more flexible approach. The function currently only checks for a monster class with a rock habitat, but it could be expanded to allow for other cases. Replace the M_WALL_SHIELDED flag with the M_INSUBSTANTIAL flag, and check for the latter instead of hardcoding a list of monsters in mons_is_insubstantial(). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3201 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mon-util.h')
-rw-r--r--crawl-ref/source/mon-util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-util.h b/crawl-ref/source/mon-util.h
index 076eb18c2c..4877271260 100644
--- a/crawl-ref/source/mon-util.h
+++ b/crawl-ref/source/mon-util.h
@@ -116,7 +116,7 @@ enum mons_class_flags
M_ARCHER = (1<<23), // gets various archery boosts
- M_WALL_SHIELDED = (1<<24), // Shielded from attacks if in wall
+ M_INSUBSTANTIAL = (1<<24), // is insubstantial
M_TWOWEAPON = (1<<25), // wields two weapons at once
@@ -622,6 +622,7 @@ bool mons_class_is_stationary(int mc);
bool mons_class_is_confusable(int mc);
bool mons_class_is_slowable(int mc);
bool mons_is_stationary(const monsters *mon);
+bool mons_is_wall_shielded(int mc);
bool mons_is_insubstantial(int mc);
bool mons_is_submerged( const monsters *mon );