mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-16 11:11:41 +00:00
Implement upcoming time travelers stuff
This commit is contained in:
parent
698a583579
commit
aa626219bb
2 changed files with 3 additions and 1 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue