Skip to content

Commit

Permalink
update for latest GHS
Browse files Browse the repository at this point in the history
  • Loading branch information
Lurkars committed Mar 16, 2024
1 parent 816afe0 commit fcece37
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>17</java.version>
<revision>0.91.0</revision>
<revision>0.92.0</revision>
</properties>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.2</version>
<version>3.2.3</version>
<relativePath />
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class GameAttackModifierDeckModel {
private LinkedList<Integer> disgarded = new LinkedList<>();
@Required
private boolean active = true;
private String state;

/**
* Gets the current.
Expand Down Expand Up @@ -93,4 +94,22 @@ public void setActive(boolean active) {
this.active = active;
}

/**
* Gets the state.
*
* @return the state
*/
public String getState() {
return state;
}

/**
* Sets the state.
*
* @param state the new state
*/
public void setState(String state) {
this.state = state;
}

}
40 changes: 40 additions & 0 deletions src/main/java/de/champonthis/ghs/server/model/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public class Settings {
@Required
private boolean alwaysAllyAttackModifierDeck = false;
@Required
private boolean alwaysFhAdvantage = false;
@Required
private boolean alwaysFhSolo = false;
@Required
private boolean alwaysHazardousTerrain = false;
Expand All @@ -43,6 +45,8 @@ public class Settings {
@Required
private boolean alwaysLootDeck = false;
@Required
private boolean amAdvantage = false;
@Required
private boolean applyBuildingRewards = true;
@Required
private boolean applyConditions = true;
Expand Down Expand Up @@ -362,6 +366,24 @@ public void setAlwaysAllyAttackModifierDeck(boolean alwaysAllyAttackModifierDeck
this.alwaysAllyAttackModifierDeck = alwaysAllyAttackModifierDeck;
}

/**
* Checks if is always fh advantage.
*
* @return true, if is always fh advantage
*/
public boolean isAlwaysFhAdvantage() {
return alwaysFhAdvantage;
}

/**
* Sets the always fh advantage.
*
* @param alwaysFhAdvantage the new always fh advantage
*/
public void setAlwaysFhAdvantage(boolean alwaysFhAdvantage) {
this.alwaysFhAdvantage = alwaysFhAdvantage;
}

/**
* Checks if is always fh solo.
*
Expand Down Expand Up @@ -434,6 +456,24 @@ public void setAlwaysLootDeck(boolean alwaysLootDeck) {
this.alwaysLootDeck = alwaysLootDeck;
}

/**
* Checks if is am advantage.
*
* @return true, if is am advantage
*/
public boolean isAmAdvantage() {
return amAdvantage;
}

/**
* Sets the am advantage.
*
* @param alwaysFhAdvantage the new am advantage
*/
public void setAmAdvantage(boolean amAdvantage) {
this.amAdvantage = amAdvantage;
}

/**
* Checks if is apply building rewards.
*
Expand Down

0 comments on commit fcece37

Please sign in to comment.