diff options
author | Smokexyz <sagunkho@hotmail.com> | 2017-04-10 16:43:34 +0800 |
---|---|---|
committer | Smokexyz <sagunkho@hotmail.com> | 2017-04-10 16:43:34 +0800 |
commit | ef7273587ea0867e6d189a297291f3b2c232608d (patch) | |
tree | 8554a8dbac66028b85a3749909315600c8546b7e /src/map | |
parent | 7cc094df792340752c9637fc28b3a1108dcd53d7 (diff) | |
download | hercules-ef7273587ea0867e6d189a297291f3b2c232608d.tar.gz hercules-ef7273587ea0867e6d189a297291f3b2c232608d.tar.bz2 hercules-ef7273587ea0867e6d189a297291f3b2c232608d.tar.xz hercules-ef7273587ea0867e6d189a297291f3b2c232608d.zip |
Monster Vulture's Eye and Snake's Eye removed.
Original PR #1148 by @SamuelHercules committed on 8 Feb 2016
* Monsters no longer have Vulture's Eye level 10 and Snake's Eye level 10 learned by default
* When you tank Cecil Damon from 10-14 cells away, she will no longer use her target skills
* Added a configuration with which you can set the level of Vulture's Eye and Snake's Eye that monsters have learned
Merged rAthena @ cccd1496f716fe02a3db20780b6e52b3c33391b4
Credit: Playtester
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/battle.c | 1 | ||||
-rw-r--r-- | src/map/battle.h | 2 | ||||
-rw-r--r-- | src/map/skill.c | 4 |
3 files changed, 5 insertions, 2 deletions
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) |