From 5f3d3713bc5c916f6d36416680a0da22b3beb26f Mon Sep 17 00:00:00 2001 From: gepard1984 Date: Tue, 3 Jan 2012 22:25:12 +0000 Subject: Removed unused and unofficial bonus `bRandomAttackIncrease` (in SVN since r2, bugreport:2139). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15372 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/battle.c | 5 +---- src/map/map.h | 2 +- src/map/pc.c | 6 ------ src/map/pc.h | 1 - src/map/status.c | 2 -- 5 files changed, 2 insertions(+), 14 deletions(-) (limited to 'src') diff --git a/src/map/battle.c b/src/map/battle.c index 3fe4a23b0..9b79927da 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -1515,10 +1515,7 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo skillratio += 100; } if( !skill_num ) - { // Random chance to deal multiplied damage - Consider it as part of skill-based-damage - if( sd && sd->random_attack_increase_add > 0 && sd->random_attack_increase_per && rand()%100 < sd->random_attack_increase_per ) - skillratio += sd->random_attack_increase_add; - + { ATK_RATE(skillratio); } else diff --git a/src/map/map.h b/src/map/map.h index bb75d57bb..afd7aa883 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -351,7 +351,7 @@ enum _sp { SP_SPLASH_RANGE,SP_SPLASH_ADD_RANGE,SP_AUTOSPELL,SP_HP_DRAIN_RATE,SP_SP_DRAIN_RATE, // 1058-1062 SP_SHORT_WEAPON_DAMAGE_RETURN,SP_LONG_WEAPON_DAMAGE_RETURN,SP_WEAPON_COMA_ELE,SP_WEAPON_COMA_RACE, // 1063-1066 SP_ADDEFF2,SP_BREAK_WEAPON_RATE,SP_BREAK_ARMOR_RATE,SP_ADD_STEAL_RATE, // 1067-1070 - SP_MAGIC_DAMAGE_RETURN,SP_RANDOM_ATTACK_INCREASE,SP_ALL_STATS,SP_AGI_VIT,SP_AGI_DEX_STR,SP_PERFECT_HIDE, // 1071-1076 + SP_MAGIC_DAMAGE_RETURN,SP_ALL_STATS=1073,SP_AGI_VIT,SP_AGI_DEX_STR,SP_PERFECT_HIDE, // 1071-1076 SP_NO_KNOCKBACK,SP_CLASSCHANGE, // 1077-1078 SP_HP_DRAIN_VALUE,SP_SP_DRAIN_VALUE, // 1079-1080 SP_WEAPON_ATK,SP_WEAPON_ATK_RATE, // 1081-1082 diff --git a/src/map/pc.c b/src/map/pc.c index d16c25b69..9d0868c19 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -2625,12 +2625,6 @@ int pc_bonus2(struct map_session_data *sd,int type,int type2,int val) sd->weapon_coma_race[type2] += val; sd->special_state.bonus_coma = 1; break; - case SP_RANDOM_ATTACK_INCREASE: // [Valaris] - if(sd->state.lr_flag !=2){ - sd->random_attack_increase_add = type2; - sd->random_attack_increase_per += val; - } - break; case SP_WEAPON_ATK: if(sd->state.lr_flag != 2) sd->weapon_atk[type2]+=val; diff --git a/src/map/pc.h b/src/map/pc.h index 7f036d790..8a82a278a 100644 --- a/src/map/pc.h +++ b/src/map/pc.h @@ -293,7 +293,6 @@ struct map_session_data { int double_add_rate; int short_weapon_damage_return,long_weapon_damage_return; int magic_damage_return; // AppleGirl Was Here - int random_attack_increase_add,random_attack_increase_per; // [Valaris] int break_weapon_rate,break_armor_rate; int crit_atk_rate; int classchange; // [Valaris] diff --git a/src/map/status.c b/src/map/status.c index 8ebe4c022..41642e78f 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -2145,8 +2145,6 @@ int status_calc_pc_(struct map_session_data* sd, bool first) + sizeof(sd->short_weapon_damage_return) + sizeof(sd->long_weapon_damage_return) + sizeof(sd->magic_damage_return) - + sizeof(sd->random_attack_increase_add) - + sizeof(sd->random_attack_increase_per) + sizeof(sd->break_weapon_rate) + sizeof(sd->break_armor_rate) + sizeof(sd->crit_atk_rate) -- cgit v1.2.3-70-g09d2