summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHercules.ws <Hercules@efficiently.awesome>2015-01-24 00:13:01 +0100
committerHerculesWSAPI <Hercules@efficiently.awesome>2015-01-24 00:13:01 +0100
commit21e3b27ba67b74bc106eb83e26d23255a363ce59 (patch)
treea0f4eab88390bb7b10310f715edb9328a167ebd6 /src
parente778f4f5f1b6a08adee5e7e908a44c38cd29bd12 (diff)
downloadhercules-21e3b27ba67b74bc106eb83e26d23255a363ce59.tar.gz
hercules-21e3b27ba67b74bc106eb83e26d23255a363ce59.tar.bz2
hercules-21e3b27ba67b74bc106eb83e26d23255a363ce59.tar.xz
hercules-21e3b27ba67b74bc106eb83e26d23255a363ce59.zip
HPM Hooks Update
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.Hooks.inc58
1 files changed, 28 insertions, 30 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
index f8056c9cb..a2b17666c 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -11116,14 +11116,14 @@ void HP_clif_millenniumshield(struct block_list *bl, short shields) {
}
return;
}
-void HP_clif_spiritcharm(struct map_session_data *sd, short type) {
+void HP_clif_spiritcharm(struct map_session_data *sd) {
int hIndex = 0;
if( HPMHooks.count.HP_clif_spiritcharm_pre ) {
- void (*preHookFunc) (struct map_session_data *sd, short *type);
+ void (*preHookFunc) (struct map_session_data *sd);
*HPMforce_return = false;
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_spiritcharm_pre; hIndex++ ) {
preHookFunc = HPMHooks.list.HP_clif_spiritcharm_pre[hIndex].func;
- preHookFunc(sd, &type);
+ preHookFunc(sd);
}
if( *HPMforce_return ) {
*HPMforce_return = false;
@@ -11131,25 +11131,25 @@ void HP_clif_spiritcharm(struct map_session_data *sd, short type) {
}
}
{
- HPMHooks.source.clif.spiritcharm(sd, type);
+ HPMHooks.source.clif.spiritcharm(sd);
}
if( HPMHooks.count.HP_clif_spiritcharm_post ) {
- void (*postHookFunc) (struct map_session_data *sd, short *type);
+ void (*postHookFunc) (struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_spiritcharm_post; hIndex++ ) {
postHookFunc = HPMHooks.list.HP_clif_spiritcharm_post[hIndex].func;
- postHookFunc(sd, &type);
+ postHookFunc(sd);
}
}
return;
}
-void HP_clif_charm_single(int fd, struct map_session_data *sd, short type) {
+void HP_clif_charm_single(int fd, struct map_session_data *sd) {
int hIndex = 0;
if( HPMHooks.count.HP_clif_charm_single_pre ) {
- void (*preHookFunc) (int *fd, struct map_session_data *sd, short *type);
+ void (*preHookFunc) (int *fd, struct map_session_data *sd);
*HPMforce_return = false;
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_charm_single_pre; hIndex++ ) {
preHookFunc = HPMHooks.list.HP_clif_charm_single_pre[hIndex].func;
- preHookFunc(&fd, sd, &type);
+ preHookFunc(&fd, sd);
}
if( *HPMforce_return ) {
*HPMforce_return = false;
@@ -11157,13 +11157,13 @@ void HP_clif_charm_single(int fd, struct map_session_data *sd, short type) {
}
}
{
- HPMHooks.source.clif.charm_single(fd, sd, type);
+ HPMHooks.source.clif.charm_single(fd, sd);
}
if( HPMHooks.count.HP_clif_charm_single_post ) {
- void (*postHookFunc) (int *fd, struct map_session_data *sd, short *type);
+ void (*postHookFunc) (int *fd, struct map_session_data *sd);
for(hIndex = 0; hIndex < HPMHooks.count.HP_clif_charm_single_post; hIndex++ ) {
postHookFunc = HPMHooks.list.HP_clif_charm_single_post[hIndex].func;
- postHookFunc(&fd, sd, &type);
+ postHookFunc(&fd, sd);
}
}
return;
@@ -51681,59 +51681,57 @@ int HP_pc_load_combo(struct map_session_data *sd) {
}
return retVal___;
}
-int HP_pc_add_charm(struct map_session_data *sd, int interval, int max, int type) {
+void HP_pc_add_charm(struct map_session_data *sd, int interval, int max, int type) {
int hIndex = 0;
- int retVal___ = 0;
if( HPMHooks.count.HP_pc_add_charm_pre ) {
- int (*preHookFunc) (struct map_session_data *sd, int *interval, int *max, int *type);
+ void (*preHookFunc) (struct map_session_data *sd, int *interval, int *max, int *type);
*HPMforce_return = false;
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_add_charm_pre; hIndex++ ) {
preHookFunc = HPMHooks.list.HP_pc_add_charm_pre[hIndex].func;
- retVal___ = preHookFunc(sd, &interval, &max, &type);
+ preHookFunc(sd, &interval, &max, &type);
}
if( *HPMforce_return ) {
*HPMforce_return = false;
- return retVal___;
+ return;
}
}
{
- retVal___ = HPMHooks.source.pc.add_charm(sd, interval, max, type);
+ HPMHooks.source.pc.add_charm(sd, interval, max, type);
}
if( HPMHooks.count.HP_pc_add_charm_post ) {
- int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *interval, int *max, int *type);
+ void (*postHookFunc) (struct map_session_data *sd, int *interval, int *max, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_add_charm_post; hIndex++ ) {
postHookFunc = HPMHooks.list.HP_pc_add_charm_post[hIndex].func;
- retVal___ = postHookFunc(retVal___, sd, &interval, &max, &type);
+ postHookFunc(sd, &interval, &max, &type);
}
}
- return retVal___;
+ return;
}
-int HP_pc_del_charm(struct map_session_data *sd, int count, int type) {
+void HP_pc_del_charm(struct map_session_data *sd, int count, int type) {
int hIndex = 0;
- int retVal___ = 0;
if( HPMHooks.count.HP_pc_del_charm_pre ) {
- int (*preHookFunc) (struct map_session_data *sd, int *count, int *type);
+ void (*preHookFunc) (struct map_session_data *sd, int *count, int *type);
*HPMforce_return = false;
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_del_charm_pre; hIndex++ ) {
preHookFunc = HPMHooks.list.HP_pc_del_charm_pre[hIndex].func;
- retVal___ = preHookFunc(sd, &count, &type);
+ preHookFunc(sd, &count, &type);
}
if( *HPMforce_return ) {
*HPMforce_return = false;
- return retVal___;
+ return;
}
}
{
- retVal___ = HPMHooks.source.pc.del_charm(sd, count, type);
+ HPMHooks.source.pc.del_charm(sd, count, type);
}
if( HPMHooks.count.HP_pc_del_charm_post ) {
- int (*postHookFunc) (int retVal___, struct map_session_data *sd, int *count, int *type);
+ void (*postHookFunc) (struct map_session_data *sd, int *count, int *type);
for(hIndex = 0; hIndex < HPMHooks.count.HP_pc_del_charm_post; hIndex++ ) {
postHookFunc = HPMHooks.list.HP_pc_del_charm_post[hIndex].func;
- retVal___ = postHookFunc(retVal___, sd, &count, &type);
+ postHookFunc(sd, &count, &type);
}
}
- return retVal___;
+ return;
}
void HP_pc_baselevelchanged(struct map_session_data *sd) {
int hIndex = 0;