diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-10-13 18:50:55 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-10-13 18:50:55 +0000 |
commit | e4b9fddf841e615bb86e5f9ce10c29b2d171efc3 (patch) | |
tree | 34c48cccacaaa2f149344a6b356edca716c740af /src/map/status.c | |
parent | 68697bf554e917e8b2e43884ff75ba572dd36d89 (diff) | |
download | hercules-e4b9fddf841e615bb86e5f9ce10c29b2d171efc3.tar.gz hercules-e4b9fddf841e615bb86e5f9ce10c29b2d171efc3.tar.bz2 hercules-e4b9fddf841e615bb86e5f9ce10c29b2d171efc3.tar.xz hercules-e4b9fddf841e615bb86e5f9ce10c29b2d171efc3.zip |
- 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
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 8 |
1 files changed, 7 insertions, 1 deletions
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))
|