diff options
author | AnnieRuru <jeankof@ymail.com> | 2015-11-29 01:51:39 +0800 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-12-17 02:26:25 +0100 |
commit | 478776d998e0fb48d87cd4c49229a1cf1b8cc203 (patch) | |
tree | 8a573c24af8d5702b35911f31597a97548210dce /src | |
parent | d020d40f4332e17fc0b06634b5c8f90ee30f2aa4 (diff) | |
download | hercules-478776d998e0fb48d87cd4c49229a1cf1b8cc203.tar.gz hercules-478776d998e0fb48d87cd4c49229a1cf1b8cc203.tar.bz2 hercules-478776d998e0fb48d87cd4c49229a1cf1b8cc203.tar.xz hercules-478776d998e0fb48d87cd4c49229a1cf1b8cc203.zip |
Add bAddMaxWeight bonus for increasing player's max weight
Diffstat (limited to 'src')
-rw-r--r-- | src/map/map.h | 2 | ||||
-rw-r--r-- | src/map/pc.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/map/map.h b/src/map/map.h index d133ad4c1..84af04f77 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -483,7 +483,7 @@ enum status_point_types { SP_SKILL_COOLDOWN,SP_SKILL_FIXEDCAST, SP_SKILL_VARIABLECAST, SP_FIXCASTRATE, SP_VARCASTRATE, //2050-2054 SP_SKILL_USE_SP,SP_MAGIC_ATK_ELE, SP_ADD_FIXEDCAST, SP_ADD_VARIABLECAST, //2055-2058 SP_SET_DEF_RACE,SP_SET_MDEF_RACE, //2059-2060 - SP_RACE_TOLERANCE, //2061 + SP_RACE_TOLERANCE,SP_ADDMAXWEIGHT, //2061-2062 /* must be the last, plugins add bonuses from this value onwards */ SP_LAST_KNOWN, diff --git a/src/map/pc.c b/src/map/pc.c index 699df4990..d5d68d299 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -2861,6 +2861,10 @@ int pc_bonus(struct map_session_data *sd,int type,int val) { if (sd->state.lr_flag != 2) pc->bonus_item_drop(sd->add_drop, ARRAYLENGTH(sd->add_drop), 0, val, map->race_id2mask(RC_ALL), 10000); break; + case SP_ADDMAXWEIGHT: + if (sd->state.lr_flag != 2) + sd->max_weight += val; + break; default: ShowWarning("pc_bonus: unknown type %d %d !\n",type,val); break; |