diff options
author | Linnea Gräf <nea@nea.moe> | 2024-12-30 22:01:15 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-12-30 22:01:15 +0100 |
commit | 00aadb43fcf8d9557987f60f476a44f4b22a0c45 (patch) | |
tree | 5762122614144d247ec6a22126635f35200170d6 /src/main/kotlin/moe/nea/ledger/ItemIdProvider.kt | |
parent | 1c0090ec301b87edebc29453287e585f88de2c4f (diff) | |
download | LocalTransactionLedger-00aadb43fcf8d9557987f60f476a44f4b22a0c45.tar.gz LocalTransactionLedger-00aadb43fcf8d9557987f60f476a44f4b22a0c45.tar.bz2 LocalTransactionLedger-00aadb43fcf8d9557987f60f476a44f4b22a0c45.zip |
refactor: Add more item ids
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger/ItemIdProvider.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/ledger/ItemIdProvider.kt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main/kotlin/moe/nea/ledger/ItemIdProvider.kt b/src/main/kotlin/moe/nea/ledger/ItemIdProvider.kt index 4d85713..0bacf32 100644 --- a/src/main/kotlin/moe/nea/ledger/ItemIdProvider.kt +++ b/src/main/kotlin/moe/nea/ledger/ItemIdProvider.kt @@ -4,6 +4,7 @@ import moe.nea.ledger.events.BeforeGuiAction import moe.nea.ledger.events.ExtraSupplyIdEvent import moe.nea.ledger.events.RegistrationFinishedEvent import moe.nea.ledger.events.SupplyDebugInfo +import moe.nea.ledger.gen.ItemIds import moe.nea.ledger.modules.ExternalDataProvider import net.minecraft.client.Minecraft import net.minecraft.item.ItemStack @@ -129,15 +130,15 @@ class ItemIdProvider { } etherialRewardPattern.useMatcher(properName) { val id = when (val id = group("what")) { - "Copper" -> ItemId.COPPER - "Bits" -> ItemId.BITS + "Copper" -> ItemIds.SKYBLOCK_COPPER + "Bits" -> ItemIds.SKYBLOCK_BIT "Garden Experience" -> ItemId.GARDEN "Farming XP" -> ItemId.FARMING - "Gold Essence" -> ItemId.GOLD_ESSENCE + "Gold Essence" -> ItemIds.ESSENCE_GOLD "Gemstone Powder" -> ItemId.GEMSTONE_POWDER "Mithril Powder" -> ItemId.MITHRIL_POWDER - "Pelts" -> ItemId.PELT - "Fine Flour" -> ItemId.FINE_FLOUR + "Pelts" -> ItemIds.SKYBLOCK_PELT + "Fine Flour" -> ItemIds.FINE_FLOUR else -> { id.ifDropLast(" Experience") { ItemId.skill(generateName(it).string) |