mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- CheckStyle.
This commit is contained in:
@@ -267,8 +267,8 @@ public final class CardRules {
|
|||||||
if (slashPos == -1) {
|
if (slashPos == -1) {
|
||||||
throw new RuntimeException(String.format("Vanguard '%s' has bad hand/life stats", this.getName()));
|
throw new RuntimeException(String.format("Vanguard '%s' has bad hand/life stats", this.getName()));
|
||||||
}
|
}
|
||||||
this.hand = Integer.parseInt(pt.substring(0,pt.indexOf('/')).replace("+", ""));
|
this.hand = Integer.parseInt(pt.substring(0, pt.indexOf('/')).replace("+", ""));
|
||||||
this.life = Integer.parseInt(pt.substring(pt.indexOf('/')+1).replace("+", ""));
|
this.life = Integer.parseInt(pt.substring(pt.indexOf('/') + 1).replace("+", ""));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.characteristics.getSetsData().isEmpty()) {
|
if (this.characteristics.getSetsData().isEmpty()) {
|
||||||
@@ -416,5 +416,3 @@ public final class CardRules {
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ public class CardRulesReader {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'H':
|
case 'H':
|
||||||
if(line.startsWith("HandLifeModifier:")) {
|
if (line.startsWith("HandLifeModifier:")) {
|
||||||
this.characteristics[this.curCharacteristics].setPtLine(CardRulesReader.getValueAfterKey(line, "HandLifeModifier:"));
|
this.characteristics[this.curCharacteristics].setPtLine(CardRulesReader.getValueAfterKey(line, "HandLifeModifier:"));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ public abstract class Player extends GameEntity implements Comparable<Player> {
|
|||||||
/** The max hand size. */
|
/** The max hand size. */
|
||||||
private int maxHandSize = 7;
|
private int maxHandSize = 7;
|
||||||
|
|
||||||
/** Starting hand size */
|
/** Starting hand size. */
|
||||||
private int startingHandSize = 7;
|
private int startingHandSize = 7;
|
||||||
|
|
||||||
/** The unlimited hand size. */
|
/** The unlimited hand size. */
|
||||||
@@ -3024,13 +3024,13 @@ public abstract class Player extends GameEntity implements Comparable<Player> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public int getStartingHandSize()
|
public int getStartingHandSize() {
|
||||||
{
|
|
||||||
return this.startingHandSize;
|
return this.startingHandSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setStartingHandSize(int shs)
|
public void setStartingHandSize(int shs) {
|
||||||
{
|
|
||||||
this.startingHandSize = shs;
|
this.startingHandSize = shs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user