mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
[ZNR] fixed text and hint colors (#7047);
This commit is contained in:
parent
7538682530
commit
01c7ed3e70
1 changed files with 3 additions and 11 deletions
|
@ -2,7 +2,6 @@ package mage.abilities.condition.common;
|
|||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.abilities.hint.ConditionHint;
|
||||
import mage.abilities.hint.Hint;
|
||||
import mage.abilities.hint.HintUtils;
|
||||
import mage.game.Game;
|
||||
|
@ -10,7 +9,6 @@ import mage.game.Graveyard;
|
|||
import mage.players.Player;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
import java.awt.*;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
|
@ -76,15 +74,9 @@ public enum CardsInOpponentGraveCondition implements Condition {
|
|||
.mapToInt(Graveyard::size)
|
||||
.max()
|
||||
.orElse(0);
|
||||
String text = "An opponent has "
|
||||
+ CardUtil.numberToText(maxGraveSize) + " card"
|
||||
+ (maxGraveSize == 1 ? "" : "s")
|
||||
+ " in their graveyard";
|
||||
if (maxGraveSize >= this.value) {
|
||||
return HintUtils.prepareText(text, Color.GREEN, HintUtils.HINT_ICON_GOOD);
|
||||
} else {
|
||||
return HintUtils.prepareText(text, Color.RED, HintUtils.HINT_ICON_BAD);
|
||||
}
|
||||
String text = "Opponent graveyard size: " + maxGraveSize
|
||||
+ " (need: " + value + ")";
|
||||
return HintUtils.prepareText(text, null, maxGraveSize >= this.value ? HintUtils.HINT_ICON_GOOD : HintUtils.HINT_ICON_BAD);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue