summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmokexyz <sagunkho@hotmail.com>2017-04-11 17:32:13 +0800
committerGitHub <noreply@github.com>2017-04-11 17:32:13 +0800
commit7b44f8704e57ee430b1cde8b1c8c85d8961eb9d0 (patch)
tree0bb2cd6a6c81564e126a3632bf31b11cdfce635b
parentfe1b589109b46fecc00ec251b940f84f0979da5b (diff)
parentef7273587ea0867e6d189a297291f3b2c232608d (diff)
downloadhercules-7b44f8704e57ee430b1cde8b1c8c85d8961eb9d0.tar.gz
hercules-7b44f8704e57ee430b1cde8b1c8c85d8961eb9d0.tar.bz2
hercules-7b44f8704e57ee430b1cde8b1c8c85d8961eb9d0.tar.xz
hercules-7b44f8704e57ee430b1cde8b1c8c85d8961eb9d0.zip
Merge pull request #1670 from Smokexyz/vulture-snake-eyes
Monster Vulture's Eye and Snake's Eye removed.
-rw-r--r--conf/map/battle/monster.conf6
-rw-r--r--src/map/battle.c1
-rw-r--r--src/map/battle.h2
-rw-r--r--src/map/skill.c4
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)