diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-01 10:36:59 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-01 10:36:59 +0000 |
commit | 8e2be8ec8458f1e16873a6d12522e2b75683ba1d (patch) | |
tree | bae2c0f8ebb71e5426083aeeacc8bbd2cdb93c8a /crawl-ref/source/clua.cc | |
parent | ccbc07627fab658416bb3954325aac307c16d806 (diff) | |
download | crawl-ref-8e2be8ec8458f1e16873a6d12522e2b75683ba1d.tar.gz crawl-ref-8e2be8ec8458f1e16873a6d12522e2b75683ba1d.zip |
Added you.god() to Lua bindings.
[1595846] Fixed turnloss for evoking an item that's not evokable.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1498 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/clua.cc')
-rw-r--r-- | crawl-ref/source/clua.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc index 06a71f61c8..a35ddcacbf 100644 --- a/crawl-ref/source/clua.cc +++ b/crawl-ref/source/clua.cc @@ -665,6 +665,7 @@ LUARET1(you_turn_is_over, boolean, you.turn_is_over) LUARET1(you_name, string, you.your_name) LUARET1(you_race, string, species_name(you.species, you.experience_level)) LUARET1(you_class, string, get_class_name(you.char_class)) +LUARET1(you_god, string, god_name(you.religion)) LUARET2(you_hp, number, you.hp, you.hp_max) LUARET2(you_mp, number, you.magic_points, you.max_magic_points) LUARET1(you_hunger, string, hunger_level()) @@ -733,6 +734,7 @@ static const struct luaL_reg you_lib[] = { "name" , you_name }, { "race" , you_race }, { "class" , you_class }, + { "god" , you_god }, { "hp" , you_hp }, { "mp" , you_mp }, { "hunger" , you_hunger }, |