summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-02 05:02:59 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-02 05:02:59 +0000
commit74cdd2aabac3b6f74fe84a77301245ffc876db6f (patch)
treec777052a227e39d7abdc28f9a022b08e77a872b2 /src/map/status.c
parent0c9374f1f6f3d82cfa93a3c305ce5328363d0c28 (diff)
downloadhercules-74cdd2aabac3b6f74fe84a77301245ffc876db6f.tar.gz
hercules-74cdd2aabac3b6f74fe84a77301245ffc876db6f.tar.bz2
hercules-74cdd2aabac3b6f74fe84a77301245ffc876db6f.tar.xz
hercules-74cdd2aabac3b6f74fe84a77301245ffc876db6f.zip
Fixed bugreport:5650 GN Cart Remodeling weight boost should now be working properly.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16042 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c10
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;