[Hide Content]From d10380922168e0e393a9464321e01f68e4e2dd40 Mon Sep 17 00:00:00 2001
From: gammafunk <gammafunk@gmail.com>
Date: Fri, 29 Nov 2013 02:31:27 -0600
Subject: [PATCH] Allow you.gold to be read in clua
---
crawl-ref/source/l_you.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/crawl-ref/source/l_you.cc b/crawl-ref/source/l_you.cc
index e57e4b3..01585d1 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 },
--
1.7.11.5