Implement upcoming time travelers stuff

This commit is contained in:
Phillip Thelen 2019-08-23 18:41:56 +02:00
parent 698a583579
commit aa626219bb
2 changed files with 3 additions and 1 deletions

View file

@ -5,7 +5,9 @@ class ShopCategory {
var identifier: String = ""
var text: String = ""
var notes: String = ""
var path: String = ""
var purchaseAll: Boolean? = null
var pinType: String = ""
var items: MutableList<ShopItem> = ArrayList()
}

View file

@ -162,7 +162,7 @@ class ShopFragment : BaseFragment() {
private fun formatTimeTravelersShop(shop: Shop): Shop {
val newCategories = mutableListOf<ShopCategory>()
for (category in shop.categories) {
if (category.identifier == "pets" || category.identifier == "mounts") {
if (category.pinType != "mystery_set") {
newCategories.add(category)
} else {
val newCategory = newCategories.find { it.identifier == "mystery_sets" } ?: ShopCategory()