From 73264a26508a6bd36e2bad8e9d70519656968fdc Mon Sep 17 00:00:00 2001 From: My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> Date: Thu, 15 Aug 2024 12:36:25 -0400 Subject: [PATCH] feat: set catlas room foundsecret number when all secrets found --- .../features/impl/dungeons/catlas/handlers/MapUpdater.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/catlas/handlers/MapUpdater.kt b/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/catlas/handlers/MapUpdater.kt index f8c471458..5e9f3f443 100644 --- a/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/catlas/handlers/MapUpdater.kt +++ b/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/catlas/handlers/MapUpdater.kt @@ -75,6 +75,9 @@ object MapUpdater { if (mapTile.state.ordinal < room.state.ordinal) { room.state = mapTile.state + if (room is Room && room.state == RoomState.GREEN) { + room.uniqueRoom?.foundSecrets = room.uniqueRoom?.foundSecrets?.coerceAtLeast(room.data.secrets) + } } if (mapTile is Door && room is Door) {