summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmistry Haoyan <equinox1991@gmail.com>2019-10-02 20:38:00 +0800
committerEmistry Haoyan <equinox1991@gmail.com>2019-10-02 20:38:00 +0800
commit11365498dc26dabc7e9a3b8ffab289c2dd7b3aa3 (patch)
treebd56820af9d004baf5e0ba675b21168bd75194d3 /src
parentd026e28fd78f60dfa21da381f17f2a8cc9ae3d11 (diff)
downloadhercules-11365498dc26dabc7e9a3b8ffab289c2dd7b3aa3.tar.gz
hercules-11365498dc26dabc7e9a3b8ffab289c2dd7b3aa3.tar.bz2
hercules-11365498dc26dabc7e9a3b8ffab289c2dd7b3aa3.tar.xz
hercules-11365498dc26dabc7e9a3b8ffab289c2dd7b3aa3.zip
Update Sense Skill - cap negative value display
Enable commented out lines that cap negative values to 0 in the Sense window. Currently the client displays them as 255-fix. [Skotlex]
Diffstat (limited to 'src')
-rw-r--r--src/map/clif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index f6caa502e..7456dc351 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -5899,7 +5899,7 @@ static void clif_skill_estimation(struct map_session_data *sd, struct block_list
{
struct status_data *dstatus;
unsigned char buf[64];
- int i;//, fix;
+ int i, fix;
nullpo_retv(sd);
nullpo_retv(dst);
@@ -5921,9 +5921,9 @@ static void clif_skill_estimation(struct map_session_data *sd, struct block_list
+ ((battle_config.estimation_type&2) ? dstatus->mdef2 : 0);
WBUFW(buf,18) = dstatus->def_ele;
for(i=0;i<9;i++) {
- WBUFB(buf,20+i)= (unsigned char)battle->attr_ratio(i+1,dstatus->def_ele, dstatus->ele_lv);
+ // WBUFB(buf,20+i)= (unsigned char)battle->attr_ratio(i+1,dstatus->def_ele, dstatus->ele_lv);
// The following caps negative attributes to 0 since the client displays them as 255-fix. [Skotlex]
- //WBUFB(buf,20+i)= (unsigned char)((fix=battle->attr_ratio(i+1,dstatus->def_ele, dstatus->ele_lv))<0?0:fix);
+ WBUFB(buf,20+i)= (unsigned char)((fix=battle->attr_ratio(i+1,dstatus->def_ele, dstatus->ele_lv))<0?0:fix);
}
clif->send(buf,packet_len(0x18c),&sd->bl,sd->status.party_id>0?PARTY_SAMEMAP:SELF);