diff options
author | Gepard <Gepard@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-05-15 15:09:52 +0000 |
---|---|---|
committer | Gepard <Gepard@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-05-15 15:09:52 +0000 |
commit | 6c492d546fde8fd7180695891a1f1eb576758075 (patch) | |
tree | 501581387d7f27efab5dd0090151b185dc660243 /src/map/clif.c | |
parent | 760e1baa46db64db570a6f77f252834d0ce605b3 (diff) | |
download | hercules-6c492d546fde8fd7180695891a1f1eb576758075.tar.gz hercules-6c492d546fde8fd7180695891a1f1eb576758075.tar.bz2 hercules-6c492d546fde8fd7180695891a1f1eb576758075.tar.xz hercules-6c492d546fde8fd7180695891a1f1eb576758075.zip |
* Removed status point calculations (duplicate) from `pc_resetstate` function. It is now handled by `pc_need_status_point`.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14824 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index eeb9f7532..81ab49799 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -2542,7 +2542,7 @@ int clif_updatestatus(struct map_session_data *sd,int type) case SP_UDEX: case SP_ULUK: WFIFOW(fd,0)=0xbe; - WFIFOB(fd,4)=pc_need_status_point(sd,type-SP_USTR+SP_STR); + WFIFOB(fd,4)=pc_need_status_point(sd,type-SP_USTR+SP_STR,1); len=5; break; @@ -2824,17 +2824,17 @@ int clif_initialstatus(struct map_session_data *sd) WBUFW(buf,0)=0xbd; WBUFW(buf,2)=min(sd->status.status_point, SHRT_MAX); WBUFB(buf,4)=min(sd->status.str, UCHAR_MAX); - WBUFB(buf,5)=pc_need_status_point(sd,SP_STR); + WBUFB(buf,5)=pc_need_status_point(sd,SP_STR,1); WBUFB(buf,6)=min(sd->status.agi, UCHAR_MAX); - WBUFB(buf,7)=pc_need_status_point(sd,SP_AGI); + WBUFB(buf,7)=pc_need_status_point(sd,SP_AGI,1); WBUFB(buf,8)=min(sd->status.vit, UCHAR_MAX); - WBUFB(buf,9)=pc_need_status_point(sd,SP_VIT); + WBUFB(buf,9)=pc_need_status_point(sd,SP_VIT,1); WBUFB(buf,10)=min(sd->status.int_, UCHAR_MAX); - WBUFB(buf,11)=pc_need_status_point(sd,SP_INT); + WBUFB(buf,11)=pc_need_status_point(sd,SP_INT,1); WBUFB(buf,12)=min(sd->status.dex, UCHAR_MAX); - WBUFB(buf,13)=pc_need_status_point(sd,SP_DEX); + WBUFB(buf,13)=pc_need_status_point(sd,SP_DEX,1); WBUFB(buf,14)=min(sd->status.luk, UCHAR_MAX); - WBUFB(buf,15)=pc_need_status_point(sd,SP_LUK); + 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 @@ -12420,17 +12420,17 @@ void clif_check(int fd, struct map_session_data* pl_sd) WFIFOHEAD(fd,packet_len(0x214)); WFIFOW(fd, 0) = 0x214; WFIFOB(fd, 2) = min(pl_sd->status.str, UCHAR_MAX); - WFIFOB(fd, 3) = pc_need_status_point(pl_sd, SP_STR); + WFIFOB(fd, 3) = pc_need_status_point(pl_sd, SP_STR, 1); WFIFOB(fd, 4) = min(pl_sd->status.agi, UCHAR_MAX); - WFIFOB(fd, 5) = pc_need_status_point(pl_sd, SP_AGI); + WFIFOB(fd, 5) = pc_need_status_point(pl_sd, SP_AGI, 1); WFIFOB(fd, 6) = min(pl_sd->status.vit, UCHAR_MAX); - WFIFOB(fd, 7) = pc_need_status_point(pl_sd, SP_VIT); + WFIFOB(fd, 7) = pc_need_status_point(pl_sd, SP_VIT, 1); WFIFOB(fd, 8) = min(pl_sd->status.int_, UCHAR_MAX); - WFIFOB(fd, 9) = pc_need_status_point(pl_sd, SP_INT); + WFIFOB(fd, 9) = pc_need_status_point(pl_sd, SP_INT, 1); WFIFOB(fd,10) = min(pl_sd->status.dex, UCHAR_MAX); - WFIFOB(fd,11) = pc_need_status_point(pl_sd, SP_DEX); + WFIFOB(fd,11) = pc_need_status_point(pl_sd, SP_DEX, 1); WFIFOB(fd,12) = min(pl_sd->status.luk, UCHAR_MAX); - WFIFOB(fd,13) = pc_need_status_point(pl_sd, SP_LUK); + WFIFOB(fd,13) = pc_need_status_point(pl_sd, SP_LUK, 1); WFIFOW(fd,14) = pl_sd->battle_status.batk+pl_sd->battle_status.rhw.atk+pl_sd->battle_status.lhw.atk; WFIFOW(fd,16) = pl_sd->battle_status.rhw.atk2+pl_sd->battle_status.lhw.atk2; WFIFOW(fd,18) = pl_sd->battle_status.matk_max; |