diff options
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c index 21b01252a..7277a7f1d 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -2155,7 +2155,7 @@ int status_calc_pc_(struct map_session_data* sd, bool first) struct status_data *status; // pointer to the player's base status const struct status_change *sc = &sd->sc; struct s_skill b_skill[MAX_SKILL]; // previous skill tree - int b_weight, b_max_weight; // previous weight + int b_weight, b_max_weight, b_cart_weight_max; // previous weight int i,index; int skill,refinedef=0; @@ -2166,6 +2166,7 @@ int status_calc_pc_(struct map_session_data* sd, bool first) memcpy(b_skill, &sd->status.skill, sizeof(b_skill)); b_weight = sd->weight; b_max_weight = sd->max_weight; + b_cart_weight_max = sd->cart_weight_max; pc_calc_skilltree(sd); // スキルツリ?の計算 @@ -2861,6 +2862,8 @@ int status_calc_pc_(struct map_session_data* sd, bool first) if((skill=pc_checkskill(sd,ALL_INCCARRY))>0) sd->max_weight += 2000*skill; + sd->cart_weight_max = battle_config.max_cart_weight + (pc_checkskill(sd, GN_REMODELING_CART)*5000); + if (pc_checkskill(sd,SM_MOVINGRECOVERY)>0) sd->regen.state.walk = 1; else @@ -2973,7 +2976,10 @@ int status_calc_pc_(struct map_session_data* sd, bool first) clif_updatestatus(sd,SP_MAXWEIGHT); pc_updateweightstatus(sd); } - + if( b_cart_weight_max != sd->cart_weight_max ) { + clif_updatestatus(sd,SP_CARTINFO); + } + calculating = 0; return 0; |