mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
* Allow to addd hint texts to stack abilities. Swicthed to html text format for text box of stack abilites.
This commit is contained in:
parent
f409f56c05
commit
84370ee5ab
11 changed files with 64 additions and 46 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue