This commit is contained in:
Phillip Thelen 2021-05-17 12:30:06 +02:00
parent bd6166b580
commit ecc1abb08e

View file

@ -450,6 +450,10 @@ class PurchaseDialog(context: Context, component: UserComponent?, val item: Shop
val filteredPets = it.filter {pet ->
pet.type == "premium" || pet.type == "wacky"
}
if (it.firstOrNull()?.type == "wacky") {
// Wacky pets can't be raised to mounts, so only need half as many
totalCount = 9
}
shouldWarn = filteredPets.isNotEmpty()
return@filter shouldWarn
}.flatMap { inventoryRepository.getOwnedItems("hatchingPotions").firstElement() }