diff options
author | Michieru <Michieru@users.noreply.github.com> | 2014-10-02 12:07:50 +0200 |
---|---|---|
committer | Michieru <Michieru@users.noreply.github.com> | 2014-10-02 12:07:50 +0200 |
commit | c813ffe0ba08d3330397da4116b25bfe374a6116 (patch) | |
tree | aed8adf2182e457961c986ed03d5755ff8515bfe /src/map/battle.c | |
parent | d8c84637efc7513503c4248e5f95bac6ba378d5c (diff) | |
download | hercules-c813ffe0ba08d3330397da4116b25bfe374a6116.tar.gz hercules-c813ffe0ba08d3330397da4116b25bfe374a6116.tar.bz2 hercules-c813ffe0ba08d3330397da4116b25bfe374a6116.tar.xz hercules-c813ffe0ba08d3330397da4116b25bfe374a6116.zip |
* Rewrote the hard monster AI. Monsters will now behave a lot closer to official servers:
* Monsters will now attack immediately when they are chasing a target and it comes into attack range (bugreport:7370)
* Monsters will now chase their target during their aDelay, but they still have to wait for aMotion to be able to move again (bugreport:9269)
* Monsters will now rethink their chase in a configurable interval (see monster_chase_refresh in monster.conf), official value is once per cell, previously it was once per 3 cells
* Monsters will now stop when they rethink their chase and their target is gone (player hides or target loot was picked), regardless of the monster_ai setting (note: if you want the old, stupid behavior, just increase monster_chase_refresh instead)
Thanks to Playtester (rathena: cfef8a0088c3)
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index bdd1b9bc9..5eabc719d 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -6715,6 +6715,7 @@ static const struct battle_data { { "copyskill_restrict", &battle_config.copyskill_restrict, 2, 0, 2, }, { "berserk_cancels_buffs", &battle_config.berserk_cancels_buffs, 0, 0, 1, }, { "monster_ai", &battle_config.mob_ai, 0x000, 0x000, 0x77F, }, + { "monster_chase_refresh", &battle_config.mob_chase_refresh, 1, 0, 30, }, { "hom_setting", &battle_config.hom_setting, 0xFFFF, 0x0000, 0xFFFF, }, { "dynamic_mobs", &battle_config.dynamic_mobs, 1, 0, 1, }, { "mob_remove_damaged", &battle_config.mob_remove_damaged, 1, 0, 1, }, |