summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-info.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-01-21 21:35:23 -0700
committerSteve Melenchuk <smelenchuk@gmail.com>2014-01-21 22:11:39 -0700
commit2cf8d755b10f8c80412351ebfb424485cc82f3d9 (patch)
treedcd9b6619a1a77936a38640159ae875f20f7063c /crawl-ref/source/mon-info.cc
parentce86bbf1374fe8894466314c116b39bd0b2fbf3b (diff)
downloadcrawl-ref-2cf8d755b10f8c80412351ebfb424485cc82f3d9.tar.gz
crawl-ref-2cf8d755b10f8c80412351ebfb424485cc82f3d9.zip
Demonspawn warmonger: Sap Magic.
Based on Punishment of Excess from the proposal. Casting spells while afflicted by this hex progressively hinders your spellcasting success (or adds antimagic enchantment levels if you are a monster). Technically this could be extended to have an effect specific to individual spell schools, but that would result in a lot of duplication of durations and the like.
Diffstat (limited to 'crawl-ref/source/mon-info.cc')
-rw-r--r--crawl-ref/source/mon-info.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-info.cc b/crawl-ref/source/mon-info.cc
index 011a059d83..bc80eaa4eb 100644
--- a/crawl-ref/source/mon-info.cc
+++ b/crawl-ref/source/mon-info.cc
@@ -194,6 +194,8 @@ static monster_info_flags ench_to_mb(const monster& mons, enchant_type ench)
return MB_FROZEN;
case ENCH_BLACK_MARK:
return MB_BLACK_MARK;
+ case ENCH_SAP_MAGIC:
+ return MB_SAP_MAGIC;
default:
return NUM_MB_FLAGS;
}
@@ -1583,6 +1585,8 @@ vector<string> monster_info::attributes() const
v.push_back("encased in ice");
if (is(MB_BLACK_MARK))
v.push_back("absorbing vital energies");
+ if (is(MB_SAP_MAGIC))
+ v.push_back("magic-sapped");
return v;
}