diff options
author | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2009-11-04 20:09:46 +0530 |
---|---|---|
committer | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2009-11-04 20:15:34 +0530 |
commit | 9ad85435681ad82c7ef07d2083e40e525e2b0f55 (patch) | |
tree | 3b16cb1129c004ad90cce5c81486373557d5f272 /crawl-ref/source/enum.h | |
parent | f7c29d55ca91d539d64de5e120a5b2c301ccb938 (diff) | |
download | crawl-ref-9ad85435681ad82c7ef07d2083e40e525e2b0f55.tar.gz crawl-ref-9ad85435681ad82c7ef07d2083e40e525e2b0f55.zip |
Allow vaults to override monster spells with spells:<xyz>
Vaults can now override monster spell sets, or give non-casting monsters
spells, and mark monsters as wizard or priest types.
The M_ACTUAL_SPELLS, M_SPELLCASTER and M_PRIEST monster class flags are
converted into MF_* flags at monster creation/polymorph time, and only the
per-monster flags are checked when determining wizard/priestliness. See caveats
in level_design.txt.
Diffstat (limited to 'crawl-ref/source/enum.h')
-rw-r--r-- | crawl-ref/source/enum.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/crawl-ref/source/enum.h b/crawl-ref/source/enum.h index 02ad706fb2..c9b4d0e43a 100644 --- a/crawl-ref/source/enum.h +++ b/crawl-ref/source/enum.h @@ -2189,7 +2189,15 @@ enum monster_flag_type MF_NAME_MASK = 0x30000, MF_GOD_GIFT = 0x40000, // Is a god gift. MF_FLEEING_FROM_SANCTUARY = 0x80000, // Is running away from player sanctuary - MF_EXPLODE_KILL = 0x100000 // Is being killed with disintegration + MF_EXPLODE_KILL = 0x100000, // Is being killed with disintegration + + // These are based on the flags in monster class, but can be set for + // monsters that are not normally spellcasters (in vaults). + MF_SPELLCASTER = 0x200000, + MF_ACTUAL_SPELLS = 0x400000, // Can use spells and is a spellcaster for + // Trog purposes. + MF_PRIEST = 0x800000 // Is a priest (divine spells) + // for the conduct. }; // Adding slots breaks saves. YHBW. |