From 2c59a71155825161387535f2d5bc43f9f47a0c6d Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 18 Dec 2006 20:12:59 +0000 Subject: - Added hom_setting to specify which homunculus 'quirks' are in effect. The default activates all of them, if you set them to 0 then homuncs will not be treated in any special matter, pretty much like standard mobs. if I missed any 'quirky' homunc behaviour from it, report it so it can be added to the list. - Made flooritem_lifetime a int so you can specify much longer life times (the default of 60k was already very close to the max of 65k) - Removed monster_ai 0x80 since it's now handled by hom_setting. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9519 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/clif.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/map/clif.c') diff --git a/src/map/clif.c b/src/map/clif.c index 668ef21ee..dbf12e601 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -1428,7 +1428,10 @@ 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,37)=cap_value(status->matk_max, 0, SHRT_MAX); WBUFW(buf,39)=status->hit; - WBUFW(buf,41)=status->luk/3 + 1; //crit is a +1 decimal value! Just display purpose.[Vicious] + if (battle_config.hom_setting&0x10) + WBUFW(buf,41)=status->luk/3 + 1; //crit is a +1 decimal value! Just display purpose.[Vicious] + else + WBUFW(buf,41)=status->cri/10; WBUFW(buf,43)=status->def + status->vit ; WBUFW(buf,45)=status->mdef; WBUFW(buf,47)=status->flee; @@ -8336,7 +8339,7 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd) clif_send_homdata(sd,0,0); clif_homskillinfoblock(sd); //Homunc mimic their master's speed on each map change. [Skotlex] - if (battle_config.slaves_inherit_speed&1) + if (battle_config.hom_setting&0x8) status_calc_bl(&sd->hd->bl, SCB_SPEED); // Since hom is inmune to land effects, unneeded. // skill_unit_move(&sd->hd->bl,gettick(),1); -- cgit v1.2.3-70-g09d2