diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateShopPrice.kt | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateShopPrice.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateShopPrice.kt index 8152271fe..1d977d22d 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateShopPrice.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateShopPrice.kt @@ -43,6 +43,9 @@ object ChocolateShopPrice { "shop.bought", "§aYou bought §r§.(?<item>[\\w ]+)§r(?:§8 x(?<amount>\\d+)§r)?§a!" ) + /** + * REGEX-TEST: §7Chocolate Spent: §60 + */ private val chocolateSpentPattern by ChocolateFactoryAPI.patternGroup.pattern( "shop.spent", "§7Chocolate Spent: §6(?<amount>[\\d,]+)" @@ -143,15 +146,15 @@ object ChocolateShopPrice { ) } - val newList = mutableListOf<Renderable>() - newList.add(Renderable.string("§e§lCoins per million chocolate§f:")) - // TODO update this value every second - // TODO add time until can afford - newList.add(Renderable.string("§eChocolate available: §6${ChocolateAmount.CURRENT.formatted}")) - // TODO add chocolate spend needed for next milestone - newList.add(Renderable.string("§eChocolate spent: §6${chocolateSpent.addSeparators()}")) - newList.add(LorenzUtils.fillTable(table, padding = 5, itemScale = config.itemScale)) - display = newList + display = buildList { + add(Renderable.string("§e§lCoins per million chocolate§f:")) + // TODO update this value every second + // TODO add time until can afford + add(Renderable.string("§eChocolate available: §6${ChocolateAmount.CURRENT.formatted}")) + // TODO add chocolate spend needed for next milestone + add(Renderable.string("§eChocolate spent: §6${chocolateSpent.addSeparators()}")) + add(LorenzUtils.fillTable(table, padding = 5, itemScale = config.itemScale)) + } } @SubscribeEvent |