summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorAnnieRuru <jeankof@ymail.com>2015-11-29 01:51:39 +0800
committerHaru <haru@dotalux.com>2015-12-17 02:26:25 +0100
commit478776d998e0fb48d87cd4c49229a1cf1b8cc203 (patch)
tree8a573c24af8d5702b35911f31597a97548210dce /src/map/pc.c
parentd020d40f4332e17fc0b06634b5c8f90ee30f2aa4 (diff)
downloadhercules-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/map/pc.c')
-rw-r--r--src/map/pc.c4
1 files changed, 4 insertions, 0 deletions
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;