diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-04-06 15:11:18 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-04-07 15:28:26 +0200 |
commit | e620b7e9e0b6a70f4c350c84a7c18ea2b523eab4 (patch) | |
tree | 3a2cd292bbc33923219289a23e75eebf69536ce6 /src/lua_bind.c | |
parent | 8a0cd497bc0848adaefa56321321df7d0b19dd22 (diff) |
Lua: Refactor HOOK_PROCESS_WORLD code from corrupt.lua to C
Diffstat (limited to 'src/lua_bind.c')
-rw-r--r-- | src/lua_bind.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lua_bind.c b/src/lua_bind.c index e9eb95a0..b83fc190 100644 --- a/src/lua_bind.c +++ b/src/lua_bind.c @@ -854,3 +854,10 @@ bool_ drop_text_right(byte c, cptr str, int y, int o) } return FALSE; } + +void increase_mana(int delta) +{ + char buf[256]; + sprintf(buf, "increase_mana(%d)", delta); + exec_lua(buf); +} |