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