Skip to content

Commit

Permalink
feat(catlas)!: add setting to only show room names on puzzles
Browse files Browse the repository at this point in the history
  • Loading branch information
My-Name-Is-Jeff committed Aug 15, 2024
1 parent b71a359 commit f505eb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,11 @@ object CatlasConfig : Vigilant(
type = PropertyType.SELECTOR,
description = "Shows names of rooms on map.",
category = "Rooms",
options = ["None", "Puzzles / Trap", "All"],
options = ["None", "Puzzles", "Puzzles / Trap", "All"],
i18nName = "catlas.config.rooms..room_names",
i18nCategory = "catlas.config.rooms"
)
var mapRoomNames = 1
var mapRoomNames = 2

@Property(
name = "Center Room Names",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,10 @@ object CatlasElement : GuiElement(name = "Dungeon Map", x = 0, y = 0) {

val name = mutableListOf<String>()

if (CatlasConfig.mapRoomNames != 0 && Utils.equalsOneOf(
roomType,
RoomType.PUZZLE,
RoomType.TRAP
) || CatlasConfig.mapRoomNames == 2 && Utils.equalsOneOf(
if ((CatlasConfig.mapRoomNames != 0 && roomType == RoomType.PUZZLE) || (CatlasConfig.mapRoomNames >= 2 && roomType == RoomType.TRAP) || (CatlasConfig.mapRoomNames == 3 && Utils.equalsOneOf(
roomType,
RoomType.NORMAL, RoomType.RARE, RoomType.CHAMPION
)
))
) {
name.addAll(room.data.name.split(" "))
}
Expand Down

0 comments on commit f505eb1

Please sign in to comment.