mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
built hints into devotion class
This commit is contained in:
parent
6f299d8ccc
commit
d9e0b75545
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue