Skip to content

Commit

Permalink
Rebalance of RG_RAID (Sightless Mind)
Browse files Browse the repository at this point in the history
- SP cost reduced: 20 -> 15
- Damage increased
  - Old: [100 + (Skill Level x 40)]%
  - New: [50 + (Skill Level x 150)]%
- Damage debuff changed
  - Old: 20% more damage for 5 seconds or 7 hits
  - New: 30% more damage (15% on boss monsters) for 10 seconds

From massive skills rebalance (1st/2nd/transclass) (2018.10.31)
  • Loading branch information
guilherme-gm committed Apr 27, 2024
1 parent 4f4d03c commit f7680a7
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 14 deletions.
4 changes: 2 additions & 2 deletions db/pre-re/skill_db.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6538,8 +6538,8 @@ skill_db: (
SplashArea: true
}
SplashRange: 1
SkillData1: 5000
SkillData2: 30000
SkillData1: 5_000 // Stun duration (in miliseconds)
SkillData2: 30_000 // Blind duration (in miliseconds)
CoolDown: 0
Requirements: {
SPCost: 20
Expand Down
6 changes: 3 additions & 3 deletions db/re/skill_db.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6669,11 +6669,11 @@ skill_db: (
SplashArea: true
}
SplashRange: 3
SkillData1: 5000
SkillData2: 20000
SkillData1: 5_000 // Stun duration (in miliseconds)
SkillData2: 20_000 // Blind duration (in miliseconds)
FixedCastTime: 0
Requirements: {
SPCost: 20
SPCost: 15
State: "Hiding"
}
},
Expand Down
12 changes: 6 additions & 6 deletions src/map/battle.c
Original file line number Diff line number Diff line change
Expand Up @@ -2184,7 +2184,11 @@ static int battle_calc_skillratio(int attack_type, struct block_list *src, struc
skillratio += 200 + 40 * skill_lv;
break;
case RG_RAID:
#ifndef RENEWAL
skillratio += 40 * skill_lv;
#else
skillratio += -50 + 150 * skill_lv;
#endif
break;
case RG_INTIMIDATE:
skillratio += 30 * skill_lv;
Expand Down Expand Up @@ -3294,12 +3298,8 @@ static int64 battle_calc_damage(struct block_list *src, struct block_list *bl, s
}

#ifdef RENEWAL
if( sc->data[SC_RAID] ) {
damage += damage * 20 / 100;

if (--sc->data[SC_RAID]->val1 == 0)
status_change_end(bl, SC_RAID, INVALID_TIMER);
}
if (sc->data[SC_RAID] != NULL)
damage += damage * sc->data[SC_RAID]->val2 / 100;
#endif

if( damage ) {
Expand Down
8 changes: 5 additions & 3 deletions src/map/skill.c
Original file line number Diff line number Diff line change
Expand Up @@ -1820,14 +1820,16 @@ static int skill_additional_effect(struct block_list *src, struct block_list *bl
sc_start(src, bl, SC_STUN, (10 + 3 * skill_lv), skill_lv, skill->get_time(skill_id, skill_lv), skill_id);
sc_start(src, bl, SC_BLIND, (10 + 3 * skill_lv), skill_lv, skill->get_time2(skill_id, skill_lv), skill_id);

#ifdef RENEWAL
sc_start(src, bl, SC_RAID, 100, 7, 5000, skill_id);
#ifdef RENEWAL
sc_start(src, bl, SC_RAID, 100, 7, 10000, skill_id);
#endif
break;

#ifdef RENEWAL
case RG_BACKSTAP:
sc_start(src, bl, SC_STUN, (5 + 2 * skill_lv), skill_lv, skill->get_time(skill_id, skill_lv), skill_id);
#endif
break;
#endif

case BA_FROSTJOKE:
sc_start(src, bl, SC_FREEZE, (15 + 5 * skill_lv), skill_lv, skill->get_time2(skill_id, skill_lv), skill_id);
Expand Down
10 changes: 10 additions & 0 deletions src/map/status.c
Original file line number Diff line number Diff line change
Expand Up @@ -7280,6 +7280,16 @@ static int status_change_start_sub(struct block_list *src, struct block_list *bl
}
if (total_tick == 1) return 1; //Minimal duration: Only strip without causing the SC
break;

#ifdef RENEWAL
case SC_RAID:
if (bl->type == BL_MOB && is_boss(bl))
val2 = 15; // Receives 15% more damage
else
val2 = 30; // Receives 30% more damage
break;
#endif

case SC_MER_FLEE:
case SC_MER_ATK:
case SC_MER_HP:
Expand Down

0 comments on commit f7680a7

Please sign in to comment.