Skip to content

Commit

Permalink
Disable darken before dungeon start
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry282 committed Aug 13, 2024
1 parent b0f2299 commit 230515f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/kotlin/funnymap/features/dungeon/MapRender.kt
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,15 @@ object MapRender {

var color = tile.color

if (tile.state.equalsOneOf(RoomState.UNDISCOVERED, RoomState.UNOPENED) && !legitRender) {
if (tile.state.equalsOneOf(
RoomState.UNDISCOVERED,
RoomState.UNOPENED
) && !legitRender && Dungeon.Info.startTime != 0L
) {
if (Config.mapDarkenUndiscovered) {
color = color.darken(1 - Config.mapDarkenPercent)
}
if (Config.mapGrayUndiscovered && Dungeon.Info.startTime != 0L) {
if (Config.mapGrayUndiscovered) {
color = color.grayScale()
}
}
Expand Down

0 comments on commit 230515f

Please sign in to comment.