built hints into devotion class

This commit is contained in:
Evan Kranzler 2019-12-29 10:27:23 -05:00
parent 6f299d8ccc
commit d9e0b75545

View file

@ -5,6 +5,8 @@ import mage.abilities.Ability;
import mage.abilities.costs.mana.ManaCost; import mage.abilities.costs.mana.ManaCost;
import mage.abilities.dynamicvalue.DynamicValue; import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.effects.Effect; import mage.abilities.effects.Effect;
import mage.abilities.hint.Hint;
import mage.abilities.hint.ValueHint;
import mage.constants.ColoredManaSymbol; import mage.constants.ColoredManaSymbol;
import mage.game.Game; import mage.game.Game;
@ -35,10 +37,12 @@ public enum DevotionCount implements DynamicValue {
GW(ColoredManaSymbol.G, ColoredManaSymbol.W), GW(ColoredManaSymbol.G, ColoredManaSymbol.W),
GU(ColoredManaSymbol.G, ColoredManaSymbol.U); GU(ColoredManaSymbol.G, ColoredManaSymbol.U);
private ArrayList<ColoredManaSymbol> devotionColors = new ArrayList<>(); private final ArrayList<ColoredManaSymbol> devotionColors = new ArrayList<>();
private final Hint hint;
DevotionCount(ColoredManaSymbol... devotionColor) { DevotionCount(ColoredManaSymbol... devotionColor) {
this.devotionColors.addAll(Arrays.asList(devotionColor)); this.devotionColors.addAll(Arrays.asList(devotionColor));
this.hint = new ValueHint(this.getMessage().replace("your d", "D"), this);
} }
@Override @Override
@ -79,4 +83,8 @@ public enum DevotionCount implements DynamicValue {
} }
return sb.toString(); return sb.toString();
} }
public Hint getHint() {
return hint;
}
} }