Add auto check feature to skill after a successfull roll.
This commit is contained in:
parent
9588a3bfaf
commit
04b203239d
9 changed files with 116 additions and 35 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue