From e4b9fddf841e615bb86e5f9ce10c29b2d171efc3 Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 13 Oct 2006 18:50:55 +0000 Subject: - 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) - Fixed the char-sql server trying to read the gms off a "gm_db" config setting stead of "login_db" git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8981 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/status.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/map/status.c') diff --git a/src/map/status.c b/src/map/status.c index 75decab54..c97021637 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -1188,8 +1188,14 @@ static int status_base_atk(struct block_list *bl, struct status_data *status) str = status->str; dex = status->dex; } + //Normally only players have base-atk, but homunc have a different batk + // equation, hinting that perhaps non-players should use this for batk. + // [Skotlex] dstr = str/10; - return str + dstr*dstr + dex/5 + status->luk/5; + str += dstr*dstr; + if (bl->type == BL_PC) + str+= dex/5 + status->luk/5; + return str; } #define status_base_matk_max(status) (status->int_+(status->int_/5)*(status->int_/5)) -- cgit v1.2.3-70-g09d2