Skip to content

Commit

Permalink
feat: set catlas room foundsecret number when all secrets found
Browse files Browse the repository at this point in the history
  • Loading branch information
My-Name-Is-Jeff committed Aug 15, 2024
1 parent 221debd commit 73264a2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 73264a2

Please sign in to comment.