summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_you.cc
diff options
context:
space:
mode:
authorelliptic <hyperelliptical@gmail.com>2014-02-23 01:52:17 -0500
committerelliptic <hyperelliptical@gmail.com>2014-02-23 01:52:17 -0500
commitc3339f3dff13a7f38603606179e9171ac66d8863 (patch)
tree006a0b3cc5caf251b812bc725b7293886ef2f8de /crawl-ref/source/l_you.cc
parentf9284b99d6b4095b47c5184361a61889dc7fbf29 (diff)
downloadcrawl-ref-c3339f3dff13a7f38603606179e9171ac66d8863.tar.gz
crawl-ref-c3339f3dff13a7f38603606179e9171ac66d8863.zip
Add you.anchored() lua for dimension anchor status.
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 60ada5d5cf..0660081b6f 100644
--- a/crawl-ref/source/l_you.cc
+++ b/crawl-ref/source/l_you.cc
@@ -136,6 +136,7 @@ LUARET1(you_hasted, boolean, you.duration[DUR_HASTE])
LUARET1(you_slowed, boolean, you.duration[DUR_SLOW])
LUARET1(you_exhausted, boolean, you.duration[DUR_EXHAUSTED])
LUARET1(you_teleporting, boolean, you.duration[DUR_TELEPORT])
+LUARET1(you_anchored, boolean, you.duration[DUR_DIMENSION_ANCHOR])
LUARET1(you_poisoned, boolean, you.duration[DUR_POISONING])
LUARET1(you_invisible, boolean, you.duration[DUR_INVIS])
LUARET1(you_mesmerised, boolean, you.duration[DUR_MESMERISED])
@@ -480,6 +481,7 @@ static const struct luaL_reg you_clib[] =
{ "slowed", you_slowed },
{ "exhausted", you_exhausted },
{ "teleporting", you_teleporting },
+ { "anchored", you_anchored },
{ "poisoned", you_poisoned },
{ "invisible", you_invisible },
{ "mesmerised", you_mesmerised },