Merge branch 'battles-unlanguished' into 'main'

Added langs and update interpreter

See merge request cable-mc/cobblemon!801
This commit is contained in:
Apion committed 2023-12-01 05:45:42 +00:00
commit 2cdc781e93
5 files changed
+202 -40

No files matched your search

+1
View File
@@ -89,6 +89,7 @@
- Fixed battles ending background music when battle music is not present.
- Fixed battles ending background music, instead of pausing, when battle music is played.
- Fixed a bunch of regionals to actually be obtainable, namely the unmodelled ones
- Fixed battle text for moves that were missing.
### Developer
- Fixed the `SpawnEvent` not respecting usage of `Cancelable#cancel`.
@@ -89,15 +89,17 @@ object ShowdownInterpreter {
updateInstructions["|-fieldstart|"] = this::handleFieldStartInstructions
updateInstructions["|-fieldend|"] = this::handleFieldEndInstructions
updateInstructions["|-ability|"] = this::handleAbilityInstructions
//To-Do updateInstructions["|-endability|"] = this::handleEndAbilityInstruction
updateInstructions["|-endability|"] = this::handleEndAbilityInstruction
updateInstructions["|-nothing"] = { battle, _, _ ->
battle.dispatchGo { battle.broadcastChatMessage(battleLang("nothing")) }
}
updateInstructions["|-clearallboost"] = this::handleClearAllBoostInstructions
updateInstructions["|-singleturn|"] = this::handleSingleTurnInstruction
updateInstructions["|-singlemove|"] = this::handleSingleMoveInstruction
updateInstructions["|-transform|"] = this::handleTransformInstruction
updateInstructions["|-prepare|"] = this::handlePrepareInstruction
updateInstructions["|-swapboost"] = this::handleSwapBoostInstruction
updateInstructions["|-copyboost|"] = this::handleCopyBoostInstruction
updateInstructions["|-swapsideconditions|"] = this::handleSilently
updateInstructions["|-unboost|"] = { battle, line, remainingLines -> boostInstruction(battle, line, remainingLines, false) }
updateInstructions["|-boost|"] = { battle, line, remainingLines -> boostInstruction(battle, line, remainingLines, true) }
@@ -105,6 +107,7 @@ object ShowdownInterpreter {
updateInstructions["|t:|"] = {_, _, _ -> }
updateInstructions["|pp_update|"] = this::handlePpUpdateInstruction
updateInstructions["|-immune"] = this::handleImmuneInstruction
updateInstructions["|-invertboost|"] = this::handleInvertBoostInstruction
updateInstructions["|-status|"] = this::handleStatusInstruction
updateInstructions["|-end|"] = this::handleEndInstruction
updateInstructions["|-miss|"] = this::handleMissInstruction
@@ -653,6 +656,34 @@ object ShowdownInterpreter {
}
}
/**
* Format:
* |-invertboost|POKEMON|MOVE
*
* The POKEMON had its stat changes inverted.
*/
private fun handleInvertBoostInstruction(battle: PokemonBattle, message: BattleMessage, remainingLines: MutableList<String>) {
battle.dispatchWaiting {
val pokemon = message.getBattlePokemon(0, battle) ?: return@dispatchWaiting
val name = pokemon.getName()
battle.broadcastChatMessage(battleLang("invertboost", name))
// update and invert BOOST and UNBOOST contexts
val context = getContextFromAction(message, BattleContext.Type.BOOST, battle)
val newUnboosts = pokemon.contextManager.get(BattleContext.Type.BOOST)?.map {
BasicContext(it.id, context.turn, BattleContext.Type.UNBOOST, context.origin)
}?.toTypedArray()
val newBoosts = pokemon.contextManager.get(BattleContext.Type.UNBOOST)?.map {
BasicContext(it.id, context.turn, BattleContext.Type.BOOST, context.origin)
}?.toTypedArray()
pokemon.contextManager.clear(BattleContext.Type.BOOST, BattleContext.Type.UNBOOST)
newBoosts?.let { pokemon.contextManager.add(*it) }
newUnboosts?.let { pokemon.contextManager.add(*it) }
battle.minorBattleActions[pokemon.uuid] = message
}
}
/**
* Format:
* |move|POKEMON|MOVE|TARGET
@@ -830,12 +861,14 @@ object ShowdownInterpreter {
battle.dispatchWaiting(1.5F){
val pokemon = message.getBattlePokemon(0, battle) ?: return@dispatchWaiting
val pokemonName = pokemon.getName()
val effectID = message.effectAt(1)?.id ?: return@dispatchWaiting
val effectID = message.effectAt(1)?.id
val lang = when (effectID) {
null, "burnup", "doubleshock" -> battleLang("fail") // Moves that use default fail lang. (Null included for moves that fail with no effect, for example: Baton Pass.)
"shedtail" -> battleLang("fail.substitute", pokemonName)
"hyperspacefury" -> battleLang("fail.darkvoid", pokemonName)
"hyperspacefury", "aurawheel" -> battleLang("fail.darkvoid", pokemonName) // Moves that can only be used by one species and fail when any others try
"corrosivegas" -> battleLang("fail.healblock", pokemonName)
"dynamax" -> battleLang("fail.grassknot", pokemonName) // Covers weight moves that fail against dynamaxed Pokémon
else -> battleLang("fail.$effectID", pokemonName)
}
battle.broadcastChatMessage(lang.red())
@@ -902,6 +935,11 @@ object ShowdownInterpreter {
val pokemon = message.getBattlePokemon(0, battle) ?: return@dispatch GO
val effectID = message.effectAt(1)?.id ?: return@dispatch GO
val optionalEffect = message.effect()
val optionalPokemon = message.getSourceBattlePokemon(battle)
val optionalPokemonName = optionalPokemon?.getName()
val extraEffect = message.effectAt(2)?.typelessData ?: Text.literal("UNKOWN")
// skip adding contexts for every time the perish counter decrements
if (!effectID.contains("perish")) {
// don't need to add unique: showdown won't send -start instruction if volatile status is already present
@@ -910,14 +948,17 @@ object ShowdownInterpreter {
battle.minorBattleActions[pokemon.uuid] = message
if (!message.hasOptionalArgument("silent")) {
val lang = when (effectID) {
"confusion", "perish3" -> return@dispatch GO // Skip
"perish2", "perish1", "perish0" -> battleLang("start.perish", pokemon.getName(), effectID.last().digitToInt())
"dynamax" -> battleLang("start.${message.effectAt(2)?.id ?: effectID}", pokemon.getName()).yellow()
"curse" -> battleLang("start.curse", message.getSourceBattlePokemon(battle)!!.getName(), pokemon.getName())
"disable" -> battleLang("start.disable", pokemon.getName(), message.effectAt(2)!!.rawData)
else -> battleLang("start.$effectID", pokemon.getName())
}
val lang = if (optionalEffect?.id == "reflecttype" && optionalPokemonName != null)
battleLang("start.reflecttype", pokemon.getName(), optionalPokemonName)
else
when (effectID) {
"confusion", "perish3" -> return@dispatch GO // Skip
"perish2", "perish1", "perish0",
"stockpile1", "stockpile2", "stockpile3" -> battleLang("start.${effectID.dropLast(1)}", pokemon.getName(), effectID.last().digitToInt())
"dynamax" -> battleLang("start.${message.effectAt(2)?.id ?: effectID}", pokemon.getName()).yellow()
"curse" -> battleLang("start.curse", message.getSourceBattlePokemon(battle)!!.getName(), pokemon.getName())
else -> battleLang("start.$effectID", pokemon.getName(), extraEffect)
}
battle.broadcastChatMessage(lang)
}
WaitDispatch(1F)
@@ -934,7 +975,7 @@ object ShowdownInterpreter {
battle.dispatchWaiting(1.5F) {
val pokemon = message.getBattlePokemon(0, battle) ?: return@dispatchWaiting
val pokemonName = pokemon.getName()
val sourceName = message.getSourceBattlePokemon(battle)?.getName() ?: return@dispatchWaiting
val sourceName = message.getSourceBattlePokemon(battle)?.getName() ?: Text.literal("UNKOWN")
val effectID = message.effectAt(1)?.id ?: return@dispatchWaiting
val lang = battleLang("singleturn.$effectID", pokemonName, sourceName)
battle.broadcastChatMessage(lang)
@@ -942,6 +983,25 @@ object ShowdownInterpreter {
}
}
/**
* Format:
* |-transform|POKEMON|POKEMON
*
* The Pokémon POKEMON used Transform to turn into Target Pokemon POKEMON
*/
private fun handleTransformInstruction(battle: PokemonBattle, message: BattleMessage, remainingLines: MutableList<String>) {
battle.dispatchWaiting(1.5F) {
val pokemon = message.getBattlePokemon(0, battle) ?: return@dispatchWaiting
val pokemonName = pokemon.getName()
val targetPokemon = message.getBattlePokemon(1, battle) ?: return@dispatchWaiting
val targetPokemonName = targetPokemon.getName()
val lang = battleLang("transform", pokemonName, targetPokemonName)
battle.broadcastChatMessage(lang)
battle.minorBattleActions[pokemon.uuid] = message
}
}
/**
* Format:
* |-singlemove|POKEMON|MOVE
@@ -959,21 +1019,37 @@ object ShowdownInterpreter {
}
}
/**
* Format:
* |-endability|POKEMON
*
* The Pokémon POKEMON's Ability was surpressed
*/
private fun handleEndAbilityInstruction(battle: PokemonBattle, message: BattleMessage, remainingLines: MutableList<String>) {
battle.dispatchWaiting(1.5F) {
val pokemon = message.getBattlePokemon(0, battle) ?: return@dispatchWaiting
val pokemonName = pokemon.getName()
val lang = battleLang("endability", pokemonName)
battle.broadcastChatMessage(lang)
battle.minorBattleActions[pokemon.uuid] = message
}
}
/**
* Format:
* |-block|POKEMON|EFFECT|MOVE|ATTACKER
*
* An effect targeted at POKEMON was blocked by EFFECT. This may optionally specify that the effect was a MOVE from ATTACKER. [of]SOURCE will note the owner of the EFFECT, in the case that it's not EFFECT (for instance, an ally with Aroma Veil.)
* An effect targeted at POKEMON was blocked by EFFECT. This may optionally specify that the effect was a MOVE from ATTACKER.
*
* (of)SOURCE will note the owner of the EFFECT, in the case that it's not EFFECT (for instance, an ally with Aroma Veil.)
*/
private fun handleBlockInstructions(battle: PokemonBattle, message: BattleMessage, remainingLines: MutableList<String>) {
battle.dispatchWaiting(1.5F) {
val pokemon = message.getBattlePokemon(0, battle) ?: return@dispatchWaiting
val pokemonName = pokemon.getName()
val effectID = message.effectAt(1)?.id ?: return@dispatchWaiting
val lang = when (effectID) {
"matblock" -> battleLang("block.matblock", message.effectAt(2)!!.rawData)
else -> battleLang("block.$effectID", pokemonName)
}
val lang = battleLang("block.$effectID", pokemonName)
battle.broadcastChatMessage(lang)
battle.minorBattleActions[pokemon.uuid] = message
@@ -991,6 +1067,7 @@ object ShowdownInterpreter {
val pokemonName = pokemon.getName()
val sourceName = message.getSourceBattlePokemon(battle)?.getName() ?: Text.literal("UNKOWN")
val effect = message.effectAt(1) ?: return
val extraEffect = message.effectAt(2)?.typelessData ?: Text.literal("UNKOWN")
broadcastOptionalAbility(battle, effect, pokemonName)
battle.dispatch{
@@ -1001,24 +1078,18 @@ object ShowdownInterpreter {
// Includes a 3rd argument being the magnitude level as a number
"magnitude" -> battleLang("activate.magnitude", message.argumentAt(2)?.toIntOrNull() ?: 1)
// Includes spited move and the PP it was reduced by
"spite" -> battleLang("activate.spite", pokemonName, message.argumentAt(2)!!, message.argumentAt(3)!!)
"spite", "eeriespell" -> battleLang("activate.spite", pokemonName, extraEffect, message.argumentAt(3)!!)
// Don't need additional lang, announced elsewhere
"toxicdebris", "shedskin" -> return@dispatch GO
"matblock" -> battleLang("activate.matblock", message.effectAt(2)!!.rawData)
// Add activation to each Pokemon's history
"destinybond" -> {
battle.activePokemon.mapNotNull { it.battlePokemon?.uuid }.forEach { battle.minorBattleActions[it] = message }
battleLang("activate.destinybond", pokemonName)
}
// Includes revealed move
"forewarn" -> {
val moveName = message.moveAt(2)?.displayName ?: run { println(message.argumentAt(2)); "(Unrecognized: ${message.argumentAt(2)})".text() }
battleLang("activate.forewarn", sourceName, moveName)
}
"focussash", "focusband" -> battleLang("activate.focusband", pokemonName, message.effectAt(1)!!.typelessData)
"focussash", "focusband" -> battleLang("activate.focusband", pokemonName, effect.typelessData)
"maxguard", "protect" -> battleLang("activate.protect", pokemonName)
"shadowforce", "hyperspacefury", "hyperspacehole" -> battleLang("activate.phantomforce", pokemonName)
else -> battleLang("activate.${effect.id}", pokemonName, sourceName)
else -> battleLang("activate.${effect.id}", pokemonName, sourceName, extraEffect)
}
battle.broadcastChatMessage(lang)
WaitDispatch(1F)
@@ -1084,7 +1155,7 @@ object ShowdownInterpreter {
/**
* Format:
* |-ability|POKEMON|ABILITY|&#91from&#93EFFECT
* |-ability|POKEMON|ABILITY|(from)EFFECT
*
* The ABILITY of the POKEMON has been changed due to a move/ability EFFECT.
*
@@ -1179,7 +1250,11 @@ object ShowdownInterpreter {
val pokemonName = pokemon.getName()
val targetPokemon = message.getBattlePokemon(1, battle) ?: return@dispatchWaiting
val targetPokemonName = targetPokemon.getName()
val lang = battleLang("swapboost.generic", pokemonName, targetPokemonName)
val effectID = message.effect()?.id ?: return@dispatchWaiting
val lang = when (effectID) {
"guardswap", "powerswap", "heartswap" -> battleLang("swapboost.$effectID", pokemonName)
else -> battleLang("swapboost.generic", pokemonName, targetPokemonName)
}
battle.broadcastChatMessage(lang)
pokemon.contextManager.swap(targetPokemon.contextManager, BattleContext.Type.BOOST)
@@ -1188,6 +1263,26 @@ object ShowdownInterpreter {
}
}
/**
* Format:
* |-copyboost|SOURCE|TARGET|&#91from&#93EFFECT
*
* Copies any stat changes from the TARGET Pokémon to the SOURCE Pokémon due to EFFECT.
*/
private fun handleCopyBoostInstruction(battle: PokemonBattle, message: BattleMessage, remainingLines: MutableList<String>) {
battle.dispatchWaiting {
val pokemon = message.getBattlePokemon(0, battle) ?: return@dispatchWaiting
val pokemonName = pokemon.getName()
val targetPokemon = message.getBattlePokemon(1, battle) ?: return@dispatchWaiting
val targetPokemonName = targetPokemon.getName()
val lang = battleLang("copyboost.generic", pokemonName, targetPokemonName)
battle.broadcastChatMessage(lang)
pokemon.contextManager.copy(targetPokemon.contextManager, BattleContext.Type.BOOST, BattleContext.Type.UNBOOST)
battle.minorBattleActions[pokemon.uuid] = message
}
}
/**
* Format:
* |-end|POKEMON|EFFECT
@@ -1557,7 +1652,7 @@ object ShowdownInterpreter {
/**
* Format:
* |-item|POKEMON|ITEM|&#91from&#93EFFECT
* |-item|POKEMON|ITEM|(from)EFFECT
*
* The ITEM held by the POKEMON has been changed or revealed due to a move or ability EFFECT.
*
@@ -1580,7 +1675,7 @@ object ShowdownInterpreter {
/**
* Format:
* |-enditem|POKEMON|ITEM|&#91from&#93EFFECT
* |-enditem|POKEMON|ITEM|(from)EFFECT
*
* The ITEM held by POKEMON has been destroyed by a move or ability, and it now holds no item.
*
@@ -1591,11 +1686,12 @@ object ShowdownInterpreter {
*/
fun handleEndItemInstruction(battle: PokemonBattle, message: BattleMessage, remainingLines: MutableList<String>) {
battle.dispatchGo {
// All logic regarding broadcasting battle messages is handled in CobblemonHeldItemManager
val battlePokemon = message.getBattlePokemon(0, battle) ?: return@dispatchGo
val item = message.effectAt(1) ?: return@dispatchGo
val itemEffect = message.effectAt(1) ?: return@dispatchGo
battlePokemon.heldItemManager.handleEndInstruction(battlePokemon, battle, message)
battle.minorBattleActions[battlePokemon.uuid] = message
battlePokemon.contextManager.remove(item.id, BattleContext.Type.ITEM)
battlePokemon.contextManager.remove(itemEffect.id, BattleContext.Type.ITEM)
if (message.hasOptionalArgument("eat")) {
battlePokemon.entity?.playSound(CobblemonSounds.BERRY_EAT, 1F, 1F)
}
@@ -1727,7 +1823,9 @@ object ShowdownInterpreter {
message.hasOptionalArgument("zeffect") -> battleLang("clearallnegativeboost.zeffect", pokemonName)
else -> battleLang("clearallnegativeboost", pokemonName)
}
battle.broadcastChatMessage(lang)
if (!message.hasOptionalArgument("silent")) {
battle.broadcastChatMessage(lang)
}
battlePokemon.contextManager.clear(BattleContext.Type.UNBOOST)
battle.minorBattleActions[battlePokemon.uuid] = message
@@ -73,6 +73,15 @@ class ContextManager {
}
}
/** Copies all the [BattleContext]s belonging to the [bucketTypes] buckets of the [with] manager's respective buckets. */
fun copy(with: ContextManager, vararg bucketTypes: BattleContext.Type) {
bucketTypes.forEach { bucketType ->
val newContexts = with.buckets[bucketType]?.toMutableList()
this.clear(bucketType)
newContexts?.let { this.add(*it.toTypedArray()) }
}
}
/** Gets all [BattleContext]s belonging to the [bucketType] bucket. */
fun get(bucketType: BattleContext.Type) : Collection<BattleContext>? {
return buckets[bucketType]
@@ -126,7 +126,7 @@ object CobblemonHeldItemManager : BaseCobblemonHeldItemManager() {
this.take(pokemon, itemID)
return
}
val sourceName = battleMessage.getSourceBattlePokemon(battle)?.getName() ?: return // there MUST be a source
val sourceName = battleMessage.getSourceBattlePokemon(battle)?.getName() ?: Text.of("UNKNOWN")
val effect = battleMessage.effect()
val text = when {
effect?.id != null -> battleLang("enditem.${effect.id}", battlerName, itemName, sourceName)
@@ -757,6 +757,8 @@
"cobblemon.battle.turn": "It is now turn %1$s",
"cobblemon.battle.side_subject.ally": "your",
"cobblemon.battle.side_subject.opponent": "the opposing",
"cobblemon.battle.transform": "%1$s transformed into %2$s",
"cobblemon.battle.endability": "%1$s's Ability was suppressed!",
"cobblemon.battle.weather.raindance.start": "It started to rain!",
"cobblemon.battle.weather.raindance.upkeep": "Rain continues to fall.",
@@ -804,6 +806,24 @@
"cobblemon.battle.start.dynamax": "%1$s Dynamaxed!",
"cobblemon.battle.start.gmax": "%1$s Gigantamaxed!",
"cobblemon.battle.start.encore": "%1$s must do an encore!",
"cobblemon.battle.start.futuresight": "%1$s foresaw an attack!",
"cobblemon.battle.start.ingrain": "%1$s planted its roots!",
"cobblemon.battle.start.healblock": "%1$s was prevented from healing!",
"cobblemon.battle.start.mimic": "%1$s learned %2$s!",
"cobblemon.battle.start.octolock": "%1$s can no longer escape because of Octolock!",
"cobblemon.battle.start.burnup": "%1$s burned itself out!",
"cobblemon.battle.start.typechange": "%1$s transformed into the %2$s type!",
"cobblemon.battle.start.doomdesire": "%1$s chose Doom Desire as its destiny!",
"cobblemon.battle.start.doubleshock": "%1$s used up all of its electricity!",
"cobblemon.battle.start.stockpile": "%1$s stockpiled %2$s!",
"cobblemon.battle.start.powertrick": "%1$s switched its Attack and Defense!",
"cobblemon.battle.start.powershift": "%1$s swapped its offensive stats with its defensive stats!",
"cobblemon.battle.start.substitute": "%1$s put in a substitute!",
"cobblemon.battle.start.embargo": "%1$s can't use items anymore!",
"cobblemon.battle.start.typeadd": "%2$s type was added to %1$s!",
"cobblemon.battle.start.reflecttype": "%1$s's type became the same as %2$s's type!",
"cobblemon.battle.start.tarshot": "%1$s became weaker to fire!",
"cobblemon.battle.fieldstart.electricterrain": "An electric current ran across the battlefield!",
"cobblemon.battle.fieldstart.grassyterrain": "Grass grew to cover the battlefield!",
@@ -829,6 +849,8 @@
"cobblemon.battle.fieldactivate.perishsong": "All Pokémon that heard the song will faint in three turns!",
"cobblemon.battle.fieldactivate.iondeluge": "A deluge of ions showers the battlefield!",
"cobblemon.battle.fieldactivate.fairylock": "No one will be able to run away during the next turn!",
"cobblemon.battle.fieldactivate.teatime": "It's teatime! Everyone dug in to their Berries!",
"cobblemon.battle.sidestart.stealthrock": "Polished stones float in the air around %1$s team!",
"cobblemon.battle.sidestart.spikes": "Spikes were scattered on the ground all around %1$s team!",
@@ -838,7 +860,9 @@
"cobblemon.battle.sidestart.lightscreen": "Light Screen made %1$s team stronger against special moves!",
"cobblemon.battle.sidestart.auroraveil": "Aurora Veil made %1$s team stronger against physical and special moves!",
"cobblemon.battle.sidestart.tailwind": "The Tailwind blew from behind %1$s team!",
"cobblemon.battle.sidestart.safeguard": "%1$s's team cloaked itself in a mystical veil!",
"cobblemon.battle.sidestart.safeguard": "%1$s team cloaked itself in a mystical veil!",
"cobblemon.battle.sidestart.luckychant": "Lucky Chant shielded %1$s team from critical hits!",
"cobblemon.battle.sidestart.mist": "%1$s team became shrouded in mist!",
"cobblemon.battle.sideend.stealthrock": "The pointed stones disappeared from around %1$s team!",
"cobblemon.battle.sideend.spikes": "The spikes disappeared from the ground around %1$s team!",
@@ -848,7 +872,9 @@
"cobblemon.battle.sideend.lightscreen": "%1$s team's Light Screen wore off!",
"cobblemon.battle.sideend.auroraveil": "%1$s team's Aurora Veil wore off!",
"cobblemon.battle.sideend.tailwind": "%1$s team's Tailwind petered out!",
"cobblemon.battle.sideend.safeguard": "%1$s's team is no longer protected by Safeguard!",
"cobblemon.battle.sideend.safeguard": "%1$s team is no longer protected by Safeguard!",
"cobblemon.battle.sideend.luckychant": "%1$s team's Lucky Chant wore off!",
"cobblemon.battle.sideend.mist": "%1$s team is no longer protected by mist!",
"cobblemon.battle.cant.generic": "%1$s can't use %2$s!",
"cobblemon.battle.cant.truant": "%1$s is loafing around!",
@@ -898,7 +924,7 @@
"cobblemon.battle.activate.trick":"%1$s switched items with its target!",
"cobblemon.battle.activate.quickclaw": "%1$s can act faster than normal, thanks to its Quick Claw!",
"cobblemon.battle.activate.focusband": "%1$s hung on using its %2$s!",
"cobblemon.battle.activate.forewarn": "%1$s's %2$s was revealed!",
"cobblemon.battle.activate.forewarn": "%2$s's %3$s was revealed!",
"cobblemon.battle.activate.disguise": "It's disguise served it as a decoy!",
"cobblemon.battle.activate.liquidooze": "%1$s sucked up the liquid ooze!",
"cobblemon.battle.activate.whirlpool": "%1$s became trapped in the vortex!",
@@ -909,8 +935,24 @@
"cobblemon.battle.activate.substitute": "The substitute took damage for %1$s!",
"cobblemon.battle.activate.infestation": "%1$s has become infested!",
"cobblemon.battle.activate.phantomforce": "It broke through %1$s's protection!",
"cobblemon.battle.activate.matblock": "%1$s was blocked by the kicked-up mat!",
"cobblemon.battle.activate.matblock": "%3$s was blocked by the kicked-up mat!",
"cobblemon.battle.activate.electricterrain": "%1$s surrounds itself with electrified terrain!",
"cobblemon.battle.activate.ingrain": "%1$s anchored itself with its roots!",
"cobblemon.battle.activate.mist": "%1$s is protected by the mist!",
"cobblemon.battle.activate.poltergeist": "%1$s is about to be attacked by its %3$s!",
"cobblemon.battle.activate.powder": "When the flame touched the powder on the Pokémon, it exploded!",
"cobblemon.battle.activate.quash": "%1$s's move was postponed!",
"cobblemon.battle.activate.quickguard": "Quick Guard protected %1$s",
"cobblemon.battle.activate.safeguard": "%1$s is protected by Safeguard!",
"cobblemon.battle.activate.sketch": "%1$s sketched %3$s!",
"cobblemon.battle.activate.grudge": "%1$s's %3$s lost all of its PP due to the grudge!",
"cobblemon.battle.activate.speedswap": "%1$s switched Speed with its target!",
"cobblemon.battle.activate.switcheroo": "%1$s switched items with its target!",
"cobblemon.battle.activate.skillswap": "%1$s swapped Abilities with its target!",
"cobblemon.battle.activate.wideguard": "Wide Guard protected %1$s!",
"cobblemon.battle.activate.craftyshield": "Crafty Shield protected %1$s!",
"cobblemon.battle.activate.tidyup": "Tidying up complete!",
"cobblemon.battle.prepare.bounce": "%1$s sprang up!",
"cobblemon.battle.prepare.dig": "%1$s burrowed its way under the ground!",
"cobblemon.battle.prepare.shelltrap": "%1$s set a shell trap!",
@@ -928,6 +970,11 @@
"cobblemon.battle.prepare.solarbeam": "%1$s absorbed light!",
"cobblemon.battle.swapboost.generic": "%1$s swapped stat boosts with %2$s!",
"cobblemon.battle.swapboost.guardswap": "%1$s switched all changes to its Defense and Sp. Def with its target!",
"cobblemon.battle.swapboost.powerswap": "%1$s switched all changes to its Attack and Sp. Atk with its target!",
"cobblemon.battle.swapboost.heartswap": "%1$s switched stat changes with its target!",
"cobblemon.battle.copyboost.generic": "%1$s copied %2$s's stat changes!",
"cobblemon.battle.singleturn.protect": "%1$s protected itself!",
"cobblemon.battle.singleturn.endure": "%1$s braced itself!",
@@ -1008,6 +1055,8 @@
"cobblemon.battle.end.substitute": "%1$s's substitute faded!",
"cobblemon.battle.end.uproar": "%1$s calmed down.",
"cobblemon.battle.end.powertrick": "%1$s switched its Attack and Defense!",
"cobblemon.battle.end.healblock": "%1$s's Heal Block wore off!",
"cobblemon.battle.end.skydrop": "%1$s was freed from the Sky Drop!",
"cobblemon.battle.block.uproar": "But the uproar kept %1$s awake!",
@@ -1017,6 +1066,9 @@
"cobblemon.battle.fail.teatime": "But nothing happened!",
"cobblemon.battle.fail.slp": "But the target is already asleep!",
"cobblemon.battle.fail.uproar": "%1$s can't sleep in an uproar!",
"cobblemon.battle.fail.skydrop": "%1$s is too heavy to be lifted!",
"cobblemon.battle.fail.heal": "%1$s's HP is full!",
"cobblemon.battle.fail.grassknot": "%1$s shook its head. It seems like it can't use this move...",
"cobblemon.battle.sethp.painsplit": "The battlers shared their pain!",
@@ -1039,6 +1091,7 @@
"cobblemon.battle.error.pokemon_is_trapped": "[Unavailable choice] Can't switch: The active Pokémon is trapped",
"cobblemon.battle.error.canceled": "There's a time and place for everything, but not now!",
"cobblemon.battle.immune": "But %1$s is immune!",
"cobblemon.battle.invertboost": "%1$s's stat changes were inverted!",
"cobblemon.battle.missed": "But it missed.",
"cobblemon.battle.hit_count": "Hit %1$s times!",
"cobblemon.battle.hit_count_singular": "Hit 1 time!",
@@ -1059,13 +1112,14 @@
"cobblemon.battle.enditem.incinerate": "%1$s's %2$s was burned up!",
"cobblemon.battle.enditem.airballoon": "%1$s's Air Balloon popped!",
"cobblemon.battle.enditem.redcard": "%1$s held up its Red Card against %3$s!",
"cobblemon.battle.enditem.pluck": "%3$s stole and ate %1$s's %2$s!",
"cobblemon.battle.enditem.berryjuice": "%1$s's Berry Juice activated!",
"cobblemon.battle.enditem.generic": "%1$s used its %2$s!",
"cobblemon.battle.enditem.mentalherb": "%1$s shook off mental effects due to its Mental Herb!",
"cobblemon.battle.enditem.powerherb": "%1$s became fully charged due to its Power Herb!",
"cobblemon.battle.enditem.mirrorherb": "%1$s copied stat changes with its Mirror Herb!",
"cobblemon.battle.enditem.whiteherb": "%1$s returned its status to normal using its White Herb!",
"cobblemon.battle.enditem.corrosivegas": "%3$s corroded %1$s's %2$s!",
"cobblemon.battle.enditem.stealeat": "%3$s stole and ate its target's %2$s!",
"cobblemon.battle.heal.zeffect": "%1$s's HP was restored by the Z-Power!",
"cobblemon.battle.heal.wish": "%1$s's wish came true!",