diff options
author | elliptic <hyperelliptical@gmail.com> | 2014-03-06 11:49:22 -0500 |
---|---|---|
committer | elliptic <hyperelliptical@gmail.com> | 2014-03-06 11:50:03 -0500 |
commit | c0d0271db07e0d6829dc89ff9ab098783a263c12 (patch) | |
tree | b8d7457f1819cf7831bec9583e2fdf7a40c650d0 /crawl-ref/source/l_you.cc | |
parent | 16c2031d7bc2ee13c685bd2fe7ef3e9263175590 (diff) | |
download | crawl-ref-c0d0271db07e0d6829dc89ff9ab098783a263c12.tar.gz crawl-ref-c0d0271db07e0d6829dc89ff9ab098783a263c12.zip |
Add player lua to tell whether the player is rooted to the ground.
Diffstat (limited to 'crawl-ref/source/l_you.cc')
-rw-r--r-- | crawl-ref/source/l_you.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/l_you.cc b/crawl-ref/source/l_you.cc index 0660081b6f..37fff9c199 100644 --- a/crawl-ref/source/l_you.cc +++ b/crawl-ref/source/l_you.cc @@ -137,6 +137,7 @@ 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_rooted, boolean, you.duration[DUR_GRASPING_ROOTS]) LUARET1(you_poisoned, boolean, you.duration[DUR_POISONING]) LUARET1(you_invisible, boolean, you.duration[DUR_INVIS]) LUARET1(you_mesmerised, boolean, you.duration[DUR_MESMERISED]) @@ -482,6 +483,7 @@ static const struct luaL_reg you_clib[] = { "exhausted", you_exhausted }, { "teleporting", you_teleporting }, { "anchored", you_anchored }, + { "rooted", you_rooted }, { "poisoned", you_poisoned }, { "invisible", you_invisible }, { "mesmerised", you_mesmerised }, |