v1.4.2: fixed rare visual errors with rejuv steps cooldown buff icon
This commit is contained in:
@@ -66,6 +66,7 @@ import com.watabou.noosa.Image;
|
||||
import com.watabou.noosa.audio.Sample;
|
||||
import com.watabou.noosa.particles.Emitter;
|
||||
import com.watabou.utils.Bundle;
|
||||
import com.watabou.utils.GameMath;
|
||||
import com.watabou.utils.PathFinder;
|
||||
import com.watabou.utils.Random;
|
||||
|
||||
@@ -198,7 +199,7 @@ public enum Talent {
|
||||
public static class RejuvenatingStepsCooldown extends FlavourBuff{
|
||||
public int icon() { return BuffIndicator.TIME; }
|
||||
public void tintIcon(Image icon) { icon.hardlight(0f, 0.35f, 0.15f); }
|
||||
public float iconFadePercent() { return Math.max(0, visualcooldown() / (15 - 5*Dungeon.hero.pointsInTalent(REJUVENATING_STEPS))); }
|
||||
public float iconFadePercent() { return GameMath.gate(0, visualcooldown() / (15 - 5*Dungeon.hero.pointsInTalent(REJUVENATING_STEPS)), 1); }
|
||||
};
|
||||
public static class RejuvenatingStepsFurrow extends CounterBuff{{revivePersists = true;}};
|
||||
public static class SeerShotCooldown extends FlavourBuff{
|
||||
|
||||
Reference in New Issue
Block a user