mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
A few minor tweaks for wording and calculating when rewards are awarded. (Ex: Jackpot is now awarded on the 80th win, not the 81st.)
This commit is contained in:
@@ -184,7 +184,7 @@ public class QuestWinLose extends ControlWinLose {
|
||||
|
||||
// Award jackpot every 80 games won (currently 10 rares)
|
||||
|
||||
if ((wins > 0) && ((wins % 80) == 0)) {
|
||||
if ((wins > 0) && (((wins + 1) % 80) == 0)) {
|
||||
this.awardJackpot();
|
||||
}
|
||||
|
||||
@@ -624,9 +624,9 @@ public class QuestWinLose extends ControlWinLose {
|
||||
if (this.wonMatch) {
|
||||
maxChoices++;
|
||||
final int wins = qData.getAchievements().getWin();
|
||||
if (wins + 1 % 5 == 0) { maxChoices++; }
|
||||
if (wins + 1 % 20 == 0) { maxChoices++; }
|
||||
if (wins + 1 % 50 == 0) { maxChoices++; }
|
||||
if ((wins + 1) % 5 == 0) { maxChoices++; }
|
||||
if ((wins + 1) % 20 == 0) { maxChoices++; }
|
||||
if ((wins + 1) % 50 == 0) { maxChoices++; }
|
||||
maxChoices += qData.getAssets().getItemLevel(QuestItemType.MEMBERSHIP_TOKEN);
|
||||
}
|
||||
|
||||
|
||||
@@ -197,13 +197,13 @@ public class PlayArea extends CardPanelContainer implements CardPanelMouseListen
|
||||
|
||||
int insertIndex = -1;
|
||||
|
||||
// Find tokens with the same name.
|
||||
// Find creatures with the same name.
|
||||
for (int i = 0, n = allCreatures.size(); i < n; i++) {
|
||||
final CardStack stack = allCreatures.get(i);
|
||||
final CardPanel firstPanel = stack.get(0);
|
||||
if (firstPanel.getCard().getName().equals(panel.getCard().getName())) {
|
||||
if (!firstPanel.getAttachedPanels().isEmpty()) {
|
||||
// Put this token to the left of tokens with the same
|
||||
// Put this creature to the left of creatures with the same
|
||||
// name and attachments.
|
||||
insertIndex = i;
|
||||
break;
|
||||
@@ -217,7 +217,7 @@ public class PlayArea extends CardPanelContainer implements CardPanelMouseListen
|
||||
|| (panel.getCard().getNetAttack() != firstPanel.getCard().getNetAttack())
|
||||
|| (panel.getCard().getNetDefense() != firstPanel.getCard().getNetDefense())
|
||||
|| (stack.size() == creatureStackMax)) {
|
||||
// If this token has attachments or the stack is full,
|
||||
// If this creature has attachments or the stack is full,
|
||||
// put it to the right.
|
||||
insertIndex = i + 1;
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user