merge fix

This commit is contained in:
Oleg Agafonov 2025-05-24 20:12:53 +04:00
parent f3ba897536
commit ef4431e7f2
2 changed files with 2 additions and 1 deletions

View file

@ -59,7 +59,7 @@ public class EdhPowerLevelLegalityLabel extends LegalityLabel {
// use 60% font for better and compatible list
int infoFontSize = Math.round(GUISizeHelper.cardTooltipFont.getSize() * 0.6f);
int maxLimit = 25;
String extraInfo = this.foundPowerCards.size() <= maxLimit ? "" : String.format("<li style=\"margin-bottom: 2px;\">and %d more cards</li>", maxLimit - this.foundPowerCards.size());
String extraInfo = this.foundPowerCards.size() <= maxLimit ? "" : String.format("<li style=\"margin-bottom: 2px;\">and %d more cards</li>", this.foundPowerCards.size() - maxLimit);
return foundInfo.stream()
.limit(maxLimit)
.reduce("<html><body>"

View file

@ -260,6 +260,7 @@ public abstract class AbstractCommander extends Constructed {
@Override
public int getEdhPowerLevel(Deck deck, List<String> foundPowerCards, List<String> foundInfo) {
// calculate power level and find all related cards with it to show in hints (see deck validation in deck editor)
// example: https://edhpowerlevel.com
int edhPowerLevel = 0;
int commanderColors = 0;
int numberInfinitePieces = 0;