summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
diff options
context:
space:
mode:
authorHercules.ws <dev@herc.ws>2017-07-11 12:55:56 +0200
committerHerculesWSAPI <dev@herc.ws>2017-07-11 12:55:56 +0200
commitc1e48f9f96ebd67d42fc2146867a4b78b5529b38 (patch)
tree4565d3ccc0a92744608c2c4422b3efaae8f30ade /src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
parentaaa2b237b4b24d0565afd375046dd7f4480d91f1 (diff)
downloadhercules-c1e48f9f96ebd67d42fc2146867a4b78b5529b38.tar.gz
hercules-c1e48f9f96ebd67d42fc2146867a4b78b5529b38.tar.bz2
hercules-c1e48f9f96ebd67d42fc2146867a4b78b5529b38.tar.xz
hercules-c1e48f9f96ebd67d42fc2146867a4b78b5529b38.zip
HPM Hooks Update
Signed-off-by: HerculesWSAPI <dev@herc.ws>
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_map.Hooks.inc')
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.Hooks.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
index 4bd397240..3bde41022 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -60383,15 +60383,15 @@ int HP_quest_pc_login(struct map_session_data *sd) {
}
return retVal___;
}
-int HP_quest_add(struct map_session_data *sd, int quest_id) {
+int HP_quest_add(struct map_session_data *sd, int quest_id, unsigned int time_limit) {
int hIndex = 0;
int retVal___ = 0;
if (HPMHooks.count.HP_quest_add_pre > 0) {
- int (*preHookFunc) (struct map_session_data **sd, int *quest_id);
+ int (*preHookFunc) (struct map_session_data **sd, int *quest_id, unsigned int *time_limit);
*HPMforce_return = false;
for (hIndex = 0; hIndex < HPMHooks.count.HP_quest_add_pre; hIndex++) {
preHookFunc = HPMHooks.list.HP_quest_add_pre[hIndex].func;
- retVal___ = preHookFunc(&sd, &quest_id);
+ retVal___ = preHookFunc(&sd, &quest_id, &time_limit);
}
if (*HPMforce_return) {
*HPMforce_return = false;
@@ -60399,13 +60399,13 @@ int HP_quest_add(struct map_session_data *sd, int quest_id) {
}
}
{
- retVal___ = HPMHooks.source.quest.add(sd, quest_id);
+ retVal___ = HPMHooks.source.quest.add(sd, quest_id, time_limit);
}
if (HPMHooks.count.HP_quest_add_post > 0) {
- int (*postHookFunc) (int retVal___, struct map_session_data *sd, int quest_id);
+ int (*postHookFunc) (int retVal___, struct map_session_data *sd, int quest_id, unsigned int time_limit);
for (hIndex = 0; hIndex < HPMHooks.count.HP_quest_add_post; hIndex++) {
postHookFunc = HPMHooks.list.HP_quest_add_post[hIndex].func;
- retVal___ = postHookFunc(retVal___, sd, quest_id);
+ retVal___ = postHookFunc(retVal___, sd, quest_id, time_limit);
}
}
return retVal___;