@@ -73497,6 +73497,85 @@ void HP_pc_crimson_marker_clear(struct map_session_data *sd) {
7349773497 }
7349873498 return;
7349973499}
73500+ bool HP_pc_is_own_skill(struct map_session_data *sd, uint16 skill_id) {
73501+ int hIndex = 0;
73502+ bool retVal___ = false;
73503+ if (HPMHooks.count.HP_pc_is_own_skill_pre > 0) {
73504+ bool (*preHookFunc) (struct map_session_data **sd, uint16 *skill_id);
73505+ *HPMforce_return = false;
73506+ for (hIndex = 0; hIndex < HPMHooks.count.HP_pc_is_own_skill_pre; hIndex++) {
73507+ preHookFunc = HPMHooks.list.HP_pc_is_own_skill_pre[hIndex].func;
73508+ retVal___ = preHookFunc(&sd, &skill_id);
73509+ }
73510+ if (*HPMforce_return) {
73511+ *HPMforce_return = false;
73512+ return retVal___;
73513+ }
73514+ }
73515+ {
73516+ retVal___ = HPMHooks.source.pc.is_own_skill(sd, skill_id);
73517+ }
73518+ if (HPMHooks.count.HP_pc_is_own_skill_post > 0) {
73519+ bool (*postHookFunc) (bool retVal___, struct map_session_data *sd, uint16 skill_id);
73520+ for (hIndex = 0; hIndex < HPMHooks.count.HP_pc_is_own_skill_post; hIndex++) {
73521+ postHookFunc = HPMHooks.list.HP_pc_is_own_skill_post[hIndex].func;
73522+ retVal___ = postHookFunc(retVal___, sd, skill_id);
73523+ }
73524+ }
73525+ return retVal___;
73526+ }
73527+ void HP_pc_clear_existing_cloneskill(struct map_session_data *sd, bool clear_vars) {
73528+ int hIndex = 0;
73529+ if (HPMHooks.count.HP_pc_clear_existing_cloneskill_pre > 0) {
73530+ void (*preHookFunc) (struct map_session_data **sd, bool *clear_vars);
73531+ *HPMforce_return = false;
73532+ for (hIndex = 0; hIndex < HPMHooks.count.HP_pc_clear_existing_cloneskill_pre; hIndex++) {
73533+ preHookFunc = HPMHooks.list.HP_pc_clear_existing_cloneskill_pre[hIndex].func;
73534+ preHookFunc(&sd, &clear_vars);
73535+ }
73536+ if (*HPMforce_return) {
73537+ *HPMforce_return = false;
73538+ return;
73539+ }
73540+ }
73541+ {
73542+ HPMHooks.source.pc.clear_existing_cloneskill(sd, clear_vars);
73543+ }
73544+ if (HPMHooks.count.HP_pc_clear_existing_cloneskill_post > 0) {
73545+ void (*postHookFunc) (struct map_session_data *sd, bool clear_vars);
73546+ for (hIndex = 0; hIndex < HPMHooks.count.HP_pc_clear_existing_cloneskill_post; hIndex++) {
73547+ postHookFunc = HPMHooks.list.HP_pc_clear_existing_cloneskill_post[hIndex].func;
73548+ postHookFunc(sd, clear_vars);
73549+ }
73550+ }
73551+ return;
73552+ }
73553+ void HP_pc_clear_existing_reproduceskill(struct map_session_data *sd, bool clear_vars) {
73554+ int hIndex = 0;
73555+ if (HPMHooks.count.HP_pc_clear_existing_reproduceskill_pre > 0) {
73556+ void (*preHookFunc) (struct map_session_data **sd, bool *clear_vars);
73557+ *HPMforce_return = false;
73558+ for (hIndex = 0; hIndex < HPMHooks.count.HP_pc_clear_existing_reproduceskill_pre; hIndex++) {
73559+ preHookFunc = HPMHooks.list.HP_pc_clear_existing_reproduceskill_pre[hIndex].func;
73560+ preHookFunc(&sd, &clear_vars);
73561+ }
73562+ if (*HPMforce_return) {
73563+ *HPMforce_return = false;
73564+ return;
73565+ }
73566+ }
73567+ {
73568+ HPMHooks.source.pc.clear_existing_reproduceskill(sd, clear_vars);
73569+ }
73570+ if (HPMHooks.count.HP_pc_clear_existing_reproduceskill_post > 0) {
73571+ void (*postHookFunc) (struct map_session_data *sd, bool clear_vars);
73572+ for (hIndex = 0; hIndex < HPMHooks.count.HP_pc_clear_existing_reproduceskill_post; hIndex++) {
73573+ postHookFunc = HPMHooks.list.HP_pc_clear_existing_reproduceskill_post[hIndex].func;
73574+ postHookFunc(sd, clear_vars);
73575+ }
73576+ }
73577+ return;
73578+ }
7350073579/* pcre_interface */
7350173580pcre* HP_libpcre_compile(const char *pattern, int options, const char **errptr, int *erroffset, const unsigned char *tableptr) {
7350273581 int hIndex = 0;
0 commit comments