mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
force ante - three-state boolean behaviour restored
This commit is contained in:
@@ -68,9 +68,10 @@ public class MatchController {
|
|||||||
gameType = type;
|
gameType = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MatchController(GameType type, Map<LobbyPlayer, PlayerStartConditions> map, boolean forceAnte) {
|
public MatchController(GameType type, Map<LobbyPlayer, PlayerStartConditions> map, Boolean forceAnte) {
|
||||||
this(type, map);
|
this(type, map);
|
||||||
this.useAnte |= forceAnte;
|
if( forceAnte != null )
|
||||||
|
this.useAnte |= forceAnte.booleanValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -403,7 +403,7 @@ public class SSubmenuQuestUtil {
|
|||||||
int extraLifeHuman = 0;
|
int extraLifeHuman = 0;
|
||||||
Integer lifeHuman = null;
|
Integer lifeHuman = null;
|
||||||
boolean useBazaar = true;
|
boolean useBazaar = true;
|
||||||
boolean forceAnte = false;
|
Boolean forceAnte = null;
|
||||||
int lifeAI = 20;
|
int lifeAI = 20;
|
||||||
if (event instanceof QuestEventChallenge) {
|
if (event instanceof QuestEventChallenge) {
|
||||||
QuestEventChallenge qc = ((QuestEventChallenge) event);
|
QuestEventChallenge qc = ((QuestEventChallenge) event);
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ public class QuestEventChallenge extends QuestEvent {
|
|||||||
private boolean repeatable = false;
|
private boolean repeatable = false;
|
||||||
|
|
||||||
private boolean useBazaar = true;
|
private boolean useBazaar = true;
|
||||||
private boolean forceAnte = false;
|
private Boolean forceAnte = false;
|
||||||
|
|
||||||
/** The wins reqd. */
|
/** The wins reqd. */
|
||||||
private int winsReqd = 20;
|
private int winsReqd = 20;
|
||||||
@@ -289,14 +289,14 @@ public class QuestEventChallenge extends QuestEvent {
|
|||||||
/**
|
/**
|
||||||
* @return the forceAnte
|
* @return the forceAnte
|
||||||
*/
|
*/
|
||||||
public boolean isForceAnte() {
|
public Boolean isForceAnte() {
|
||||||
return forceAnte;
|
return forceAnte;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param forceAnte the forceAnte to set
|
* @param forceAnte the forceAnte to set
|
||||||
*/
|
*/
|
||||||
public void setForceAnte(boolean forceAnte) {
|
public void setForceAnte(Boolean forceAnte) {
|
||||||
this.forceAnte = forceAnte;
|
this.forceAnte = forceAnte;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user