diff --git a/CHANGELOG.md b/CHANGELOG.md index ad6c7f6367..962a369f79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -55,6 +55,7 @@ - Fixed evolution trees not building properly when a Pokémon has several Pokédex entries for different regions. - Fixed form-changing evolutions sometimes resolving to the source form in the Pokédex evolution tree. - Broken datapack evolutions are now logged and skipped in the Pokédex evolution tree instead of crashing. +- Fixed the `alpha` property having no tab completion in commands such as `/pokespawn`, `/pokegive` and `/pokeedit`, and added the missing `dmax_level`, `gmax_factor` and `tradable` aliases to tab completion - Fixed friendship booster items not being recognised as such - Fixed conflicts with other mods that would make use of recipe books in certain ways (Farmer's Delight Cooking Pot) - Fixed Pokémon battles stalling when a sidemod cancels the `THROWN_POKEBALL_HIT` hit event diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/pokemon/properties/PropertiesCompletionProvider.kt b/common/src/main/kotlin/com/cobblemon/mod/common/pokemon/properties/PropertiesCompletionProvider.kt index b44a9e6b6d..767332cde7 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/pokemon/properties/PropertiesCompletionProvider.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/pokemon/properties/PropertiesCompletionProvider.kt @@ -135,17 +135,18 @@ internal object PropertiesCompletionProvider : DataRegistry { private fun addDefaults() { this.inject(setOf("level", "lvl", "l"), setOf("1", "${Cobblemon.config.maxPokemonLevel}") ) this.inject(setOf("shiny", "s"), setOf("yes", "no")) + this.inject(setOf("alpha", "is_alpha"), setOf("yes", "no")) this.inject(setOf("gender"), Gender.entries.map { it.name.lowercase() }) this.inject(setOf("friendship"), setOf("0", Cobblemon.config.maxPokemonFriendship.toString())) this.inject(setOf("fullness"), setOf("0", "255")) this.inject(setOf("pokeball"), PokeBalls.all().map { it.name.simplify() }) this.inject(setOf("nature"), Natures.all().map { it.name.simplify() }) this.inject(setOf("ability"), Abilities.all().map { if (it.name.asIdentifierDefaultingNamespace().namespace == Cobblemon.MODID) it.name.asIdentifierDefaultingNamespace().path else it.name }) - this.inject(setOf("dmax"), setOf("0", Cobblemon.config.maxDynamaxLevel.toString())) - this.inject(setOf("gmax"), setOf("yes", "no")) + this.inject(setOf("dmax_level", "dmax"), setOf("0", Cobblemon.config.maxDynamaxLevel.toString())) + this.inject(setOf("gmax_factor", "gmax"), setOf("yes", "no")) this.inject(setOf("type", "elemental_type"), ElementalTypes.all().map { it.name }) this.inject(setOf("tera_type", "tera"), TeraTypes.map { it.id.simplify() }) - this.inject(setOf("tradeable"), setOf("yes", "no")) + this.inject(setOf("tradeable", "tradable"), setOf("yes", "no")) this.inject(setOf("originaltrainer", "ot"), setOf("")) this.inject(setOf("originaltrainertype", "ottype"), setOf("None", "Player", "NPC")) this.inject(setOf("nickname", "nick"), setOf(""))