aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/ledger/ItemIdProvider.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger/ItemIdProvider.kt')
-rw-r--r--src/main/kotlin/moe/nea/ledger/ItemIdProvider.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/kotlin/moe/nea/ledger/ItemIdProvider.kt b/src/main/kotlin/moe/nea/ledger/ItemIdProvider.kt
index c269c3d..30610e9 100644
--- a/src/main/kotlin/moe/nea/ledger/ItemIdProvider.kt
+++ b/src/main/kotlin/moe/nea/ledger/ItemIdProvider.kt
@@ -137,7 +137,7 @@ class ItemIdProvider {
ItemId("SKYBLOCK_POWDER_${generateName(it).string}")
} ?: id.ifDropLast(" Essence") {
ItemId("ESSENCE_${generateName(it).string}")
- } ?: generateName(id)
+ } ?: generateName(id)
}
}
return Pair(id, parseShortNumber(group("amount")))
@@ -155,4 +155,8 @@ class ItemIdProvider {
}
return findForName(properName, fallbackToGenerated)?.let { Pair(it, 1.0) }
}
+
+ fun getKnownItemIds(): Collection<ItemId> {
+ return knownNames.values
+ }
} \ No newline at end of file