diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/api/pokedex/filter/SecondaryPokedexFilter.kt b/common/src/main/kotlin/com/cobblemon/mod/common/api/pokedex/filter/SecondaryPokedexFilter.kt index 365559601f..722d5c48b1 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/api/pokedex/filter/SecondaryPokedexFilter.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/api/pokedex/filter/SecondaryPokedexFilter.kt @@ -88,25 +88,6 @@ class SecondaryPokedexFilter( return false } - // todo remove this since it isn't needed anymore - private fun buildEvolutionMoveLevelIndex(form: FormData): Map> { - val evolutionForms = collectEvolutionForms(form) - val levelsBySpecies = mutableMapOf>() - - for (evolutionForm in evolutionForms) { - val speciesId = evolutionForm.species.resourceIdentifier - val moveLevels = levelsBySpecies.getOrPut(speciesId) { mutableMapOf() } - buildMoveLevelIndex(evolutionForm).forEach { (moveName, level) -> - val current = moveLevels[moveName] - if (current == null || level < current) { - moveLevels[moveName] = level - } - } - } - - return levelsBySpecies - } - private fun buildMoveLevelIndex(form: FormData): Map { val levels = mutableMapOf() form.moves.levelUpMoves.forEach { (level, moves) -> diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/color/TechnicalMachineItemColorProvider.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/color/TechnicalMachineItemColorProvider.kt index 0290cb329c..e39e605b4f 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/render/color/TechnicalMachineItemColorProvider.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/render/color/TechnicalMachineItemColorProvider.kt @@ -17,7 +17,11 @@ import net.minecraft.world.item.ItemStack object TechnicalMachineItemColorProvider : ItemColor { override fun getColor(itemStack: ItemStack, layer: Int): Int { val moveType = getTMMove(itemStack)?.elementalType ?: ElementalTypes.NORMAL - val color = if (layer == 0) moveType.primaryColor else moveType.secondaryColor + val color = when (layer) { + 0 -> moveType.primaryColor + 1 -> moveType.secondaryColor + else -> 0xFFFFFF + } return FastColor.ARGB32.opaque(color) } -} \ No newline at end of file +} diff --git a/common/src/main/resources/assets/cobblemon/models/item/technical_machine.json b/common/src/main/resources/assets/cobblemon/models/item/technical_machine.json index 85a55b5db4..7ec809270d 100644 --- a/common/src/main/resources/assets/cobblemon/models/item/technical_machine.json +++ b/common/src/main/resources/assets/cobblemon/models/item/technical_machine.json @@ -2,6 +2,7 @@ "parent": "minecraft:item/generated", "textures": { "layer0": "cobblemon:item/tms/tm", - "layer1": "cobblemon:item/tms/tm_overlay" + "layer1": "cobblemon:item/tms/tm_overlay", + "layer2": "cobblemon:item/tms/tm_overlay_center" } } \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/textures/item/tms/blank_disc.png b/common/src/main/resources/assets/cobblemon/textures/item/tms/blank_disc.png index 6231f20745..dfd2564467 100644 Binary files a/common/src/main/resources/assets/cobblemon/textures/item/tms/blank_disc.png and b/common/src/main/resources/assets/cobblemon/textures/item/tms/blank_disc.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/item/tms/tm.png b/common/src/main/resources/assets/cobblemon/textures/item/tms/tm.png index 99c5033cbd..3a3044a710 100644 Binary files a/common/src/main/resources/assets/cobblemon/textures/item/tms/tm.png and b/common/src/main/resources/assets/cobblemon/textures/item/tms/tm.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/item/tms/tm_overlay.png b/common/src/main/resources/assets/cobblemon/textures/item/tms/tm_overlay.png index 6a84550a20..5c77543607 100644 Binary files a/common/src/main/resources/assets/cobblemon/textures/item/tms/tm_overlay.png and b/common/src/main/resources/assets/cobblemon/textures/item/tms/tm_overlay.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/item/tms/tm_overlay_center.png b/common/src/main/resources/assets/cobblemon/textures/item/tms/tm_overlay_center.png new file mode 100644 index 0000000000..9c8405524e Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/item/tms/tm_overlay_center.png differ