Skip to content

Commit

Permalink
Cleaned up Impressive Riff ASPD formula
Browse files Browse the repository at this point in the history
* Renewal - No longer has to be /10 each time.
* Pre-renewal - Calculated separately from renewal formula.
  • Loading branch information
aleos89 committed Jun 29, 2016
1 parent b99114c commit 06eab75
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions src/map/skill.c
Expand Up @@ -12673,13 +12673,14 @@ struct skill_unit_group *skill_unitsetting(struct block_list *src, uint16 skill_
}
break;
case BA_ASSASSINCROSS:
val1 = skill_lv + (status->agi/20); // ASPD increase
#ifndef RENEWAL
val1 += 5; // Pre-renewal has a 5% base ASPD increase
if (sd)
val1 = pc_checkskill(sd,BA_MUSICALLESSON) / 2;
#ifdef RENEWAL // ASPD increase
val1 += skill_lv + (status->agi / 20);
#else
val1 += 10 + skill_lv + (status->agi / 10);
val1 *= 10; // ASPD works with 1000 as 100%
#endif
if(sd)
val1 += pc_checkskill(sd,BA_MUSICALLESSON)/2;
val1*=10; // ASPD works with 1000 as 100%
break;
case DC_FORTUNEKISS:
val1 = 10+skill_lv+(status->luk/10); // Critical increase
Expand Down
4 changes: 2 additions & 2 deletions src/map/status.c
Expand Up @@ -6496,7 +6496,7 @@ static short status_calc_aspd(struct block_list *bl, struct status_change *sc, s

if(sc->data[SC_ASSNCROS] && !skills1) {
if (bl->type!=BL_PC)
skills2 += sc->data[SC_ASSNCROS]->val2/10;
skills2 += sc->data[SC_ASSNCROS]->val2;
else
switch(((TBL_PC*)bl)->status.weapon) {
case W_BOW:
Expand All @@ -6507,7 +6507,7 @@ static short status_calc_aspd(struct block_list *bl, struct status_change *sc, s
case W_GRENADE:
break;
default:
skills2 += sc->data[SC_ASSNCROS]->val2/10;
skills2 += sc->data[SC_ASSNCROS]->val2;
break;
}
}
Expand Down

0 comments on commit 06eab75

Please sign in to comment.