mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- CheckStyle.
This commit is contained in:
@@ -1347,7 +1347,7 @@ public class GameAction {
|
||||
// AllZone.getComputer() = new ComputerAI_Input(new
|
||||
// ComputerAI_General());
|
||||
Constant.Quest.FANTASY_QUEST[0] = false;
|
||||
|
||||
|
||||
AllZone.getComputerPlayer().setStartingLife(20);
|
||||
AllZone.getHumanPlayer().setStartingLife(20);
|
||||
|
||||
|
||||
@@ -53,13 +53,13 @@ public abstract class Player extends GameEntity {
|
||||
|
||||
/** The life. */
|
||||
private int life;
|
||||
|
||||
|
||||
/** The life this player started the game with. */
|
||||
private int startingLife;
|
||||
|
||||
/** The assigned damage. */
|
||||
private int assignedDamage;
|
||||
|
||||
|
||||
/** The life lost this turn. */
|
||||
private int lifeLostThisTurn = 0;
|
||||
|
||||
@@ -261,7 +261,7 @@ public abstract class Player extends GameEntity {
|
||||
this.updateObservers();
|
||||
return change;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the starting life for a game. Should only be called from newGame()'s.
|
||||
*
|
||||
@@ -282,7 +282,7 @@ public abstract class Player extends GameEntity {
|
||||
public final int getLife() {
|
||||
return this.life;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Getter for the field <code>startingLife</code>.
|
||||
|
||||
@@ -2832,12 +2832,12 @@ public class CardFactoryUtil {
|
||||
}
|
||||
return CardFactoryUtil.doXMath(n, m, c);
|
||||
}
|
||||
|
||||
|
||||
// Count$YourStartingLife
|
||||
if (sq[0].contains("YourStartingLife")) {
|
||||
return CardFactoryUtil.doXMath(cardController.getStartingLife(), m, c);
|
||||
}
|
||||
|
||||
|
||||
// Count$OppStartingLife
|
||||
if (sq[0].contains("OppStartingLife")) {
|
||||
return CardFactoryUtil.doXMath(oppController.getStartingLife(), m, c);
|
||||
@@ -2940,7 +2940,7 @@ public class CardFactoryUtil {
|
||||
return CardFactoryUtil.doXMath(Integer.parseInt(sq[2]), m, c);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Count$FatefulHour.<numFH>.numNotFH>
|
||||
if (sq[0].contains("FatefulHour")) {
|
||||
if (cardController.getLife() <= 5) {
|
||||
|
||||
@@ -384,7 +384,7 @@ public class StaticAbility {
|
||||
if ((effectZone != null) && (!this.hostCard.isInZone(effectZone) || this.hostCard.isPhasedOut())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if (this.mapParams.containsKey("FatefulHour") && controller.getLife() > 5) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -343,13 +343,13 @@ public abstract class Trigger extends TriggerReplacementBase {
|
||||
* @return a boolean.
|
||||
*/
|
||||
public final boolean requirementsCheck() {
|
||||
if(this.getMapParams().containsKey("FatefulHour")) {
|
||||
if(this.getMapParams().get("FatefulHour").equals("True")
|
||||
if (this.getMapParams().containsKey("FatefulHour")) {
|
||||
if (this.getMapParams().get("FatefulHour").equals("True")
|
||||
&& !(this.getHostCard().getController().getLife() <= 5)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (this.getMapParams().containsKey("Metalcraft")) {
|
||||
if (this.getMapParams().get("Metalcraft").equals("True")
|
||||
&& !this.getHostCard().getController().hasMetalcraft()) {
|
||||
|
||||
Reference in New Issue
Block a user