v0.3.0: buff descriptions round 3 plus some tweaks to displaying remaining turns.

This commit is contained in:
Evan Debenham
2015-05-14 19:57:15 -04:00
parent e8a2004345
commit ea628b7212
12 changed files with 93 additions and 6 deletions
@@ -81,8 +81,8 @@ public class Buff extends Actor {
}
//to handle the common case of showing how many turns are remaining in a buff description.
protected String dispTurns() {
return cooldown() == 1 ? "1 more turn" : new DecimalFormat("#.##").format(cooldown()) + " more turns";
protected String dispTurns(float input){
return input == 1 ? "1 more turn" : new DecimalFormat("#.##").format(input) + " more turns";
}
public static<T extends Buff> T append( Char target, Class<T> buffClass ) {