v2.0.0: cleaned up a few tiny errors in rapier and sword abilities

This commit is contained in:
Evan Debenham
2022-12-06 13:41:27 -05:00
parent 8684b972c9
commit 31719db813
2 changed files with 4 additions and 3 deletions

View File

@@ -109,7 +109,7 @@ public class Rapier extends MeleeWeapon {
@Override
public void call() {
//+3+lvl damage, equivalent to +67% damage, but more consistent
if (hero.attack(enemy, 1f, 3 + level(), Char.INFINITE_ACCURACY)){
if (hero.attack(enemy, 1f, augment.damageFactor(3 + level()), Char.INFINITE_ACCURACY)){
Sample.INSTANCE.play(Assets.Sounds.HIT_STRONG);
}
onAbilityUsed(hero);

View File

@@ -79,9 +79,10 @@ public class Sword extends MeleeWeapon {
hero.sprite.attack(enemy.pos, new Callback() {
@Override
public void call() {
hero.attack(enemy, dmgMulti, 0, Char.INFINITE_ACCURACY);
if (hero.attack(enemy, dmgMulti, 0, Char.INFINITE_ACCURACY)){
Sample.INSTANCE.play(Assets.Sounds.HIT_STRONG);
}
wep.onAbilityUsed(hero);
Sample.INSTANCE.play(Assets.Sounds.HIT_STRONG);
if (!enemy.isAlive()){
hero.next();