Skip to content

Commit

Permalink
Monster Vulture's Eye and Snake's Eye removed (fixes #916)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Playtester committed Jan 20, 2016
1 parent 20e4029 commit cccd149
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions conf/battle/monster.conf
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ view_range_rate: 100
// column in the mob_db. (Note 2)
chase_range_rate: 100

// 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

// Allow monsters to be aggresive and attack first? (Note 1)
monster_active_enable: yes

Expand Down
5 changes: 3 additions & 2 deletions src/map/battle.c
Original file line number Diff line number Diff line change
Expand Up @@ -8162,7 +8162,7 @@ static const struct _battle_data {
{ "arrow_shower_knockback", &battle_config.arrow_shower_knockback, 1, 0, 1, },
{ "devotion_rdamage_skill_only", &battle_config.devotion_rdamage_skill_only, 1, 0, 1, },
{ "max_extended_aspd", &battle_config.max_extended_aspd, 193, 100, 199, },
{ "monster_chase_refresh", &battle_config.mob_chase_refresh, 1, 0, 30, },
{ "monster_chase_refresh", &battle_config.mob_chase_refresh, 3, 0, 30, },

This comment has been minimized.

Copy link
@Lemongrass3110

Lemongrass3110 Jan 21, 2016

Member

is this one intended?

This comment has been minimized.

Copy link
@Playtester

Playtester Jan 21, 2016

Author Member

Yeah, I forgot to update the default value last year, I noticed that when looking at the monster.conf where 3 is the default value. :-)

{ "mob_icewall_walk_block", &battle_config.mob_icewall_walk_block, 75, 0, 255, },
{ "boss_icewall_walk_block", &battle_config.boss_icewall_walk_block, 0, 0, 255, },
{ "snap_dodge", &battle_config.snap_dodge, 0, 0, 1, },
Expand All @@ -8174,10 +8174,11 @@ static const struct _battle_data {
{ "homunculus_evo_intimacy_reset", &battle_config.homunculus_evo_intimacy_reset, 1000, 0, INT_MAX, },
{ "monster_loot_search_type", &battle_config.monster_loot_search_type, 1, 0, 1, },
{ "feature.roulette", &battle_config.feature_roulette, 1, 0, 1, },
{ "monster_hp_bars_info", &battle_config.monster_hp_bars_info, 1, 0, 1, },
{ "monster_hp_bars_info", &battle_config.monster_hp_bars_info, 1, 0, 1, },
{ "min_body_style", &battle_config.min_body_style, 0, 0, SHRT_MAX, },
{ "max_body_style", &battle_config.max_body_style, 4, 0, SHRT_MAX, },
{ "save_body_style", &battle_config.save_body_style, 0, 0, 1, },
{ "monster_eye_range_bonus", &battle_config.mob_eye_range_bonus, 0, 0, 10, },
};

#ifndef STATS_OPT_OUT
Expand Down
1 change: 1 addition & 0 deletions src/map/battle.h
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ extern struct Battle_Config
int min_body_style;
int max_body_style;
int save_body_style;
int mob_eye_range_bonus; //Vulture's Eye and Snake's Eye range bonus
} battle_config;

void do_init_battle(void);
Expand Down
2 changes: 1 addition & 1 deletion src/map/skill.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ int skill_get_range2 (struct block_list *bl, uint16 skill_id, uint16 skill_lv) {
// added to allow GS skills to be effected by the range of Snake Eyes [Reddozen]
if(inf3&INF3_EFF_SNAKEEYE) range += pc_checkskill((TBL_PC*)bl, GS_SNAKEEYE);
} else
range += 10; //Assume level 10?
range += battle_config.mob_eye_range_bonus;
}

if(inf3&(INF3_EFF_SHADOWJUMP|INF3_EFF_RADIUS|INF3_EFF_RESEARCHTRAP) ){
Expand Down

0 comments on commit cccd149

Please sign in to comment.