Add death saving throw management.

This commit is contained in:
Thomas Andres Gomez 2023-11-05 22:03:15 +01:00
parent d38caea015
commit 96149b951a
15 changed files with 367 additions and 27 deletions

View file

@ -173,6 +173,15 @@ class DiceThrowUseCase @Inject constructor(
relatedStat = Property.CHARISMA
)
is DiceThrow.DeathSavingThrow -> savingThrow(
character = sheet,
alterations = alterations,
abilityLabel = { getString(R.string.character_sheet_stat_death) },
relatedLabel = { getString(R.string.character_sheet_stat_death) },
ability = Property.DEATH_SAVING_THROW,
relatedStat = null,
)
is DiceThrow.Acrobatics -> abilityThrow(
character = sheet,
alterations = alterations,
@ -494,7 +503,7 @@ class DiceThrowUseCase @Inject constructor(
abilityLabel: Context.() -> String,
relatedLabel: Context.() -> String?,
ability: Property,
relatedStat: Property,
relatedStat: Property?,
): DiceThrowResult = rollAbility(
character = character,
alterations = alterations,
@ -514,7 +523,7 @@ class DiceThrowUseCase @Inject constructor(
relatedTitle: Context.(label: String) -> String?,
relatedLabel: Context.() -> String?,
ability: Property,
relatedStat: Property,
relatedStat: Property?,
): DiceThrowResult {
// retrieve some wording.
val abilityLabelString = abilityLabel(application)