mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Added support for Renowned and Monstrous X properties to GameState.
This commit is contained in:
@@ -199,6 +199,13 @@ public abstract class GameState {
|
||||
if (c.isSick()) {
|
||||
newText.append("|SummonSick");
|
||||
}
|
||||
if (c.isRenowned()) {
|
||||
newText.append("|Renowned");
|
||||
}
|
||||
if (c.isMonstrous()) {
|
||||
newText.append("|Monstrous:");
|
||||
newText.append(c.getMonstrosityNum());
|
||||
}
|
||||
if (c.isFaceDown()) {
|
||||
newText.append("|FaceDown");
|
||||
if (c.isManifested()) {
|
||||
@@ -801,6 +808,11 @@ public abstract class GameState {
|
||||
for (final String info : cardinfo) {
|
||||
if (info.startsWith("Tapped")) {
|
||||
c.tap();
|
||||
} else if (info.startsWith("Renowned")) {
|
||||
c.setRenowned(true);
|
||||
} else if (info.startsWith("Monstrous:")) {
|
||||
c.setMonstrous(true);
|
||||
c.setMonstrosityNum(Integer.parseInt(info.substring((info.indexOf(':') + 1))));
|
||||
} else if (info.startsWith("Counters:")) {
|
||||
applyCountersToGameEntity(c, info.substring(info.indexOf(':') + 1));
|
||||
} else if (info.startsWith("SummonSick")) {
|
||||
|
||||
Reference in New Issue
Block a user