Fix the skill parsing method that made impossible to add blank lines
This commit is contained in:
parent
676cbf242c
commit
b443b57eec
5 changed files with 38 additions and 27 deletions
|
|
@ -136,6 +136,14 @@ class LauncherViewModel @Inject constructor(
|
|||
_error.emit(FetchErrorUio.Structure(type = Type.ACTION))
|
||||
}
|
||||
}
|
||||
val skill = async {
|
||||
try {
|
||||
skillRepository.fetchSkills(characters = characterSheetRepository.data.value)
|
||||
} catch (exception: Exception) {
|
||||
Log.e(TAG, exception.message, exception)
|
||||
_error.emit(FetchErrorUio.Structure(type = Type.SKILL))
|
||||
}
|
||||
}
|
||||
val objects = async {
|
||||
try {
|
||||
objectActionRepository.fetchObjectAction()
|
||||
|
|
@ -152,14 +160,6 @@ class LauncherViewModel @Inject constructor(
|
|||
_error.emit(FetchErrorUio.Structure(type = Type.SPELL))
|
||||
}
|
||||
}
|
||||
val skill = async {
|
||||
try {
|
||||
skillRepository.fetchSkills()
|
||||
} catch (exception: Exception) {
|
||||
Log.e(TAG, exception.message, exception)
|
||||
_error.emit(FetchErrorUio.Structure(type = Type.SKILL))
|
||||
}
|
||||
}
|
||||
|
||||
awaitAll(order, lexicon, location, quest)
|
||||
awaitAll(description, inventory, equipment, alteration, action, objects, spell, skill)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue