summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/clua.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-21 13:05:22 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-21 13:05:22 +0000
commita5f6b9ec2ffcbdebca189f4fed30b8f1e24727dc (patch)
treef05d20dcc0cf67a7f53b8fdaca9603f477b94db3 /crawl-ref/source/clua.cc
parent1f86ecd606f4f764b6ea347c64657ae1426668fe (diff)
downloadcrawl-ref-a5f6b9ec2ffcbdebca189f4fed30b8f1e24727dc.tar.gz
crawl-ref-a5f6b9ec2ffcbdebca189f4fed30b8f1e24727dc.zip
[1800206] Ghoul food cleanup (dolorous).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2504 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/clua.cc')
-rw-r--r--crawl-ref/source/clua.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc
index 1381c92314..67428db271 100644
--- a/crawl-ref/source/clua.cc
+++ b/crawl-ref/source/clua.cc
@@ -728,6 +728,7 @@ LUARET1(you_res_statdrain, number, player_sust_abil(false))
LUARET1(you_res_mutation, number, wearing_amulet(AMU_RESIST_MUTATION, false))
LUARET1(you_res_slowing, number, wearing_amulet(AMU_RESIST_SLOW, false))
LUARET1(you_gourmand, boolean, wearing_amulet(AMU_THE_GOURMAND, false))
+LUARET1(you_saprovorous, number, you.mutation[MUT_SAPROVOROUS])
LUARET1(you_levitating, boolean, you.flies() == FL_LEVITATE)
LUARET1(you_flying, boolean, you.flies() == FL_FLY)
LUARET1(you_transform, string, transform_name())
@@ -807,6 +808,7 @@ static const struct luaL_reg you_lib[] =
{ "res_statdrain", you_res_statdrain },
{ "res_mutation", you_res_mutation },
{ "res_slowing", you_res_slowing },
+ { "saprovorous", you_saprovorous },
{ "gourmand", you_gourmand },
{ "levitating", you_levitating },
{ "flying", you_flying },