diff options
author | Fate <fate-tmw@googlemail.com> | 2009-09-27 15:34:41 +0000 |
---|---|---|
committer | Fate <fate-tmw@googlemail.com> | 2009-09-27 15:34:41 +0000 |
commit | d3c9e1876d2e2ea049360f9fd9d3cbbcbe80c28f (patch) | |
tree | 1fa49182e473197a3b8a24c65ae62336de7dd010 | |
parent | bf27f14214997e97aad2a80b24885b8f9af30e0a (diff) | |
parent | 8b59d27ee68fc3248dbf222f2ced18b57c13554a (diff) | |
download | tmwa-d3c9e1876d2e2ea049360f9fd9d3cbbcbe80c28f.tar.gz tmwa-d3c9e1876d2e2ea049360f9fd9d3cbbcbe80c28f.tar.bz2 tmwa-d3c9e1876d2e2ea049360f9fd9d3cbbcbe80c28f.tar.xz tmwa-d3c9e1876d2e2ea049360f9fd9d3cbbcbe80c28f.zip |
Merge branch 'master' of gitorious.org:tmw-eathena/mainline
-rw-r--r-- | src/map/mob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index f04ff28..a5fc159 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -267,7 +267,7 @@ mob_gen_exp(struct mob_db *mob) double mod_def = 100 - mob->def; if (mod_def == 0) mod_def = 1; double effective_hp = ((50 - mob->luk) * mob->max_hp / 50.0) + (2 * mob->luk * mob->max_hp / mod_def); - double attack_factor = (mob->atk1 + mob->atk2 + mob->str / 3.0 + mob->dex / 2.0 + mob->luk) * (1872 / mob->adelay) / 4; + double attack_factor = (mob->atk1 + mob->atk2 + mob->str / 3.0 + mob->dex / 2.0 + mob->luk) * (1872.0 / mob->adelay) / 4; double dodge_factor = pow(mob->lv + mob->agi + mob->luk / 2.0, 4.0 / 3.0); double persuit_factor = (3 + mob->range) * (mob->mode % 2) * 1000 / mob->speed; double aggression_factor = (mob->mode & 4) == 4 ? 10.0 / 9.0 : 1.0; |