Skip to content

Commit 1da5e30

Browse files
committed
Bugfix: Hardcore runs were defaulting to S2 dungeons
1 parent 7d65950 commit 1da5e30

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/kotlin/org/trackedout/citadel/inventory/DeckManagementView.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ fun DeckId.displayName(): String {
253253
fun DeckId.isValidRunType(): Boolean = findRunTypeById(this) != null
254254

255255
fun DeckId.isPractice(): Boolean = this.shortRunType() == "p"
256+
fun DeckId.isCompetitive(): Boolean = this.shortRunType() == "c"
256257

257258
fun DeckId.runType(): RunType = getRunTypeById(this)
258259

src/main/kotlin/org/trackedout/citadel/listeners/JoinQueue.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import org.trackedout.citadel.async
66
import org.trackedout.citadel.inventory.DeckId
77
import org.trackedout.citadel.inventory.displayName
88
import org.trackedout.citadel.inventory.id
9-
import org.trackedout.citadel.inventory.isPractice
9+
import org.trackedout.citadel.inventory.isCompetitive
1010
import org.trackedout.citadel.inventory.shortRunType
1111
import org.trackedout.citadel.sendGreenMessage
1212
import org.trackedout.client.apis.EventsApi
@@ -29,7 +29,7 @@ fun createJoinQueueFunc(citadel: Citadel, eventsApi: EventsApi, player: Player):
2929
metadata = mapOf(
3030
"deck-id" to deckId,
3131
"run-type" to deckId.shortRunType(),
32-
"dungeon-type" to if (deckId.isPractice()) "default" else "season-2",
32+
"dungeon-type" to if (deckId.isCompetitive()) "season-2" else "default",
3333
)
3434
)
3535
)

0 commit comments

Comments
 (0)