mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +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());
|
||||
}
|
||||
|
||||
@@ -1401,6 +1408,8 @@ public abstract class GameState {
|
||||
c.setGamePieceType(GamePieceType.TOKEN);
|
||||
} else if (info.startsWith("ClassLevel:")) {
|
||||
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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user