Changelog
Important: This version may break compatibility with mods that rely on an older version of this api (< 0.12.0-beta
). This could be the case if mods happen to parse trainers from JSON (i.e. with GSON
) or use #getName()
(see #55 - 59). There shouldn't be any issues otherwise.
To update be sure to configure your GsonBuilder
instances with RCTApi#configureGsonBuilder(GsonBuilder)
or simply use a builder provided by RCTApi#gsonBuilder()
.
[0.12.0-beta] - 2025-05-13
Added:
- #62
RCTApi#configureGsonBuilder(GsonBuilder)
- #61
RCTApi#gsonBuilder()
- #60
Text
utility type for translatable text, which can be parsed from a JSON object withliteral
and/ortranslatable
fields, or directly from a string, which serves as theliteral
value- Translation support for
PokemonModel#nickname
property (will be ignored ifliteral
is not set) - Translation support for
TrainerModel#name
property
- Translation support for
Changed:
- #59 Return type of
PokemonModel#getName()
fromString
toText
(potential breaking change) - #58 Return type of
Trainer#getName()
fromString
toText
(potential breaking change) - #57 Return type of
TrainerModel#getName()
fromString
toText
(potential breaking change) - #56 Return type of
TrainerNPC#getName()
fromString
toText
(potential breaking change) - #55 Return type of
TrainerPlayer#getName()
fromString
toText
(potential breaking change)
Changelog
[0.11.1-beta] - 2025-05-05
Changed:
- #54 Adjustments and fixes to
RCTBattleAI
- All moves have been further categorized (e.g. HEAL or BUFF) for a better generic evaluation and to circumvent issues with trainers targeting opponents with moves that have positive effects
- Improved awareness of screens, weather effects and terrains
- Improved awareness of certain moves with specific conditions (like fake out or wish)
- Improved awareness of status conditions and other effects (like levitate, seeded or drowsy)
- #53 Builder pattern for
RCTBattleAIConfig
andBattleRules
(thanks Gitoido)
Deprecated:
- #52
TypeChart#getEffectiveness(ElementalType, ElementalType, ElementalType, Ability)
Changelog
[0.11.0-beta] - 2025-04-12
Added:
- #51
BattleManager#startBattle()
withUUID
return type as replacement forBattleManager#start()
- #50
nickname
property forPokemonModel
s
Changed:
- #49 Adjustments to
RCTBattleAI
move and switch evaluations (e.g. better awareness of shedinjas wonderguard) and other tweaks - #48 If the
name
of aTrainerNPC
is unset or empty it will now fall back to the display name of the entity the trainer is attached to
Fixed:
- #47
RCTBattleAI
attempting to choose various illegal actions, causing battles to softlock in certain situations and other issues (e.g. switching out against pokemon with "arena trap" or while "mean look" is active)
Deprecated:
- #46
BattleManager#start()
and helper methods
Removed:
- #45 Demo commands (now implemented in tbcs)
BattleEndCommand
CommandsContext
RCTApiCommands
- other related classes
- #44
BattleState#BattleState(PokemonBattle, BattleRules)
- #43
RCTApi#getInstance()
- #42
RCTApi#init(TrainerRegistry, BattleManager)
- #41
RCTApi#initInstance(String, TrainerRegistry)
- #40
RCTApi#initInstance(String, TrainerRegistry, BattleManager)
Changelog
[0.10.10-beta] - 2025-01-26
Added:
- #34
BattleState#isEndForced()
: checks if battle was forcefully ended (i.e. draw)
Changed:
- #33
Events#BATTLE_ENDED
now fired after a battle was unregistered from theBattleManager
and also if a battle was forcfully ended
Fixed:
- #32 Incompatibility with Cobblemon 1.6.1 (min required version)