summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_you.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-04-28 19:47:40 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-04-28 20:27:01 +0200
commit36f3665044689f6d938d43cbbdbb7ea1a07b5069 (patch)
treecea74cb9c2957aab08b317581659618da6eb7fe9 /crawl-ref/source/l_you.cc
parentdcee277b902f42139cbae85eb15ad75a7c46ebb5 (diff)
downloadcrawl-ref-36f3665044689f6d938d43cbbdbb7ea1a07b5069.tar.gz
crawl-ref-36f3665044689f6d938d43cbbdbb7ea1a07b5069.zip
Djinn: stealing their magic makes them true monsters.
MP draining tends to be way powerful when applied to HP, thus we instead use monster-like antimagic. This applies to antimagic weapons as well, although those would work well even without this.
Diffstat (limited to 'crawl-ref/source/l_you.cc')
-rw-r--r--crawl-ref/source/l_you.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/l_you.cc b/crawl-ref/source/l_you.cc
index d583b09025..d17104a245 100644
--- a/crawl-ref/source/l_you.cc
+++ b/crawl-ref/source/l_you.cc
@@ -157,6 +157,7 @@ LUARET1(you_contaminated, number, get_contamination_level())
LUARET1(you_feel_safe, boolean, i_feel_safe())
LUARET1(you_deaths, number, you.deaths)
LUARET1(you_lives, number, you.lives)
+LUARET1(you_antimagic, boolean, you.duration[DUR_ANTIMAGIC])
LUARET1(you_where, string, level_id::current().describe().c_str())
LUARET1(you_branch, string, level_id::current().describe(false, false).c_str())
@@ -448,6 +449,7 @@ static const struct luaL_reg you_clib[] =
{ "burden", you_burden },
{ "constricted", you_constricted },
{ "constricting", you_constricting },
+ { "antimagic", you_antimagic },
{ "god_likes_fresh_corpses", you_god_likes_fresh_corpses },
{ "can_consume_corpses", you_can_consume_corpses },