mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Aestetic text changes (booster type "T2" renamed to Standard)
This commit is contained in:
@@ -282,15 +282,12 @@ public class Gui_WinLose extends JFrame implements NewConstants {
|
|||||||
|
|
||||||
int estatesLevel = q.getInventory().getItemLevel("Estates");
|
int estatesLevel = q.getInventory().getItemLevel("Estates");
|
||||||
|
|
||||||
if (estatesLevel == 1) {
|
if (estatesLevel == 1) { sb.append("Estates bonus: <b>10%</b>.<br>");
|
||||||
sb.append("Estates bonus: <b>10%</b>.<br>");
|
} else if (estatesLevel == 2) { sb.append("Estates bonus: <b>15%</b>.<br>");
|
||||||
} else if (estatesLevel == 2) {
|
} else if (estatesLevel == 3) { sb.append("Estates bonus: <b>20%</b>.<br>");
|
||||||
sb.append("Estates bonus: <b>15%</b>.<br>");
|
|
||||||
} else if (estatesLevel == 3) {
|
|
||||||
sb.append("Estates bonus: <b>20%</b>.<br>");
|
|
||||||
}
|
}
|
||||||
sb.append("You have earned <b>" + creds + " credits</b> in total.");
|
|
||||||
|
sb.append(String.format("<br>You have earned <b>%d credits</b> in total.", creds));
|
||||||
sb.append("</html>");
|
sb.append("</html>");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
@@ -378,16 +375,16 @@ public class Gui_WinLose extends JFrame implements NewConstants {
|
|||||||
|
|
||||||
protected void giveBooster()
|
protected void giveBooster()
|
||||||
{
|
{
|
||||||
String[] boosterTypes = {"Legacy", "Extended", "T2"};
|
String[] boosterTypes = {"Legacy", "Extended", "Standard"};
|
||||||
String boosterType = GuiUtils.getChoice("Choose prize booster type", boosterTypes);
|
String boosterType = GuiUtils.getChoice("Choose a format of cards for the prize booster", boosterTypes);
|
||||||
List<String> setsToGive = null;
|
List<String> setsToGive = null;
|
||||||
if (boosterTypes[2].equals( boosterType )) { // T2
|
if (boosterTypes[2].equals(boosterType)) { // T2
|
||||||
setsToGive = new ArrayList<String>();
|
setsToGive = new ArrayList<String>();
|
||||||
setsToGive.addAll( Arrays.asList(new String[]{"M12","NPH","MBS","M11","ROE","WWK","ZEN"}) );
|
setsToGive.addAll(Arrays.asList(new String[]{"M12","NPH","MBS","M11","ROE","WWK","ZEN"}));
|
||||||
}
|
}
|
||||||
if (boosterTypes[1].equals( boosterType )) { // Ext
|
if (boosterTypes[1].equals(boosterType)) { // Ext
|
||||||
setsToGive = new ArrayList<String>();
|
setsToGive = new ArrayList<String>();
|
||||||
setsToGive.addAll( Arrays.asList(new String[]{"M12","NPH","MBS","M11","ROE","WWK","ZEN","M10","ARB","CFX","ALA","MOR","SHM","EVE","LRW"}) );
|
setsToGive.addAll(Arrays.asList(new String[]{"M12","NPH","MBS","M11","ROE","WWK","ZEN","M10","ARB","CFX","ALA","MOR","SHM","EVE","LRW"}));
|
||||||
}
|
}
|
||||||
|
|
||||||
ArrayList<String> cardsWon = model.quest.addCards(setsToGive);
|
ArrayList<String> cardsWon = model.quest.addCards(setsToGive);
|
||||||
@@ -395,7 +392,7 @@ public class Gui_WinLose extends JFrame implements NewConstants {
|
|||||||
CardListViewer c = new CardListViewer("Booster", "You have won the following new cards", cardsWon, icon);
|
CardListViewer c = new CardListViewer("Booster", "You have won the following new cards", cardsWon, icon);
|
||||||
c.show();
|
c.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void giveQuestRewards(final boolean wonMatch) {
|
protected void giveQuestRewards(final boolean wonMatch) {
|
||||||
// Award a random booster, as frequent as set in difficulty setup
|
// Award a random booster, as frequent as set in difficulty setup
|
||||||
if (model.quest.shouldAddCards(wonMatch)) {
|
if (model.quest.shouldAddCards(wonMatch)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user