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) {
0 -> updateStructure(
row = row,
columns = COLUMNS + characterSheets.map { column(it.name) },
columns = COLUMNS,
)
else -> {

View file

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