mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- Add GameState support for unlocked doors. (#6426)
- Add puzzle PS_DSK3.
This commit is contained in:
@@ -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)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
17
forge-gui/res/puzzle/PS_DSK3.pzl
Normal file
17
forge-gui/res/puzzle/PS_DSK3.pzl
Normal 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
|
||||||
Reference in New Issue
Block a user