diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-09-26 23:34:23 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-09-26 23:34:23 -0600 |
commit | 8b59d27ee68fc3248dbf222f2ced18b57c13554a (patch) | |
tree | 77e4a7679dcfaf4b7613b00e3ffadec9c32f78a5 | |
parent | 02ce702acb0fadcaf76470a94194f1d20e4c8bc0 (diff) | |
download | tmwa-8b59d27ee68fc3248dbf222f2ced18b57c13554a.tar.gz tmwa-8b59d27ee68fc3248dbf222f2ced18b57c13554a.tar.bz2 tmwa-8b59d27ee68fc3248dbf222f2ced18b57c13554a.tar.xz tmwa-8b59d27ee68fc3248dbf222f2ced18b57c13554a.zip |
Fix a bug in mob exp determination
-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; |