summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_you.cc
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2009-11-20 11:59:24 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2009-11-20 11:59:24 +1000
commit0b2fbcfe0ddf85c085c3e71426782b886a6df870 (patch)
tree90989705fc243c9b6fe3caea032a335c3cb51f3e /crawl-ref/source/l_you.cc
parente388ec521134e04c429aaeb6865fd1a101873443 (diff)
downloadcrawl-ref-0b2fbcfe0ddf85c085c3e71426782b886a6df870.tar.gz
crawl-ref-0b2fbcfe0ddf85c085c3e71426782b886a6df870.zip
A dlua wrapper for you.piety.
Returns a numerical value of your piety.
Diffstat (limited to 'crawl-ref/source/l_you.cc')
-rw-r--r--crawl-ref/source/l_you.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/l_you.cc b/crawl-ref/source/l_you.cc
index 473ad41bf9..1848e06749 100644
--- a/crawl-ref/source/l_you.cc
+++ b/crawl-ref/source/l_you.cc
@@ -227,6 +227,8 @@ LUARET1(you_see_cell, boolean,
LUARET1(you_see_cell_no_trans, boolean,
you.see_cell_no_trans(coord_def(luaL_checkint(ls, 1), luaL_checkint(ls, 2))))
+LUARET1(you_piety, number, you.piety)
+
LUAFN(you_moveto)
{
const coord_def place(luaL_checkint(ls, 1), luaL_checkint(ls, 2));
@@ -356,6 +358,7 @@ static const struct luaL_reg you_dlib[] =
{ "gold", _you_gold },
{ "uniques", _you_uniques },
{ "die", _you_die },
+{ "piety", you_piety },
{ "in_branch", you_in_branch },
{ "shopping_list_has", _you_shopping_list_has },
{ "shopping_list_add", _you_shopping_list_add },