diff options
author | kisuka <kisuka@kisuka.com> | 2019-10-08 17:53:48 -0700 |
---|---|---|
committer | kisuka <kisuka@kisuka.com> | 2019-10-08 17:53:48 -0700 |
commit | 992c977e23c3b2d38980e635379ed93da3b76d78 (patch) | |
tree | f348af2203db007d29513b9116ffc7e4b2622cbd /src/map | |
parent | d026e28fd78f60dfa21da381f17f2a8cc9ae3d11 (diff) | |
download | hercules-992c977e23c3b2d38980e635379ed93da3b76d78.tar.gz hercules-992c977e23c3b2d38980e635379ed93da3b76d78.tar.bz2 hercules-992c977e23c3b2d38980e635379ed93da3b76d78.tar.xz hercules-992c977e23c3b2d38980e635379ed93da3b76d78.zip |
Removed jAthena 1082 legacy code related to Castle Defense Rate.
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/battle.c | 6 | ||||
-rw-r--r-- | src/map/battle.h | 1 |
2 files changed, 0 insertions, 7 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 37fc03bca..726547c66 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -3467,11 +3467,6 @@ static int64 battle_calc_gvg_damage(struct block_list *src, struct block_list *b case NC_SELFDESTRUCTION: break; default: - /* Uncomment if you want god-mode Emperiums at 100 defense. [Kisuka] - if (md && md->guardian_data) { - damage -= damage * (md->guardian_data->castle->defense/100) * battle_config.castle_defense_rate/100; - } - */ break; } return damage; @@ -7188,7 +7183,6 @@ static const struct battle_data { { "skill_removetrap_type", &battle_config.skill_removetrap_type, 0, 0, 1, }, { "disp_experience", &battle_config.disp_experience, 0, 0, 1, }, { "disp_zeny", &battle_config.disp_zeny, 0, 0, 1, }, - { "castle_defense_rate", &battle_config.castle_defense_rate, 100, 0, 100, }, { "bone_drop", &battle_config.bone_drop, 0, 0, 2, }, { "buyer_name", &battle_config.buyer_name, 1, 0, 1, }, { "skill_wall_check", &battle_config.skill_wall_check, 1, 0, 1, }, diff --git a/src/map/battle.h b/src/map/battle.h index 4400d37d1..e9bc6b258 100644 --- a/src/map/battle.h +++ b/src/map/battle.h @@ -342,7 +342,6 @@ struct Battle_Config { int skill_removetrap_type; int disp_experience; int disp_zeny; - int castle_defense_rate; int backstab_bow_penalty; int hp_rate; int sp_rate; |