spjspj - Update Rich Man draft to allow Random packs

This commit is contained in:
spjspj 2016-05-15 23:52:13 +10:00
parent 5ee4b5193e
commit f9e363fb30
7 changed files with 77 additions and 36 deletions

View file

@ -111,4 +111,4 @@ public class RichManBoosterDraft extends DraftImpl {
int time = richManTimes[cardNum - 1] * timing.getFactor();
playerQueryEventSource.pickCard(playerId, "Pick card", player.getBooster(), time);
}
}
}

View file

@ -25,7 +25,6 @@
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com.
*/
package mage.game.tournament;
import java.io.Serializable;
@ -45,8 +44,10 @@ public class TournamentType implements Serializable {
protected boolean limited; // or construced
protected boolean elimination; // or Swiss
protected boolean isRandom;
protected boolean isRichMan = false; // or Rich Man Draft
protected TournamentType() {}
protected TournamentType() {
}
@Override
public String toString() {
@ -84,9 +85,13 @@ public class TournamentType implements Serializable {
public boolean isCubeBooster() {
return cubeBooster;
}
public boolean isRandom(){
public boolean isRandom() {
return this.isRandom;
}
}
public boolean isRichMan() {
return this.isRichMan;
}
}