forked from External/mage
All 1-character strings converted to primitives
"b" + "r" now changed to 'b' + 'w'. It's more straight-forward, and may cause perfomance improvements - character primitives allocation is faster and less expensive than string creation.
This commit is contained in:
parent
7b35e25347
commit
0de8bd2f70
453 changed files with 991 additions and 979 deletions
|
|
@ -160,7 +160,7 @@ public class AlternativeCostSourceAbility extends StaticAbility implements Alter
|
|||
if (dynamicCost != null) {
|
||||
costChoiceText = dynamicCost.getText(ability, game);
|
||||
} else {
|
||||
costChoiceText = alternativeCostsToCheck.isEmpty() ? "Cast without paying its mana cost?" : "Pay alternative costs? (" + alternativeCostsToCheck.getText() + ")";
|
||||
costChoiceText = alternativeCostsToCheck.isEmpty() ? "Cast without paying its mana cost?" : "Pay alternative costs? (" + alternativeCostsToCheck.getText() + ')';
|
||||
}
|
||||
|
||||
if (alternativeCostsToCheck.canPay(ability, ability.getSourceId(), ability.getControllerId(), game)
|
||||
|
|
@ -263,9 +263,9 @@ public class AlternativeCostSourceAbility extends StaticAbility implements Alter
|
|||
} else if (alternateCosts.isEmpty()) {
|
||||
sb.append("cast {this} without paying its mana cost");
|
||||
}
|
||||
sb.append(".");
|
||||
sb.append('.');
|
||||
if (numberCosts == 1 && remarkText != null) {
|
||||
sb.append(" ").append(remarkText);
|
||||
sb.append(' ').append(remarkText);
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue