Add death saving throw management.
This commit is contained in:
parent
d38caea015
commit
96149b951a
15 changed files with 367 additions and 27 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue