forked from External/mage
* Performance: memory usage optimization for deck editor (removed bloated usage of ManaCosts -> ManaColor objects, see #7515);
This commit is contained in:
parent
c3d55ea12a
commit
275e996c08
23 changed files with 170 additions and 143 deletions
|
|
@ -791,6 +791,15 @@ public final class CardUtil {
|
|||
return res;
|
||||
}
|
||||
|
||||
public static String concatManaSymbols(String delimeter, String mana1, String mana2) {
|
||||
String res = mana1;
|
||||
if (!res.isEmpty() && !mana2.isEmpty() && delimeter != null && !delimeter.isEmpty()) {
|
||||
res += delimeter;
|
||||
}
|
||||
res += mana2;
|
||||
return res;
|
||||
}
|
||||
|
||||
public static ColoredManaSymbol manaTypeToColoredManaSymbol(ManaType manaType) {
|
||||
switch (manaType) {
|
||||
case BLACK:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue