lots of text fixes

This commit is contained in:
xenohedron 2023-10-12 21:34:58 -04:00
parent 0081279d15
commit 2013895530
142 changed files with 261 additions and 403 deletions

View file

@ -1,4 +1,3 @@
package mage.abilities.effects.common;
import mage.abilities.Ability;
@ -85,7 +84,10 @@ public class ExileFromZoneTargetEffect extends OneShotEffect {
@Override
public String getText(Mode mode) {
return "target " + (mode.getTargets().isEmpty() ? "player" : mode.getTargets().get(0).getTargetName())
if (staticText != null && !staticText.isEmpty()) {
return staticText;
}
return getTargetPointer().describeTargets(mode.getTargets(), "that player")
+ " exiles " + CardUtil.numberToText(amount, "a") + ' ' + filter.getMessage()
+ " from their " + zone.toString().toLowerCase();
}

View file

@ -45,14 +45,9 @@ public class MayTapOrUntapTargetEffect extends OneShotEffect {
@Override
public String getText(Mode mode) {
if (!staticText.isEmpty()) {
if (staticText != null && !staticText.isEmpty()) {
return staticText;
}
if (mode.getTargets().isEmpty()) {
return "you may tap or untap it";
} else {
String targetName = mode.getTargets().get(0).getTargetName();
return "you may tap or untap " + (targetName.contains("target") ? "" : "target ") + targetName;
}
return "you may tap or untap " + getTargetPointer().describeTargets(mode.getTargets(), "it");
}
}

View file

@ -9,6 +9,7 @@ import mage.abilities.effects.OneShotEffect;
import mage.constants.Outcome;
import mage.game.Game;
import mage.players.Player;
import mage.util.CardUtil;
/**
* @author spjspj
@ -56,7 +57,7 @@ public class RollDiceEffect extends OneShotEffect {
if (!staticText.isEmpty()) {
return staticText;
}
return "Roll a " + numSides + " sided die";
return "Roll a " + CardUtil.numberToText(numSides) + "-sided die";
}
@Override

View file

@ -1,4 +1,3 @@
package mage.abilities.effects.common.continuous;
import mage.MageObject;
@ -13,6 +12,7 @@ import mage.filter.FilterPermanent;
import mage.filter.predicate.mageobject.ColorPredicate;
import mage.game.Game;
import mage.players.Player;
import mage.util.CardUtil;
/**
* @author LoneFox
@ -65,6 +65,7 @@ public class GainProtectionFromColorAllEffect extends GainAbilityAllEffect {
return staticText;
}
return "Choose a color. " + filter.getMessage() + " gain protection from the chosen color " + duration.toString();
return "Choose a color. " + CardUtil.getTextWithFirstCharUpperCase(filter.getMessage())
+ " gain protection from the chosen color " + duration.toString();
}
}