summaryrefslogtreecommitdiff
path: root/src/lua_bind.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua_bind.c')
-rw-r--r--src/lua_bind.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lua_bind.c b/src/lua_bind.c
index 00a0e25b..765b8072 100644
--- a/src/lua_bind.c
+++ b/src/lua_bind.c
@@ -608,6 +608,11 @@ void desc_god(int g_idx, int d, char *desc)
strncpy(deity_info[g_idx].desc[d], desc, 79);
}
+int get_lua_int(cptr name)
+{
+ return exec_lua(format("return %s", name));
+}
+
static int get_god_theme(cptr name)
{
if (game_module_idx == MODULE_THEME)