diff options
-rw-r--r-- | conf/map/battle/monster.conf | 6 | ||||
-rw-r--r-- | src/map/battle.c | 1 | ||||
-rw-r--r-- | src/map/battle.h | 2 | ||||
-rw-r--r-- | src/map/skill.c | 4 |
4 files changed, 11 insertions, 2 deletions
diff --git a/conf/map/battle/monster.conf b/conf/map/battle/monster.conf index 48e476161..694c7d104 100644 --- a/conf/map/battle/monster.conf +++ b/conf/map/battle/monster.conf @@ -259,3 +259,9 @@ mob_size_influence: false // Default (most official): mob - 220, boss - 1 mob_icewall_walk_block: 220 boss_icewall_walk_block: 1 + +// Which level of of Vulture's Eye and Snake's Eye should monsters have learned? +// Officially monsters don't have these skills learned, so their ranged skills +// only have a range of 9. If you put a number higher than 0, their range will +// be increased by that number. +monster_eye_range_bonus: 0 diff --git a/src/map/battle.c b/src/map/battle.c index 8a0a71645..63252caf7 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -7332,6 +7332,7 @@ static const struct battle_data { { "bow_unequip_arrow", &battle_config.bow_unequip_arrow, 1, 0, 1, }, { "max_summoner_parameter", &battle_config.max_summoner_parameter, 120, 10, 10000, }, { "mvp_exp_reward_message", &battle_config.mvp_exp_reward_message, 0, 0, 1, }, + { "monster_eye_range_bonus", &battle_config.mob_eye_range_bonus, 0, 0, 10, }, }; #ifndef STATS_OPT_OUT /** diff --git a/src/map/battle.h b/src/map/battle.h index 4665847ff..806b07a20 100644 --- a/src/map/battle.h +++ b/src/map/battle.h @@ -550,6 +550,8 @@ struct Battle_Config { int max_summoner_parameter; // Summoner Max Stats int mvp_exp_reward_message; + + int mob_eye_range_bonus; //Vulture's Eye and Snake's Eye range bonus }; /* criteria for battle_config.idletime_critera */ diff --git a/src/map/skill.c b/src/map/skill.c index 70db5b341..714c2aa71 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -303,7 +303,7 @@ int skill_get_range2(struct block_list *bl, uint16 skill_id, uint16 skill_lv) if (sd != NULL) range += pc->checkskill(sd, AC_VULTURE); else - range += 10; //Assume level 10? + range += battle->bc->mob_eye_range_bonus; break; // added to allow GS skills to be effected by the range of Snake Eyes [Reddozen] case GS_RAPIDSHOWER: @@ -314,7 +314,7 @@ int skill_get_range2(struct block_list *bl, uint16 skill_id, uint16 skill_lv) if (sd != NULL) range += pc->checkskill(sd, GS_SNAKEEYE); else - range += 10; //Assume level 10? + range += battle->bc->mob_eye_range_bonus; break; case NJ_KIRIKAGE: if (sd != NULL) |