summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_you.cc
diff options
context:
space:
mode:
authorgammafunk <gammafunk@gmail.com>2013-11-29 02:31:27 -0600
committerNeil Moore <neil@s-z.org>2013-11-29 16:08:35 -0500
commit178237010abcf29e10c2bc6522291d05aeccf0f7 (patch)
tree82136c18f475ed55d2b63add9c26cacdabef3293 /crawl-ref/source/l_you.cc
parent917cfcaed462c99f706a045cb60e5ce15b93b19d (diff)
downloadcrawl-ref-178237010abcf29e10c2bc6522291d05aeccf0f7.tar.gz
crawl-ref-178237010abcf29e10c2bc6522291d05aeccf0f7.zip
Allow you.gold to be read in clua
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 e57e4b32ae..01585d19cd 100644
--- a/crawl-ref/source/l_you.cc
+++ b/crawl-ref/source/l_you.cc
@@ -97,6 +97,7 @@ LUARET2(you_hp, number, you.hp, you.hp_max)
LUARET2(you_mp, number, you.magic_points, you.max_magic_points)
LUARET1(you_hunger, number, you.hunger_state)
LUARET1(you_hunger_name, string, hunger_level())
+LUARET1(you_gold, number, you.gold)
LUARET2(you_strength, number, you.strength(false), you.max_strength())
LUARET2(you_intelligence, number, you.intel(false), you.max_intel())
LUARET2(you_dexterity, number, you.dex(false), you.max_dex())
@@ -422,6 +423,7 @@ static const struct luaL_reg you_clib[] =
{ "genus" , l_you_genus },
{ "wizard" , you_wizard },
{ "god" , you_god },
+ { "gold" , you_gold },
{ "good_god" , you_good_god },
{ "evil_god" , you_evil_god },
{ "hp" , you_hp },