summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-11 04:46:36 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-11 04:46:36 +0000
commit4c29f5aeb5b12377d6f6d6161beb1b85515fbace (patch)
treead8ead5446f73ac6a00a851ed4905eefe2dda0a3
parent7d9d9d6baac2793fb1264074d03eb7bcde89e120 (diff)
downloadhercules-4c29f5aeb5b12377d6f6d6161beb1b85515fbace.tar.gz
hercules-4c29f5aeb5b12377d6f6d6161beb1b85515fbace.tar.bz2
hercules-4c29f5aeb5b12377d6f6d6161beb1b85515fbace.tar.xz
hercules-4c29f5aeb5b12377d6f6d6161beb1b85515fbace.zip
- The status window now shows the addition of the damage of your both weapons when dual wielding.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5256 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/clif.c8
-rw-r--r--src/map/status.c8
3 files changed, 10 insertions, 8 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index c90991413..86744b4cb 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -5,6 +5,8 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. EV
GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS
2006/02/10
+ * The status window will now show the total power of both weapons instead
+ of just the right-hand weapon for dual wielders. [Skotlex]
* Removed #include <lcms.h> from irc.c, since it's unused and some people don't have it. [Valaris]
* Changed the default MAX_LEVEL supported by the map server to 1000. [Skotlex]
* Pet Lures won't be consumed now when used on a non-mob. [Skotlex]
diff --git a/src/map/clif.c b/src/map/clif.c
index a97f27941..bf5f3ba6d 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -3073,7 +3073,7 @@ int clif_updatestatus(struct map_session_data *sd,int type)
WFIFOL(fd,4)=sd->aspd;
break;
case SP_ATK1:
- WFIFOL(fd,4)=sd->base_atk+sd->right_weapon.watk;
+ WFIFOL(fd,4)=sd->base_atk+sd->right_weapon.watk+sd->left_weapon.watk;
break;
case SP_DEF1:
WFIFOL(fd,4)=sd->def;
@@ -3082,7 +3082,7 @@ int clif_updatestatus(struct map_session_data *sd,int type)
WFIFOL(fd,4)=sd->mdef;
break;
case SP_ATK2:
- WFIFOL(fd,4)=sd->right_weapon.watk2;
+ WFIFOL(fd,4)=sd->right_weapon.watk2 + sd->left_weapon.watk2;
break;
case SP_DEF2:
WFIFOL(fd,4)=sd->def2;
@@ -3341,8 +3341,8 @@ int clif_initialstatus(struct map_session_data *sd)
WBUFB(buf,14)=(sd->status.luk > 255)? 255:sd->status.luk;
WBUFB(buf,15)=pc_need_status_point(sd,SP_LUK);
- WBUFW(buf,16) = sd->base_atk + sd->right_weapon.watk;
- WBUFW(buf,18) = sd->right_weapon.watk2; //atk bonus
+ WBUFW(buf,16) = sd->base_atk + sd->right_weapon.watk + sd->left_weapon.watk;
+ WBUFW(buf,18) = sd->right_weapon.watk2 + sd->left_weapon.watk2; //atk bonus
WBUFW(buf,20) = sd->matk1;
WBUFW(buf,22) = sd->matk2;
WBUFW(buf,24) = sd->def; // def
diff --git a/src/map/status.c b/src/map/status.c
index 3eb09a6ba..b4abbd74a 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -861,9 +861,9 @@ int status_calc_pc(struct map_session_data* sd,int first)
b_hit = sd->hit;
b_flee = sd->flee;
b_aspd = sd->aspd;
- b_watk = sd->right_weapon.watk;
+ b_watk = sd->right_weapon.watk + sd->left_weapon.watk;
b_def = sd->def;
- b_watk2 = sd->right_weapon.watk2;
+ b_watk2 = sd->right_weapon.watk2 + sd->left_weapon.watk2;
b_def2 = sd->def2;
b_flee2 = sd->flee2;
b_critical = sd->critical;
@@ -1886,11 +1886,11 @@ int status_calc_pc(struct map_session_data* sd,int first)
clif_updatestatus(sd,SP_FLEE1);
if(b_aspd != sd->aspd)
clif_updatestatus(sd,SP_ASPD);
- if(b_watk != sd->right_weapon.watk || b_base_atk != sd->base_atk)
+ if(b_watk != sd->right_weapon.watk + sd->left_weapon.watk || b_base_atk != sd->base_atk)
clif_updatestatus(sd,SP_ATK1);
if(b_def != sd->def)
clif_updatestatus(sd,SP_DEF1);
- if(b_watk2 != sd->right_weapon.watk2)
+ if(b_watk2 != sd->right_weapon.watk2 + sd->left_weapon.watk2)
clif_updatestatus(sd,SP_ATK2);
if(b_def2 != sd->def2)
clif_updatestatus(sd,SP_DEF2);