diff options
author | lordttseven <lordttseven@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-03-19 14:43:41 +0000 |
---|---|---|
committer | lordttseven <lordttseven@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-03-19 14:43:41 +0000 |
commit | a0ac36a5e11af6231b0c3b817d72d01538233b16 (patch) | |
tree | c86b2c3a91a2907a00ca6a9b06d40e3453ba83c8 /src/map/clif.c | |
parent | d439d6d992f76dd547ccd8557e3aa58b11a3ef08 (diff) | |
download | hercules-a0ac36a5e11af6231b0c3b817d72d01538233b16.tar.gz hercules-a0ac36a5e11af6231b0c3b817d72d01538233b16.tar.bz2 hercules-a0ac36a5e11af6231b0c3b817d72d01538233b16.tar.xz hercules-a0ac36a5e11af6231b0c3b817d72d01538233b16.zip |
Refine DB update
* DB courtesy of Kenpachi
* added support for different stats per refine level for renewal
* cleaned up the corresponding code a little
* REMODE now displays the atk values on the client correctly
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15730 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 7514f87bb..fc215c26a 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -2766,7 +2766,7 @@ void clif_updatestatus(struct map_session_data *sd,int type) WFIFOL(fd,4)=sd->battle_status.amotion; break; case SP_ATK1: - WFIFOL(fd,4)=sd->battle_status.batk +sd->battle_status.rhw.atk +sd->battle_status.lhw.atk; + WFIFOL(fd,4)=pc_leftside_atk(sd); break; case SP_DEF1: WFIFOL(fd,4)=sd->battle_status.def; @@ -2775,7 +2775,7 @@ void clif_updatestatus(struct map_session_data *sd,int type) WFIFOL(fd,4)=sd->battle_status.mdef; break; case SP_ATK2: - WFIFOL(fd,4)=sd->battle_status.rhw.atk2 + sd->battle_status.lhw.atk2; + WFIFOL(fd,4)=pc_rightside_atk(sd); break; case SP_DEF2: WFIFOL(fd,4)=sd->battle_status.def2; @@ -3124,8 +3124,8 @@ void clif_initialstatus(struct map_session_data *sd) WBUFB(buf,14)=min(sd->status.luk, UINT8_MAX); WBUFB(buf,15)=pc_need_status_point(sd,SP_LUK,1); - WBUFW(buf,16) = sd->battle_status.batk + sd->battle_status.rhw.atk + sd->battle_status.lhw.atk; - WBUFW(buf,18) = sd->battle_status.rhw.atk2 + sd->battle_status.lhw.atk2; //atk bonus + WBUFW(buf,16) = pc_leftside_atk(sd); + WBUFW(buf,18) = pc_rightside_atk(sd); WBUFW(buf,20) = sd->battle_status.matk_max; WBUFW(buf,22) = sd->battle_status.matk_min; WBUFW(buf,24) = sd->battle_status.def; // def |