/
Added:
BattleFormatProvider (functional) interfaceChanged:
BattleState#getFormat() and BattleContext#getFormat() to BattleFormatProviderBattleFormat enum now implements BattleFormatProvider (method signature remains unchanged)BattleRules
adjustNPCLevels property: Decide if npc pokemon levels should be adjusted according to the adjustLevel value of the battle format (the default battle formats do not adjust levels)adjustPlayerLevels property: Decide if player pokemon levels should be adjusted according to the adjustLevel value of the battle format (the default battle formats do not adjust levels)healPlayers property: Decide if player pokemon should be healed at the start of a battleBattleManager#startBattle(...) (and overloads) now accept a BattleFormatProvider instead of a (rctapi) BattleFormat as argument (old overloads still exist but are deprecated)BattleState and BattleContext now accept a BattleFormatProvider in their constructors instead of a (rctapi) BattleFormat (old overloads still exist but are deprecated)Fixed:
stellar leading to battle failures if evaluated defensively on the player side
API для управления тренерами и боями в Cobblemon. Замена устаревшей зависимости CobblemonTrainers для Minecraft 1.21+.