mirror of
https://gitlab.com/cable-mc/cobblemon.git
synced 2026-10-20 14:16:26 -04:00
Merge branch 'item-2072' into 'main'
Added tab completion for the alpha property and three missing property aliases Closes #2072 See merge request cable-mc/cobblemon!2388
This commit is contained in:
@@ -55,6 +55,7 @@
|
|||||||
- Fixed evolution trees not building properly when a Pokémon has several Pokédex entries for different regions.
|
- 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.
|
- 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.
|
- 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 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 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
|
- Fixed Pokémon battles stalling when a sidemod cancels the `THROWN_POKEBALL_HIT` hit event
|
||||||
|
|||||||
+4
-3
@@ -135,17 +135,18 @@ internal object PropertiesCompletionProvider : DataRegistry {
|
|||||||
private fun addDefaults() {
|
private fun addDefaults() {
|
||||||
this.inject(setOf("level", "lvl", "l"), setOf("1", "${Cobblemon.config.maxPokemonLevel}") )
|
this.inject(setOf("level", "lvl", "l"), setOf("1", "${Cobblemon.config.maxPokemonLevel}") )
|
||||||
this.inject(setOf("shiny", "s"), setOf("yes", "no"))
|
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("gender"), Gender.entries.map { it.name.lowercase() })
|
||||||
this.inject(setOf("friendship"), setOf("0", Cobblemon.config.maxPokemonFriendship.toString()))
|
this.inject(setOf("friendship"), setOf("0", Cobblemon.config.maxPokemonFriendship.toString()))
|
||||||
this.inject(setOf("fullness"), setOf("0", "255"))
|
this.inject(setOf("fullness"), setOf("0", "255"))
|
||||||
this.inject(setOf("pokeball"), PokeBalls.all().map { it.name.simplify() })
|
this.inject(setOf("pokeball"), PokeBalls.all().map { it.name.simplify() })
|
||||||
this.inject(setOf("nature"), Natures.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("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("dmax_level", "dmax"), setOf("0", Cobblemon.config.maxDynamaxLevel.toString()))
|
||||||
this.inject(setOf("gmax"), setOf("yes", "no"))
|
this.inject(setOf("gmax_factor", "gmax"), setOf("yes", "no"))
|
||||||
this.inject(setOf("type", "elemental_type"), ElementalTypes.all().map { it.name })
|
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("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("originaltrainer", "ot"), setOf(""))
|
||||||
this.inject(setOf("originaltrainertype", "ottype"), setOf("None", "Player", "NPC"))
|
this.inject(setOf("originaltrainertype", "ottype"), setOf("None", "Player", "NPC"))
|
||||||
this.inject(setOf("nickname", "nick"), setOf(""))
|
this.inject(setOf("nickname", "nick"), setOf(""))
|
||||||
|
|||||||
Reference in New Issue
Block a user