@@ -21884,13 +21884,13 @@ void HP_clif_pTickSend(int fd, struct map_session_data *sd) {
2188421884 }
2188521885 return;
2188621886}
21887- void HP_clif_pHotkey (int fd, struct map_session_data *sd) {
21887+ void HP_clif_pHotkey1 (int fd, struct map_session_data *sd) {
2188821888 int hIndex = 0;
21889- if (HPMHooks.count.HP_clif_pHotkey_pre > 0) {
21889+ if (HPMHooks.count.HP_clif_pHotkey1_pre > 0) {
2189021890 void (*preHookFunc) (int *fd, struct map_session_data **sd);
2189121891 *HPMforce_return = false;
21892- for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHotkey_pre ; hIndex++) {
21893- preHookFunc = HPMHooks.list.HP_clif_pHotkey_pre [hIndex].func;
21892+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHotkey1_pre ; hIndex++) {
21893+ preHookFunc = HPMHooks.list.HP_clif_pHotkey1_pre [hIndex].func;
2189421894 preHookFunc(&fd, &sd);
2189521895 }
2189621896 if (*HPMforce_return) {
@@ -21899,12 +21899,38 @@ void HP_clif_pHotkey(int fd, struct map_session_data *sd) {
2189921899 }
2190021900 }
2190121901 {
21902- HPMHooks.source.clif.pHotkey (fd, sd);
21902+ HPMHooks.source.clif.pHotkey1 (fd, sd);
2190321903 }
21904- if (HPMHooks.count.HP_clif_pHotkey_post > 0) {
21904+ if (HPMHooks.count.HP_clif_pHotkey1_post > 0) {
2190521905 void (*postHookFunc) (int fd, struct map_session_data *sd);
21906- for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHotkey_post; hIndex++) {
21907- postHookFunc = HPMHooks.list.HP_clif_pHotkey_post[hIndex].func;
21906+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHotkey1_post; hIndex++) {
21907+ postHookFunc = HPMHooks.list.HP_clif_pHotkey1_post[hIndex].func;
21908+ postHookFunc(fd, sd);
21909+ }
21910+ }
21911+ return;
21912+ }
21913+ void HP_clif_pHotkey2(int fd, struct map_session_data *sd) {
21914+ int hIndex = 0;
21915+ if (HPMHooks.count.HP_clif_pHotkey2_pre > 0) {
21916+ void (*preHookFunc) (int *fd, struct map_session_data **sd);
21917+ *HPMforce_return = false;
21918+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHotkey2_pre; hIndex++) {
21919+ preHookFunc = HPMHooks.list.HP_clif_pHotkey2_pre[hIndex].func;
21920+ preHookFunc(&fd, &sd);
21921+ }
21922+ if (*HPMforce_return) {
21923+ *HPMforce_return = false;
21924+ return;
21925+ }
21926+ }
21927+ {
21928+ HPMHooks.source.clif.pHotkey2(fd, sd);
21929+ }
21930+ if (HPMHooks.count.HP_clif_pHotkey2_post > 0) {
21931+ void (*postHookFunc) (int fd, struct map_session_data *sd);
21932+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHotkey2_post; hIndex++) {
21933+ postHookFunc = HPMHooks.list.HP_clif_pHotkey2_post[hIndex].func;
2190821934 postHookFunc(fd, sd);
2190921935 }
2191021936 }
@@ -27865,13 +27891,39 @@ int HP_clif_add_item_options(struct ItemOptions *buf, const struct item *it) {
2786527891 }
2786627892 return retVal___;
2786727893}
27868- void HP_clif_pHotkeyRowShift(int fd, struct map_session_data *sd) {
27894+ void HP_clif_pHotkeyRowShift1(int fd, struct map_session_data *sd) {
27895+ int hIndex = 0;
27896+ if (HPMHooks.count.HP_clif_pHotkeyRowShift1_pre > 0) {
27897+ void (*preHookFunc) (int *fd, struct map_session_data **sd);
27898+ *HPMforce_return = false;
27899+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHotkeyRowShift1_pre; hIndex++) {
27900+ preHookFunc = HPMHooks.list.HP_clif_pHotkeyRowShift1_pre[hIndex].func;
27901+ preHookFunc(&fd, &sd);
27902+ }
27903+ if (*HPMforce_return) {
27904+ *HPMforce_return = false;
27905+ return;
27906+ }
27907+ }
27908+ {
27909+ HPMHooks.source.clif.pHotkeyRowShift1(fd, sd);
27910+ }
27911+ if (HPMHooks.count.HP_clif_pHotkeyRowShift1_post > 0) {
27912+ void (*postHookFunc) (int fd, struct map_session_data *sd);
27913+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHotkeyRowShift1_post; hIndex++) {
27914+ postHookFunc = HPMHooks.list.HP_clif_pHotkeyRowShift1_post[hIndex].func;
27915+ postHookFunc(fd, sd);
27916+ }
27917+ }
27918+ return;
27919+ }
27920+ void HP_clif_pHotkeyRowShift2(int fd, struct map_session_data *sd) {
2786927921 int hIndex = 0;
27870- if (HPMHooks.count.HP_clif_pHotkeyRowShift_pre > 0) {
27922+ if (HPMHooks.count.HP_clif_pHotkeyRowShift2_pre > 0) {
2787127923 void (*preHookFunc) (int *fd, struct map_session_data **sd);
2787227924 *HPMforce_return = false;
27873- for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHotkeyRowShift_pre ; hIndex++) {
27874- preHookFunc = HPMHooks.list.HP_clif_pHotkeyRowShift_pre [hIndex].func;
27925+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHotkeyRowShift2_pre ; hIndex++) {
27926+ preHookFunc = HPMHooks.list.HP_clif_pHotkeyRowShift2_pre [hIndex].func;
2787527927 preHookFunc(&fd, &sd);
2787627928 }
2787727929 if (*HPMforce_return) {
@@ -27880,12 +27932,12 @@ void HP_clif_pHotkeyRowShift(int fd, struct map_session_data *sd) {
2788027932 }
2788127933 }
2788227934 {
27883- HPMHooks.source.clif.pHotkeyRowShift (fd, sd);
27935+ HPMHooks.source.clif.pHotkeyRowShift2 (fd, sd);
2788427936 }
27885- if (HPMHooks.count.HP_clif_pHotkeyRowShift_post > 0) {
27937+ if (HPMHooks.count.HP_clif_pHotkeyRowShift2_post > 0) {
2788627938 void (*postHookFunc) (int fd, struct map_session_data *sd);
27887- for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHotkeyRowShift_post ; hIndex++) {
27888- postHookFunc = HPMHooks.list.HP_clif_pHotkeyRowShift_post [hIndex].func;
27939+ for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_pHotkeyRowShift2_post ; hIndex++) {
27940+ postHookFunc = HPMHooks.list.HP_clif_pHotkeyRowShift2_post [hIndex].func;
2788927941 postHookFunc(fd, sd);
2789027942 }
2789127943 }
0 commit comments