mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Raising max sell price to 1000
This commit is contained in:
@@ -372,7 +372,7 @@ public class Gui_CardShop extends JFrame implements CardContainer, DeckDisplay,
|
||||
NumberFormat formatter = new DecimalFormat("#0.00");
|
||||
String maxSellingPrice = "";
|
||||
if (questData.getWin() <= 50)
|
||||
maxSellingPrice = " Max selling price: 500";
|
||||
maxSellingPrice = " Max selling price: 1000";
|
||||
sellPercentageLabel.setText("(Sell percentage: " + formatter.format(multiPercent) + "% of value)"
|
||||
+ maxSellingPrice);
|
||||
|
||||
@@ -716,8 +716,8 @@ public class Gui_CardShop extends JFrame implements CardContainer, DeckDisplay,
|
||||
questData.addCardToShopList(c);
|
||||
|
||||
long price = (long) (multi * c.getValue());
|
||||
if (questData.getWin() <= 50 && price > 500)
|
||||
price = 500;
|
||||
if (questData.getWin() <= 50 && price > 1000)
|
||||
price = 1000;
|
||||
|
||||
questData.addCredits(price);
|
||||
questData.removeCard(c);
|
||||
|
||||
Reference in New Issue
Block a user