- Add GameState support for unlocked doors. (#6426)

- Add puzzle PS_DSK3.
This commit is contained in:
Agetian
2024-10-24 20:01:43 +03:00
committed by GitHub
parent d92cacae7f
commit a6ccbe0f1d
2 changed files with 26 additions and 0 deletions

View File

@@ -436,6 +436,13 @@ public abstract class GameState {
} }
} }
if (!c.getUnlockedRooms().isEmpty()) {
for (CardStateName stateName : c.getUnlockedRooms()) {
newText.append("|UnlockedRoom:");
newText.append(stateName.name());
}
}
cardTexts.put(zoneType, newText.toString()); cardTexts.put(zoneType, newText.toString());
} }
@@ -1401,6 +1408,8 @@ public abstract class GameState {
c.setGamePieceType(GamePieceType.TOKEN); c.setGamePieceType(GamePieceType.TOKEN);
} else if (info.startsWith("ClassLevel:")) { } else if (info.startsWith("ClassLevel:")) {
c.setClassLevel(Integer.parseInt(info.substring(info.indexOf(':') + 1))); c.setClassLevel(Integer.parseInt(info.substring(info.indexOf(':') + 1)));
} else if (info.startsWith("UnlockedRoom:")) {
c.unlockRoom(c.getController(), CardStateName.smartValueOf(info.substring(info.indexOf(':') + 1)));
} }
} }

View File

@@ -0,0 +1,17 @@
[metadata]
Name:Possibility Storm - Duskmourn: House of Horror #03
URL:https://i0.wp.com/www.possibilitystorm.com/wp-content/uploads/2024/10/latest-scaled.jpg?ssl=1
Goal:Win
Turns:1
Difficulty:Uncommon
Description:Win this turn. Smoky Lounge is unlocked, and you start the puzzle with its ability on the stack. (Misty Salon is locked.) Ensure your solution satisfies all possible blocking decisions. Good luck!
[state]
turn=1
activeplayer=p0
activephase=DRAW
activephaseadvance=MAIN1
p0life=20
p0hand=Painter's Studio // Defaced Gallery;Song of Totentanz;Ghostly Dancers;Dollmaker's Shop // Porcelain Gallery
p0battlefield=Marina Vendrell;T:everywhere;T:everywhere;T:everywhere;T:everywhere;T:everywhere;T:everywhere;Smoky Lounge // Misty Salon|UnlockedRoom:LeftSplit
p1life=12
p1battlefield=Miasma Demon;Miasma Demon