simplify saga ability constructors

This commit is contained in:
theelk801 2023-05-02 18:45:17 -04:00
parent effc3683da
commit d2b808074d
6 changed files with 8 additions and 20 deletions

View file

@ -33,29 +33,17 @@ public class SagaAbility extends SimpleStaticAbility {
private final boolean readAhead;
public SagaAbility(Card card) {
this(card, SagaChapter.CHAPTER_III);
}
public SagaAbility(Card card, boolean showSacText) {
this(card, showSacText, SagaChapter.CHAPTER_III);
this(card, SagaChapter.CHAPTER_III, false);
}
public SagaAbility(Card card, SagaChapter maxChapter) {
this(card, card.getSecondCardFace() == null, maxChapter);
}
public SagaAbility(Card card, boolean showSacText, SagaChapter maxChapter) {
this(card, maxChapter, false, showSacText);
this(card, maxChapter, false);
}
public SagaAbility(Card card, SagaChapter maxChapter, boolean readAhead) {
this(card, maxChapter, readAhead, card.getSecondCardFace() == null);
}
public SagaAbility(Card card, SagaChapter maxChapter, boolean readAhead, boolean showSacText) {
super(Zone.ALL, null);
this.maxChapter = maxChapter;
this.showSacText = showSacText;
this.showSacText = card.getSecondCardFace() == null && !card.isNightCard();
this.readAhead = readAhead;
this.setRuleVisible(true);
this.setRuleAtTheTop(true);