Add auto check feature to skill after a successfull roll.

This commit is contained in:
Andres Gomez, Thomas (ITDV RL) 2025-04-12 11:48:55 +02:00
parent 9588a3bfaf
commit 04b203239d
9 changed files with 116 additions and 35 deletions

View file

@ -27,6 +27,10 @@ data class CharacterSheet(
// actions
val actions: List<Roll>,
) {
fun skill(id: String?): Skill? = commonSkills.firstOrNull { it.id == id }
?: specialSkills.firstOrNull { it.id == id }
?: magicSkills.firstOrNull { it.id == id }
data class Skill(
val id: String,
val label: String,