mirror of
https://gitlab.com/cable-mc/cobblemon.git
synced 2026-10-27 04:26:27 -04:00
Merge branch '1.4.1-fixes' into 'main'
1.4.1 fixes See merge request cable-mc/cobblemon!814
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
- Slightly lowered the volume of all cries
|
||||
- Updated Pokeball animations and model.
|
||||
- Turtwig can now be put on shoulder.
|
||||
- Shuckles can now be milked for Berry Juice using a wooden bowl
|
||||
- Updated Zubat line model, texture, and animations.
|
||||
- Updated Geodude line models and textures.
|
||||
- Added animations for Hitmontop, Tyrogue, and Mightyena.
|
||||
|
||||
@@ -862,6 +862,8 @@ object ShowdownInterpreter {
|
||||
val pokemon = message.getBattlePokemon(0, battle) ?: return@dispatchWaiting
|
||||
val pokemonName = pokemon.getName()
|
||||
val effectID = message.effectAt(1)?.id
|
||||
val cause = message.effect("from")
|
||||
val of = message.getSourceBattlePokemon(battle)
|
||||
|
||||
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.)
|
||||
@@ -869,6 +871,15 @@ object ShowdownInterpreter {
|
||||
"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
|
||||
"unboost" -> {
|
||||
val statKey = message.argumentAt(2)
|
||||
val stat = statKey?.let { getStat(it).displayName }
|
||||
if (stat != null) {
|
||||
battleLang("fail.$effectID.single", pokemonName, stat)
|
||||
} else {
|
||||
battleLang("fail.$effectID", pokemonName)
|
||||
}
|
||||
}
|
||||
else -> battleLang("fail.$effectID", pokemonName)
|
||||
}
|
||||
battle.broadcastChatMessage(lang.red())
|
||||
@@ -1758,7 +1769,7 @@ object ShowdownInterpreter {
|
||||
// This part is not always present
|
||||
val rawStatus = rawHpAndStatus.getOrNull(1) ?: return@dispatchWaiting
|
||||
val status = Statuses.getStatus(rawStatus) ?: return@dispatchWaiting
|
||||
if (status is PersistentStatus) {
|
||||
if (status is PersistentStatus && battlePokemon.effectedPokemon.status?.status != status) {
|
||||
battlePokemon.effectedPokemon.applyStatus(status)
|
||||
if (pnx != null) {
|
||||
battle.sendUpdate(BattlePersistentStatusPacket(pnx, status))
|
||||
|
||||
@@ -240,6 +240,7 @@ object CobblemonClient {
|
||||
|
||||
fun endBattle() {
|
||||
battle = null
|
||||
battleOverlay.lastKnownBattle = null
|
||||
BattleMusicController.endMusic()
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
{
|
||||
"name": "body",
|
||||
"parent": "tyrogue",
|
||||
"pivot": [0, 0, 0]
|
||||
"pivot": [0, 9, 0]
|
||||
},
|
||||
{
|
||||
"name": "torso",
|
||||
|
||||
@@ -201,6 +201,7 @@
|
||||
"item.cobblemon.light_orb": "Light Orb",
|
||||
"item.cobblemon.smoke_ball": "Smoke Ball",
|
||||
"item.cobblemon.toxic_orb": "Toxic Orb",
|
||||
"item.cobblemon.life_orb": "Life Orb",
|
||||
|
||||
"item.cobblemon.poke_ball.tooltip": "1× catch rate",
|
||||
"item.cobblemon.slate_ball.tooltip": "1× catch rate",
|
||||
@@ -1064,11 +1065,19 @@
|
||||
"cobblemon.battle.fail.healblock": "But it failed to affect %1$s!",
|
||||
"cobblemon.battle.fail.darkvoid": "But %1$s can't use the move!",
|
||||
"cobblemon.battle.fail.teatime": "But nothing happened!",
|
||||
"cobblemon.battle.fail.slp": "But the target is already asleep!",
|
||||
"cobblemon.battle.fail.slp": "But %1$s is already asleep!",
|
||||
"cobblemon.battle.fail.par": "But %1$s is already paralyzed!",
|
||||
"cobblemon.battle.fail.tox": "But %1$s is already poisoned!",
|
||||
"cobblemon.battle.fail.psn": "But %1$s is already poisoned!",
|
||||
"cobblemon.battle.fail.brn": "But %1$s is already burned!",
|
||||
"cobblemon.battle.fail.frz": "But %1$s is already frozen!",
|
||||
|
||||
"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.fail.unboost.single": "%1$s's %2$s was not lowered!",
|
||||
"cobblemon.battle.fail.unboost": "%1$s's %2$s stats did not get lowered!",
|
||||
|
||||
"cobblemon.battle.sethp.painsplit": "The battlers shared their pain!",
|
||||
|
||||
@@ -1135,6 +1144,7 @@
|
||||
"cobblemon.battle.heal.raindish": "%1$s restored HP from Rain Dish!",
|
||||
"cobblemon.battle.heal.generic": "%1$s restored its HP.",
|
||||
"cobblemon.battle.heal.bagitempotion": "It restored %1$s's HP",
|
||||
"cobblemon.battle.heal.poisonheal": "%1$s restored HP from Poison Heal!",
|
||||
|
||||
"cobblemon.battle.curestatus.naturalcure": "%1$s is cured by its Natural Cure!",
|
||||
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
{
|
||||
"parent": "cobblemon:recipes/root",
|
||||
"criteria": {
|
||||
"has_shard": {
|
||||
"conditions": {
|
||||
"items": [
|
||||
{
|
||||
"items": [
|
||||
"minecraft:amethyst_shard"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"trigger": "minecraft:inventory_changed"
|
||||
},
|
||||
"has_the_recipe": {
|
||||
"conditions": {
|
||||
"recipe": "cobblemon:pink_bow"
|
||||
},
|
||||
"trigger": "minecraft:recipe_unlocked"
|
||||
}
|
||||
},
|
||||
"requirements": [
|
||||
[
|
||||
"has_shard",
|
||||
"has_the_recipe"
|
||||
]
|
||||
],
|
||||
"rewards": {
|
||||
"recipes": [
|
||||
"cobblemon:pink_bow"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern": [
|
||||
"W W",
|
||||
"RAR",
|
||||
"W W"
|
||||
],
|
||||
"key": {
|
||||
"W": {
|
||||
"item": "minecraft:pink_wool"
|
||||
},
|
||||
"A": {
|
||||
"item": "minecraft:amethyst_shard"
|
||||
},
|
||||
"R": {
|
||||
"item": "minecraft:rabbit_foot"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"item": "cobblemon:pink_bow"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user