summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_you.cc
diff options
context:
space:
mode:
authorelliptic <hyperelliptical@gmail.com>2012-09-25 14:43:45 -0400
committerelliptic <hyperelliptical@gmail.com>2012-09-25 14:44:51 -0400
commit32b1460edce842c8b04af8500cd8703335687d95 (patch)
treecff8bec9b676622c2b46279b4e5783efce5ebc60 /crawl-ref/source/l_you.cc
parentfdeb6087f7a768b589e51b53368cb81dfdfcf484 (diff)
downloadcrawl-ref-32b1460edce842c8b04af8500cd8703335687d95.tar.gz
crawl-ref-32b1460edce842c8b04af8500cd8703335687d95.zip
Player Lua: you.silencing().
Previously you could just tell whether your square was silenced, not whether it was you doing the silencing.
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 1adff81d5a..6a26fbbbca 100644
--- a/crawl-ref/source/l_you.cc
+++ b/crawl-ref/source/l_you.cc
@@ -139,6 +139,7 @@ LUARET1(you_mesmerised, boolean, you.duration[DUR_MESMERISED])
LUARET1(you_nauseous, boolean, you.duration[DUR_NAUSEA])
LUARET1(you_on_fire, boolean, you.duration[DUR_LIQUID_FLAMES])
LUARET1(you_petrifying, boolean, you.duration[DUR_PETRIFYING])
+LUARET1(you_silencing, boolean, you.duration[DUR_SILENCE])
LUARET1(you_rotting, boolean, you.rotting)
LUARET1(you_silenced, boolean, silenced(you.pos()))
LUARET1(you_sick, boolean, you.disease)
@@ -393,6 +394,7 @@ static const struct luaL_reg you_clib[] =
{ "nauseous", you_nauseous },
{ "on_fire", you_on_fire },
{ "petrifying", you_petrifying },
+ { "silencing", you_silencing },
{ "rotting", you_rotting },
{ "silenced", you_silenced },
{ "sick", you_sick },