diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-06-08 19:36:07 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-06-08 19:36:07 +0200 |
commit | 4abf66423998e520ea81b6b4e7544a21e313d36b (patch) | |
tree | a75de461785ad7e047c3989ab3de8372a680cc4b /src/xtra2.c | |
parent | e88d49b8c45f429589018b84b219b80caa66d44b (diff) |
Lua: Implement new-style HOOK_PLAYER_LEVEL
Diffstat (limited to 'src/xtra2.c')
-rw-r--r-- | src/xtra2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xtra2.c b/src/xtra2.c index d78858b3..1569f442 100644 --- a/src/xtra2.c +++ b/src/xtra2.c @@ -2099,7 +2099,13 @@ void check_experience(void) /* Hook it! */ process_hooks(HOOK_PLAYER_LEVEL, "(d)", gained); + + { + hook_player_level_in in = { gained }; + process_hooks_new(HOOK_PLAYER_LEVEL, &in, NULL); + } } + /* * Advance experience levels and print experience */ |