mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 13:32:06 -08:00
[AFR] various text fixes
This commit is contained in:
parent
d2f2578cc4
commit
3299641ad4
30 changed files with 78 additions and 66 deletions
|
|
@ -118,24 +118,25 @@ public class BeginningOfEndStepTriggeredAbility extends TriggeredAbilityImpl {
|
|||
}
|
||||
|
||||
private String generateConditionString() {
|
||||
if (interveningIfClauseCondition != null) {
|
||||
if (interveningIfClauseCondition.toString().startsWith("if")) {
|
||||
|
||||
//Fixes punctuation on multiple sentence if-then construction
|
||||
// see -- Colfenor's Urn
|
||||
if (interveningIfClauseCondition.toString().endsWith(".")) {
|
||||
return interveningIfClauseCondition.toString() + " ";
|
||||
}
|
||||
|
||||
return interveningIfClauseCondition.toString() + ", ";
|
||||
} else {
|
||||
return "if {this} is " + interveningIfClauseCondition.toString() + ", ";
|
||||
if (interveningIfClauseCondition == null) {
|
||||
switch (getZone()) {
|
||||
case GRAVEYARD:
|
||||
return "if {this} is in your graveyard, ";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
switch (getZone()) {
|
||||
case GRAVEYARD:
|
||||
return "if {this} is in your graveyard, ";
|
||||
String clauseText = interveningIfClauseCondition.toString();
|
||||
if (clauseText.startsWith("if")) {
|
||||
//Fixes punctuation on multiple sentence if-then construction
|
||||
// see -- Colfenor's Urn
|
||||
if (clauseText.endsWith(".")) {
|
||||
return clauseText + " ";
|
||||
}
|
||||
return clauseText + ", ";
|
||||
}
|
||||
return "";
|
||||
System.out.println("==================");
|
||||
System.out.println(clauseText);
|
||||
System.out.println("==================");
|
||||
return "if " + clauseText + ", ";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ import mage.game.Game;
|
|||
import mage.game.events.GameEvent;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class CastOnlyIfConditionIsTrueEffect extends ContinuousRuleModifyingEffectImpl {
|
||||
|
|
@ -52,7 +51,7 @@ public class CastOnlyIfConditionIsTrueEffect extends ContinuousRuleModifyingEffe
|
|||
private String setText() {
|
||||
StringBuilder sb = new StringBuilder("cast this spell only ");
|
||||
if (condition != null) {
|
||||
sb.append(' ').append(condition.toString());
|
||||
sb.append(condition);
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public enum EquippedSourceCondition implements Condition {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "equipped";
|
||||
return "{this} is equipped";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -182,10 +182,13 @@ public class BecomesCreatureTargetEffect extends ContinuousEffectImpl {
|
|||
sb.append(token.getDescription());
|
||||
sb.append(' ').append(duration.toString());
|
||||
if (addStillALandText) {
|
||||
if (!sb.toString().endsWith("\" ")) {
|
||||
sb.append(". ");
|
||||
}
|
||||
if (target.getMaxNumberOfTargets() > 1) {
|
||||
sb.append(". They're still lands");
|
||||
sb.append("They're still lands");
|
||||
} else {
|
||||
sb.append(". It's still a land");
|
||||
sb.append("It's still a land");
|
||||
}
|
||||
}
|
||||
return sb.toString().replace(" .", ".");
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public class SearchLibraryGraveyardPutInHandEffect extends OneShotEffect {
|
|||
this.filter = filter;
|
||||
this.forceToSearchBoth = forceToSearchBoth;
|
||||
staticText = (youMay ? "you may " : "") + "search your library and" + (forceToSearchBoth ? "" : "/or") + " graveyard for a card named " + filter.getMessage()
|
||||
+ ", reveal it, and put it into your hand. " + (forceToSearchBoth ? "Then shuffle" : "If you search your library this way, shuffle");
|
||||
+ ", reveal it, and put it into your hand. " + (forceToSearchBoth ? "Then shuffle" : "If you search your library this way, shuffle it");
|
||||
}
|
||||
|
||||
public SearchLibraryGraveyardPutInHandEffect(final SearchLibraryGraveyardPutInHandEffect effect) {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public class EquipAbility extends ActivatedAbilityImpl {
|
|||
public EquipAbility(Outcome outcome, Cost cost, Target target) {
|
||||
super(Zone.BATTLEFIELD, new EquipEffect(outcome), cost);
|
||||
this.addTarget(target);
|
||||
this.timing = TimingRule.SORCERY;
|
||||
this.timing = TimingRule.SORCERY;
|
||||
}
|
||||
|
||||
public EquipAbility(final EquipAbility ability) {
|
||||
|
|
@ -50,19 +50,23 @@ public class EquipAbility extends ActivatedAbilityImpl {
|
|||
String targetText = getTargets().get(0) != null ? getTargets().get(0).getFilter().getMessage() : "creature";
|
||||
String reminderText = " <i>(" + manaCosts.getText() + ": Attach to target " + targetText + ". Equip only as a sorcery. This card enters the battlefield unattached and stays on the battlefield if the creature leaves.)</i>";
|
||||
|
||||
StringBuilder sb = new StringBuilder("Equip ");
|
||||
StringBuilder sb = new StringBuilder("Equip");
|
||||
if (!targetText.equals("creature you control")) {
|
||||
sb.append(targetText);
|
||||
sb.append(' ').append(targetText);
|
||||
}
|
||||
String costText = costs.getText();
|
||||
if (costText != null && !costText.isEmpty()) {
|
||||
sb.append("—").append(costText).append('.');
|
||||
} else {
|
||||
sb.append(' ');
|
||||
}
|
||||
sb.append(costs.getText());
|
||||
sb.append(manaCosts.getText());
|
||||
if (costReduceText != null && !costReduceText.isEmpty()) {
|
||||
sb.append(' ');
|
||||
sb.append(". ");
|
||||
sb.append(costReduceText);
|
||||
}
|
||||
if (maxActivationsPerTurn == 1) {
|
||||
sb.append(" Activate only once each turn.");
|
||||
sb.append(". Activate only once each turn.");
|
||||
}
|
||||
sb.append(reminderText);
|
||||
return sb.toString();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue