Skip to content

Commit

Permalink
Use blood room checkmark instead of watcher message
Browse files Browse the repository at this point in the history
Fixes score update being delayed as blood room is cleared
  • Loading branch information
Harry282 committed Aug 13, 2024
1 parent 2645218 commit 651f55e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/main/kotlin/funnymap/features/dungeon/Dungeon.kt
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ object Dungeon {
MapUpdate.getPlayers()
Info.startTime = System.currentTimeMillis()
}

"[BOSS] The Watcher: You have proven yourself. You may pass." -> RunInformation.bloodDone = true
}
}

Expand Down
7 changes: 4 additions & 3 deletions src/main/kotlin/funnymap/features/dungeon/MapUpdate.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ package funnymap.features.dungeon

import funnymap.FunnyMap.mc
import funnymap.core.DungeonPlayer
import funnymap.core.map.Door
import funnymap.core.map.DoorType
import funnymap.core.map.Unknown
import funnymap.core.map.*
import funnymap.utils.MapUtils
import funnymap.utils.MapUtils.mapX
import funnymap.utils.MapUtils.mapZ
Expand Down Expand Up @@ -115,6 +113,9 @@ object MapUpdate {

if (mapTile.state.ordinal < room.state.ordinal) {
PlayerTracker.roomStateChange(room, room.state, mapTile.state)
if (room is Room && room.data.type == RoomType.BLOOD && mapTile.state == RoomState.GREEN) {
RunInformation.bloodDone = true
}
room.state = mapTile.state
}

Expand Down

0 comments on commit 651f55e

Please sign in to comment.