* Allow to addd hint texts to stack abilities. Swicthed to html text format for text box of stack abilites.

This commit is contained in:
LevelX2 2020-07-02 00:53:46 +02:00
parent f409f56c05
commit 84370ee5ab
11 changed files with 64 additions and 46 deletions

View file

@ -9,8 +9,8 @@ import mage.game.Game;
*/
public class ValueHint implements Hint {
private String name;
private DynamicValue value;
private final String name;
private final DynamicValue value;
public ValueHint(String name, DynamicValue value) {
this.name = name;

View file

@ -12,7 +12,7 @@ import mage.game.Game;
public enum AbilityResolutionCountHint implements Hint {
instance;
private static final Hint hint = new ValueHint("Resolution count:", AbilityResolutionCount.instance);
private static final Hint hint = new ValueHint("Resolution count", AbilityResolutionCount.instance);
@Override
public String getText(Game game, Ability ability) {

View file

@ -953,7 +953,7 @@ public abstract class GameImpl implements Game, Serializable {
}
// Choose a companion from the list of legal companions
for (Card card : potentialCompanions) {
if (player.chooseUse(Outcome.Benefit, "Use " + card.getName() + " as your companion?", null, this)) {
if (player.chooseUse(Outcome.Benefit, "Use " + card.getLogName() + " as your companion?", null, this)) {
playerCompanionMap.put(player, card);
break;
}