summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.h
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-05 17:51:39 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-05 17:54:28 -0600
commit9a89cf75dfd5721fb830d089dfc5141eb2a210e6 (patch)
treed481705997ecce0b1befadb243912a1e4ac10ef9 /crawl-ref/source/mon-util.h
parent5b5a6bc82d69360a130837a24ac56432a9ef6b6d (diff)
downloadcrawl-ref-9a89cf75dfd5721fb830d089dfc5141eb2a210e6.tar.gz
crawl-ref-9a89cf75dfd5721fb830d089dfc5141eb2a210e6.zip
Clean up flight status checks for monsters.
In mon-data.h, remove the M_FLIES and M_LEVITATE flags, and instead use a flight_type variable indicating flight status.
Diffstat (limited to 'crawl-ref/source/mon-util.h')
-rw-r--r--crawl-ref/source/mon-util.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/crawl-ref/source/mon-util.h b/crawl-ref/source/mon-util.h
index ebf8aae30e..21c57dd4d5 100644
--- a/crawl-ref/source/mon-util.h
+++ b/crawl-ref/source/mon-util.h
@@ -110,11 +110,12 @@ enum mons_class_flags
M_SPELLCASTER = (1<< 0), // any non-physical-attack powers,
M_ACTUAL_SPELLS = (1<< 1), // monster is a wizard,
- M_PRIEST = (1<< 2), // monster is a priest
+ M_PRIEST = (1<< 2), // monster is a priest,
M_FIGHTER = (1<< 3), // monster is skilled fighter
- M_FLIES = (1<< 4), // will crash to ground if paralysed?
- M_LEVITATE = (1<< 5), // ... but not if this is set
+ M_UNUSED_1 = (1<< 4),
+ M_UNUSED_2 = (1<< 5),
+
M_INVIS = (1<< 6), // is created invis
M_SEE_INVIS = (1<< 7), // can see invis
M_SENSE_INVIS = (1<< 8), // can sense invisible things
@@ -443,11 +444,11 @@ struct monsterentry
char ev; // evasion
mon_spellbook_type sec;
corpse_effect_type corpse_thingy;
- zombie_size_type zombie_size;
- shout_type shouts;
- mon_intel_type intel;
- habitat_type habitat;
-
+ zombie_size_type zombie_size;
+ shout_type shouts;
+ mon_intel_type intel;
+ habitat_type habitat;
+ flight_type fly;
char speed; // How quickly speed_increment increases
mon_energy_usage energy_usage; // And how quickly it decreases
mon_itemuse_type gmon_use;