Alteration rework.
This commit is contained in:
parent
c5874fcc8c
commit
e01aa0893c
36 changed files with 1777 additions and 1088 deletions
|
|
@ -67,22 +67,15 @@ class LauncherViewModel @Inject constructor(
|
|||
_error.tryEmit("CharacterSheet fail to update")
|
||||
}
|
||||
}
|
||||
awaitAll(lexicon, location, quest, characterSheet)
|
||||
|
||||
val alteration = async {
|
||||
try {
|
||||
alterationRepository.fetchAlterationSheet()
|
||||
alterationRepository.fetchAlterationSheet(sheets = characterSheetRepository.sheets)
|
||||
} catch (exception: Exception) {
|
||||
_error.tryEmit("Alteration lexicon fail to update")
|
||||
}
|
||||
}
|
||||
val status = async {
|
||||
try {
|
||||
alterationRepository.fetchStatusSheet()
|
||||
} catch (exception: Exception) {
|
||||
_error.tryEmit("Alteration status fail to update")
|
||||
}
|
||||
}
|
||||
awaitAll(lexicon, location, quest, alteration, status, characterSheet)
|
||||
|
||||
val action = async {
|
||||
try {
|
||||
actionRepository.fetchActions()
|
||||
|
|
@ -97,7 +90,7 @@ class LauncherViewModel @Inject constructor(
|
|||
_error.tryEmit("Spell fail to update")
|
||||
}
|
||||
}
|
||||
awaitAll(action, spell)
|
||||
awaitAll(alteration, action, spell)
|
||||
|
||||
isLoading = false
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue