Homun info window to display crit value

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8993 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
Vicious 2006-10-14 17:24:52 +00:00
parent be434e2bc9
commit c16645f3d3
2 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,10 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/10/14
* Homun info window to show crit value. As default, homun does NOT crit,
as monsters do not crit. This is purely for display purpose for players
to identify their homon's luk value. [Vicious]
2006/10/13 2006/10/13
* Base attack for non players is now calculated as str + [str/10]^2 (it * Base attack for non players is now calculated as str + [str/10]^2 (it
does not has +dex/5+luk/5 which players do have) [Skotlex] does not has +dex/5+luk/5 which players do have) [Skotlex]

View File

@ -1472,7 +1472,7 @@ int clif_hominfo(struct map_session_data *sd, struct homun_data *hd, int flag)
WBUFW(buf,35)=cap_value(status->rhw.atk2+status->batk, 0, SHRT_MAX); WBUFW(buf,35)=cap_value(status->rhw.atk2+status->batk, 0, SHRT_MAX);
WBUFW(buf,37)=cap_value(status->matk_max, 0, SHRT_MAX); WBUFW(buf,37)=cap_value(status->matk_max, 0, SHRT_MAX);
WBUFW(buf,39)=status->hit; WBUFW(buf,39)=status->hit;
WBUFW(buf,41)=status->cri/10; //crit is a +1 decimal value! WBUFW(buf,41)=status->luk/3 + 1; //crit is a +1 decimal value! Just display purpose.[Vicious]
WBUFW(buf,43)=status->def + status->vit ; WBUFW(buf,43)=status->def + status->vit ;
WBUFW(buf,45)=status->mdef; WBUFW(buf,45)=status->mdef;
WBUFW(buf,47)=status->flee; WBUFW(buf,47)=status->flee;