From 2c26046a3c5a7f4c3b74486c4293580a5386c258 Mon Sep 17 00:00:00 2001 From: Test Date: Thu, 2 Apr 2026 21:15:55 -0400 Subject: [PATCH 1/2] rmv unused method --- .../pokedex/filter/SecondaryPokedexFilter.kt | 19 ------------------- 1 file changed, 19 deletions(-) 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) -> From 0803906f30bf38820f214d05212eda31e2a10bd8 Mon Sep 17 00:00:00 2001 From: Test Date: Thu, 2 Apr 2026 22:42:08 -0400 Subject: [PATCH 2/2] disk asset --- .../color/TechnicalMachineItemColorProvider.kt | 8 ++++++-- .../models/item/technical_machine.json | 3 ++- .../cobblemon/textures/item/tms/blank_disc.png | Bin 335 -> 460 bytes .../assets/cobblemon/textures/item/tms/tm.png | Bin 318 -> 349 bytes .../cobblemon/textures/item/tms/tm_overlay.png | Bin 340 -> 295 bytes .../textures/item/tms/tm_overlay_center.png | Bin 0 -> 202 bytes 6 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 common/src/main/resources/assets/cobblemon/textures/item/tms/tm_overlay_center.png 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 6231f20745642088eb56297ec587835eb9d36a92..dfd25644674f7b2ab711baae957c5cd2a4b6fa17 100644 GIT binary patch delta 445 zcmV;u0Yd)I0?Y%D8Gi-<001BJ|6u?C02y>eSaefwW^{L9a%BKPWN%_+AW3auXJt}l zVPtu6$z?nM00C}EL_t(|+N6^)OT$nQ$Nx_XMY_2p6siy?;-b=)rsCu#rF1cSomwb3 zcX8<8lCO}hi+f9USN#eK6%2+HiMmN~h~CwEwxrdeH{|m2?tgdpf4O%mNfNAM8G0zC zRtB_MtyG1LG z+bo}Clc)0wObTV4IzpjPK&e#X_uK3fZgz_3U%vv!zcB63S0~eL6xj@;s4LLlUj=Ig z)YH*ug#C+CJm0@y^ZkuC?>@5(lI&%$PVlpl$W1d3W;T6}j2So=lQKmEA;Z*YG*W|e n>0GJW`Qg$#!0fu?{3XBuZz84^tIEze00000NkvXXu0mjfK|Im1 delta 319 zcmX@Ze4c57WIZzj1A~Sxe=v|@EDmyaVpw-h<|UBBlJ4m1$iT3%pZiZDE08Z8;1l8+ zA0Izy(xe9u9{l+6W97<~$BrHI@$qSFYy`^pr2bzBq&Q20{DS{O0Yk8Vg%C)vz$3Dl zfr0N32s4Umcr^e8B}!Z)N`mY2(@M${i&7Z^5;OBk^!!{y6ioFD^~}4keYXTE;!BP2 zO!M_+&;qhKfEWZW1y2T&S)MMAAsWH4eV%*=6nL07TO9ZwA7d>Na#h@ z*u0qda*6Jlz?p$2x;zdOwB5Q-Pu0EQe&(m(8o$|$75#IVX0lpz#wlF$a_NdN!< 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 99c5033cbdb9416b5e66776a9fafcb6096e41b1c..3a3044a710f16dfaa38eaa64c3b445443fcc5f27 100644 GIT binary patch delta 333 zcmV-T0kZzS0^I_T8Gi-<001BJ|6u?C02y>eSaefwW^{L9a%BKPWN%_+AW3auXJt}l zVPtu6$z?nM0093!*ODZA zf&q)7NXoLj{a4quJd#MIF}Ux01EW08t^0LdrYb5r&(oZxF<4YpRRH@+{jyznnkLQl zx&^;K$_Cu`-Ohk#bR0)mfw&VSfe3gUN40I67MT9KuG7o1+_xY@lfD7@bzx@%;S6wd zhXyEv6PVUq_eNU+cU|K82HOPe^#6vLbpgq+==ljw58ySp1GbH&$%2S~A(1o;L32LlEvZ)P{35NCl$WHAE+-$4*& z+%YlxEl^OR#5JNMI6tkVJh3R1p*|onGp|I?&oxBBRL@Y)y!+aBOQ0gY)CkWsUtb0- zAe#e-LEuvGWFVR7>Ealo5gglhP>?~9gIQ7G@AMkZ6^~=&9<5st^|z>1a~1pC)sx+3 zC`U9cYh@I0PwhS(y+MBKHRTzopr0N1!?i~s-t 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 6a84550a2012280bc307564c61249718cbbf0a96..5c7754360730785c6e0963c8f3f1e1ec66ed7447 100644 GIT binary patch delta 268 zcmV+n0rURU0;d9yB!3xnMObuGZ)S9NVRB^vL1b@YWgtmyVP|DhWnpA_ami&o0002V zNklMsB8Q>K;ldiT9r84AyPit}zH9EClDA_xP3s=iHm%Qh&;aj4mZ0bq$7*(a!_` z&+}}kxoc=6+*&)t7#H}uu7a4}iitZUXaUY(AnUsO*wf8IL5A)K>d}+{>Qarj;u~+~ zf5qe|q3RM%nF-F|rUXz0ZQZUqaRS=CZWul$jGZx^prw85kH?(j9#r85lP9bN@+X1@buyJR*x382Ao>Fr%o3 zR|8P+yr+v}h=u>r$p;0S6$D&Oc@Kzsf5-|oOIfv%`Fu%3%-aJ`4A(Sw%<|;>X?$kW z>i?f_UX9WW{oCZ;6aQG5G5hT<9q)*ZTONib$Q)moSwCyT{O6WW6gzi_8XWuLa^l`^ z^=cWxgG(9oi>kcX9&ya!a>%>A?ON3JjUh+!dW!6GocWHLyXY+2z2}GQ68$GBY7=)^ z#V|6Jt2|4QxzsOPaA4N5%n0Q<#jCG;dOqp&Etw^cz5H3{+$oKX&w8Q8peZl@;9SRi z-^UkRUNUOzJo)jx(f*CA;uzDrY%TSVoCSK0FEzq5&DWPf3&`dGVi33#JQ+lJy85}S Ib4q9e0H)V}w*UYD 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 0000000000000000000000000000000000000000..9c8405524ec502f322b62ecc6fda6a6d8cd72d67 GIT binary patch literal 202 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`k|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*D5Xay(reLn>}1{rUgjo>{e_v(d>QhBsnsmZ*e%&5sZN&(F92 z&-}7#QfxwA-oN^Xhgx~&&Yi1}$Lz^=z~uh!^8QT*0YO1Y9sT|37L}h=l=Vz|ZU_lo xxc^l@ZV!XC^fF5wot_G2H({Z