Add feat category ateration support.

This commit is contained in:
Thomas Andres Gomez 2024-01-04 17:10:33 +01:00
parent 88c9e86770
commit 1ebe93cbab
2 changed files with 4 additions and 1 deletions

View file

@ -27,7 +27,7 @@ class AlterationParser @Inject constructor(
when (index) { when (index) {
0 -> updateStructure( 0 -> updateStructure(
row = row, row = row,
columns = COLUMNS + characterSheets.map { column(it.name) }, columns = COLUMNS,
) )
else -> { else -> {

View file

@ -98,11 +98,14 @@ class AlterationRepository @Inject constructor(
sheet?.characterClass?.any { clazz -> clazz.value == it } sheet?.characterClass?.any { clazz -> clazz.value == it }
}.thenByDescending { }.thenByDescending {
sheet?.race == it sheet?.race == it
}.thenByDescending {
FEAT == it
}.thenBy { }.thenBy {
it it
} }
} }
private const val PLAYER = "Joueur" private const val PLAYER = "Joueur"
private const val FEAT = "Don"
} }
} }