mirror of
https://github.com/nacabaro/vbhelper.git
synced 2026-01-27 16:05:32 +00:00
Made a mistake
Accidentally locked BE watch items to only BEm characters. I have modified it to also include DiM characters in the BE.
This commit is contained in:
parent
f96f00e05a
commit
dd1a62d184
@ -193,10 +193,10 @@ interface UserCharacterDao {
|
||||
JOIN Card d ON d.id = c.dimId
|
||||
JOIN Sprite s ON s.id = c.spriteId
|
||||
LEFT JOIN Adventure a ON a.characterId = uc.id
|
||||
WHERE d.isBEm = 1
|
||||
WHERE uc.characterType = "BEDevice"
|
||||
"""
|
||||
)
|
||||
suspend fun getBEBemCharacters(): List<CharacterDtos.CharacterWithSprites>
|
||||
suspend fun getBECharacters(): List<CharacterDtos.CharacterWithSprites>
|
||||
|
||||
@Query(
|
||||
"""
|
||||
|
||||
@ -48,7 +48,7 @@ fun ChooseCharacterScreen(
|
||||
selectedItem = storageRepository.getItem(itemId)
|
||||
when (selectedItem?.itemType) {
|
||||
ItemType.BEITEM -> {
|
||||
characterList.value = storageRepository.getBEBEmCharacters()
|
||||
characterList.value = storageRepository.getBECharacters()
|
||||
}
|
||||
ItemType.VBITEM -> {
|
||||
characterList.value = storageRepository.getVBCharacters()
|
||||
|
||||
@ -50,8 +50,8 @@ class StorageRepository (
|
||||
return db.adventureDao().getAdventureCharacters()
|
||||
}
|
||||
|
||||
suspend fun getBEBEmCharacters(): List<CharacterDtos.CharacterWithSprites> {
|
||||
return db.userCharacterDao().getBEBemCharacters()
|
||||
suspend fun getBECharacters(): List<CharacterDtos.CharacterWithSprites> {
|
||||
return db.userCharacterDao().getBECharacters()
|
||||
}
|
||||
|
||||
suspend fun getVBCharacters(): List<CharacterDtos.CharacterWithSprites> {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user