Skip to content

Commit 73264a2

Browse files
feat: set catlas room foundsecret number when all secrets found
1 parent 221debd commit 73264a2

File tree

1 file changed

+3
-0
lines changed
  • src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/catlas/handlers

1 file changed

+3
-0
lines changed

src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/catlas/handlers/MapUpdater.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ object MapUpdater {
7575

7676
if (mapTile.state.ordinal < room.state.ordinal) {
7777
room.state = mapTile.state
78+
if (room is Room && room.state == RoomState.GREEN) {
79+
room.uniqueRoom?.foundSecrets = room.uniqueRoom?.foundSecrets?.coerceAtLeast(room.data.secrets)
80+
}
7881
}
7982

8083
if (mapTile is Door && room is Door) {

0 commit comments

Comments
 (0)