diff options
-rw-r--r-- | src/types.h | 5 | ||||
-rw-r--r-- | src/xtra2.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/types.h b/src/types.h index c9727518..82b4890e 100644 --- a/src/types.h +++ b/src/types.h @@ -2271,6 +2271,11 @@ struct hook_end_turn_in { bool_ is_quest; }; +typedef struct hook_player_level_in hook_player_level_in; +struct hook_player_level_in { + int gained_levels; +}; + /* * Structure for the "quests" */ 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 */ |