v2.0.0: added fading to visual weapon ability buffs
This commit is contained in:
@@ -84,5 +84,10 @@ public class RoundShield extends MeleeWeapon {
|
||||
public int icon() {
|
||||
return BuffIndicator.DUEL_GUARD;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float iconFadePercent() {
|
||||
return Math.max(0, (5 - visualcooldown()) / 5);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -107,6 +107,11 @@ public class Sword extends MeleeWeapon {
|
||||
public int icon() {
|
||||
return BuffIndicator.DUEL_CLEAVE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float iconFadePercent() {
|
||||
return Math.max(0, (5 - visualcooldown()) / 5);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user