mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 16:32:16 +02:00
Merge branch 'main' into plates_memories
This commit is contained in:
commit
05b7f18234
@ -90,6 +90,7 @@ export default class BattleScene extends SceneBase {
|
|||||||
public seVolume: number = 1;
|
public seVolume: number = 1;
|
||||||
public gameSpeed: integer = 1;
|
public gameSpeed: integer = 1;
|
||||||
public damageNumbersMode: integer = 0;
|
public damageNumbersMode: integer = 0;
|
||||||
|
public reroll: boolean = false;
|
||||||
public showMovesetFlyout: boolean = true;
|
public showMovesetFlyout: boolean = true;
|
||||||
public showLevelUpStats: boolean = true;
|
public showLevelUpStats: boolean = true;
|
||||||
public enableTutorials: boolean = import.meta.env.VITE_BYPASS_TUTORIAL === "1";
|
public enableTutorials: boolean = import.meta.env.VITE_BYPASS_TUTORIAL === "1";
|
||||||
@ -1311,6 +1312,7 @@ export default class BattleScene extends SceneBase {
|
|||||||
const formattedMoney =
|
const formattedMoney =
|
||||||
this.moneyFormat === MoneyFormat.ABBREVIATED ? Utils.formatFancyLargeNumber(this.money, 3) : this.money.toLocaleString();
|
this.moneyFormat === MoneyFormat.ABBREVIATED ? Utils.formatFancyLargeNumber(this.money, 3) : this.money.toLocaleString();
|
||||||
this.moneyText.setText(`₽${formattedMoney}`);
|
this.moneyText.setText(`₽${formattedMoney}`);
|
||||||
|
this.fieldUI.moveAbove(this.moneyText, this.luckText);
|
||||||
if (forceVisible) {
|
if (forceVisible) {
|
||||||
this.moneyText.setVisible(true);
|
this.moneyText.setVisible(true);
|
||||||
}
|
}
|
||||||
@ -1322,12 +1324,8 @@ export default class BattleScene extends SceneBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateAndShowText(duration: integer): void {
|
updateAndShowText(duration: integer): void {
|
||||||
this.fieldUI.moveBelow(this.moneyText, this.luckText);
|
|
||||||
const labels = [ this.luckLabelText, this.luckText ];
|
const labels = [ this.luckLabelText, this.luckText ];
|
||||||
labels.map(t => {
|
labels.forEach(t => t.setAlpha(0));
|
||||||
t.setAlpha(0);
|
|
||||||
t.setVisible(true);
|
|
||||||
});
|
|
||||||
const luckValue = getPartyLuckValue(this.getParty());
|
const luckValue = getPartyLuckValue(this.getParty());
|
||||||
this.luckText.setText(getLuckString(luckValue));
|
this.luckText.setText(getLuckString(luckValue));
|
||||||
if (luckValue < 14) {
|
if (luckValue < 14) {
|
||||||
@ -1339,18 +1337,24 @@ export default class BattleScene extends SceneBase {
|
|||||||
this.tweens.add({
|
this.tweens.add({
|
||||||
targets: labels,
|
targets: labels,
|
||||||
duration: duration,
|
duration: duration,
|
||||||
alpha: 1
|
alpha: 1,
|
||||||
|
onComplete: () => {
|
||||||
|
labels.forEach(t => t.setVisible(true));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
hideLuckText(duration: integer): void {
|
hideLuckText(duration: integer): void {
|
||||||
|
if (this.reroll) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const labels = [ this.luckLabelText, this.luckText ];
|
const labels = [ this.luckLabelText, this.luckText ];
|
||||||
this.tweens.add({
|
this.tweens.add({
|
||||||
targets: labels,
|
targets: labels,
|
||||||
duration: duration,
|
duration: duration,
|
||||||
alpha: 0,
|
alpha: 0,
|
||||||
onComplete: () => {
|
onComplete: () => {
|
||||||
labels.map(l => l.setVisible(false));
|
labels.forEach(l => l.setVisible(false));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import Phaser from "phaser";
|
import Phaser from "phaser";
|
||||||
import * as Utils from "./utils";
|
import * as Utils from "./utils";
|
||||||
import {initTouchControls} from "./touch-controls";
|
import {ButtonKey, initTouchControls} from "./touch-controls";
|
||||||
import pad_generic from "./configs/pad_generic";
|
import pad_generic from "./configs/pad_generic";
|
||||||
import pad_unlicensedSNES from "./configs/pad_unlicensedSNES";
|
import pad_unlicensedSNES from "./configs/pad_unlicensedSNES";
|
||||||
import pad_xbox360 from "./configs/pad_xbox360";
|
import pad_xbox360 from "./configs/pad_xbox360";
|
||||||
@ -357,7 +357,7 @@ export class InputsController {
|
|||||||
[Button.SPEED_UP]: [keyCodes.PLUS],
|
[Button.SPEED_UP]: [keyCodes.PLUS],
|
||||||
[Button.SLOW_DOWN]: [keyCodes.MINUS]
|
[Button.SLOW_DOWN]: [keyCodes.MINUS]
|
||||||
};
|
};
|
||||||
const mobileKeyConfig = {};
|
const mobileKeyConfig = new Map<string, ButtonKey>();
|
||||||
for (const b of Utils.getEnumValues(Button)) {
|
for (const b of Utils.getEnumValues(Button)) {
|
||||||
const keys: Phaser.Input.Keyboard.Key[] = [];
|
const keys: Phaser.Input.Keyboard.Key[] = [];
|
||||||
if (keyConfig.hasOwnProperty(b)) {
|
if (keyConfig.hasOwnProperty(b)) {
|
||||||
|
@ -12,12 +12,12 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
},
|
},
|
||||||
"PokemonHeldItemModifierType": {
|
"PokemonHeldItemModifierType": {
|
||||||
extra: {
|
extra: {
|
||||||
"inoperable": "¡{{pokemonName}} no puede\ntener este objeto!",
|
"inoperable": "¡{{pokemonName}} no puede\nrecibir este objeto!",
|
||||||
"tooMany": "¡{{pokemonName}} tiene este objeto\ndemasiada veces!",
|
"tooMany": "¡{{pokemonName}} tiene este objeto\ndemasiadas veces!",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"PokemonHpRestoreModifierType": {
|
"PokemonHpRestoreModifierType": {
|
||||||
description: "Restaura {{restorePoints}} PS o {{restorePercent}}% PS de un Pokémon, cualquiera de los dos sea el mas alto",
|
description: "Restaura {{restorePoints}} PS o, al menos, un {{restorePercent}}% PS de un Pokémon",
|
||||||
extra: {
|
extra: {
|
||||||
"fully": "Restaura todos los PS de un Pokémon",
|
"fully": "Restaura todos los PS de un Pokémon",
|
||||||
"fullyWithStatus": "Restaura todos los PS de un Pokémon y cura todos los problemas de estados",
|
"fullyWithStatus": "Restaura todos los PS de un Pokémon y cura todos los problemas de estados",
|
||||||
@ -46,13 +46,13 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
},
|
},
|
||||||
"PokemonNatureChangeModifierType": {
|
"PokemonNatureChangeModifierType": {
|
||||||
name: "Menta {{natureName}}",
|
name: "Menta {{natureName}}",
|
||||||
description: "Cambia la naturaleza de un Pokémon a {{natureName}} y desbloquea permanentemente la naturaleza para el inicial",
|
description: "Cambia la naturaleza de un Pokémon a {{natureName}} y desbloquea permanentemente dicha naturaleza para el inicial",
|
||||||
},
|
},
|
||||||
"DoubleBattleChanceBoosterModifierType": {
|
"DoubleBattleChanceBoosterModifierType": {
|
||||||
description: "Duplica la posibilidad de que un encuentro sea una combate doble por {{battleCount}} combates",
|
description: "Duplica la posibilidad de que un encuentro sea una combate doble durante {{battleCount}} combates",
|
||||||
},
|
},
|
||||||
"TempBattleStatBoosterModifierType": {
|
"TempBattleStatBoosterModifierType": {
|
||||||
description: "Aumenta el {{tempBattleStatName}} de todos los miembros del equipo en 1 nivel para 5 combates",
|
description: "Aumenta la est. {{tempBattleStatName}} de todos los miembros del equipo en 1 nivel durante 5 combates",
|
||||||
},
|
},
|
||||||
"AttackTypeBoosterModifierType": {
|
"AttackTypeBoosterModifierType": {
|
||||||
description: "Aumenta la potencia de los movimientos de tipo {{moveType}} de un Pokémon en un 20%",
|
description: "Aumenta la potencia de los movimientos de tipo {{moveType}} de un Pokémon en un 20%",
|
||||||
@ -64,7 +64,7 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
description: "Aumenta el nivel de todos los miembros del equipo en 1",
|
description: "Aumenta el nivel de todos los miembros del equipo en 1",
|
||||||
},
|
},
|
||||||
"PokemonBaseStatBoosterModifierType": {
|
"PokemonBaseStatBoosterModifierType": {
|
||||||
description: "Aumenta {{statName}} base del portador en un 10%. Cuanto mayores sean tus IV, mayor será el límite de acumulación",
|
description: "Aumenta la est. {{statName}} base del portador en un 10%.\nCuanto mayores sean tus IVs, mayor será el límite de acumulación",
|
||||||
},
|
},
|
||||||
"AllPokemonFullHpRestoreModifierType": {
|
"AllPokemonFullHpRestoreModifierType": {
|
||||||
description: "Restaura el 100% de los PS de todos los Pokémon",
|
description: "Restaura el 100% de los PS de todos los Pokémon",
|
||||||
@ -75,7 +75,7 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
"MoneyRewardModifierType": {
|
"MoneyRewardModifierType": {
|
||||||
description: "Otorga una {{moneyMultiplier}} cantidad de dinero (₽{{moneyAmount}})",
|
description: "Otorga una {{moneyMultiplier}} cantidad de dinero (₽{{moneyAmount}})",
|
||||||
extra: {
|
extra: {
|
||||||
"small": "pequaña",
|
"small": "pequeña",
|
||||||
"moderate": "moderada",
|
"moderate": "moderada",
|
||||||
"large": "gran",
|
"large": "gran",
|
||||||
},
|
},
|
||||||
@ -110,7 +110,7 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
},
|
},
|
||||||
"TerastallizeModifierType": {
|
"TerastallizeModifierType": {
|
||||||
name: "Teralito {{teraType}}",
|
name: "Teralito {{teraType}}",
|
||||||
description: "Teracristaliza al portador al tipo {{teraType}} por 10 combates",
|
description: "Teracristaliza al portador al tipo {{teraType}} durante 10 combates",
|
||||||
},
|
},
|
||||||
"ContactHeldItemTransferChanceModifierType": {
|
"ContactHeldItemTransferChanceModifierType": {
|
||||||
description: "Al atacar, hay un {{chancePercent}}% de posibilidades de que robes el objeto que tiene el enemigo",
|
description: "Al atacar, hay un {{chancePercent}}% de posibilidades de que robes el objeto que tiene el enemigo",
|
||||||
@ -128,11 +128,11 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
"RARE_CANDY": { name: "Carameloraro" },
|
"RARE_CANDY": { name: "Carameloraro" },
|
||||||
"RARER_CANDY": { name: "Rarer Candy" },
|
"RARER_CANDY": { name: "Rarer Candy" },
|
||||||
|
|
||||||
"MEGA_BRACELET": { name: "Mega-aro", description: "Las Megapiedras están disponible" },
|
"MEGA_BRACELET": { name: "Mega-aro", description: "Las Megapiedras están disponibles" },
|
||||||
"DYNAMAX_BAND": { name: "Maximuñequera", description: "Las Maxisetas están disponible" },
|
"DYNAMAX_BAND": { name: "Maximuñequera", description: "Las Maxisetas están disponibles" },
|
||||||
"TERA_ORB": { name: "Orbe Teracristal", description: "Los Teralitos están disponible" },
|
"TERA_ORB": { name: "Orbe Teracristal", description: "Los Teralitos están disponibles" },
|
||||||
|
|
||||||
"MAP": { name: "Mapa", description: "Te permite elegir tu destino" },
|
"MAP": { name: "Mapa", description: "Te permite elegir tu camino al final del bioma" },
|
||||||
|
|
||||||
"POTION": { name: "Poción" },
|
"POTION": { name: "Poción" },
|
||||||
"SUPER_POTION": { name: "Superpoción" },
|
"SUPER_POTION": { name: "Superpoción" },
|
||||||
@ -145,7 +145,7 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
|
|
||||||
"FULL_HEAL": { name: "Cura Total" },
|
"FULL_HEAL": { name: "Cura Total" },
|
||||||
|
|
||||||
"SACRED_ASH": { name: "Cen Sagrada" },
|
"SACRED_ASH": { name: "Cen. Sagrada" },
|
||||||
|
|
||||||
"REVIVER_SEED": { name: "Semilla Revivir", description: "Revive al portador con la mitad de sus PS al debilitarse" },
|
"REVIVER_SEED": { name: "Semilla Revivir", description: "Revive al portador con la mitad de sus PS al debilitarse" },
|
||||||
|
|
||||||
@ -165,9 +165,9 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
"MEMORY_MUSHROOM": { name: "Memory Mushroom", description: "Recall one Pokémon's forgotten move" },
|
"MEMORY_MUSHROOM": { name: "Memory Mushroom", description: "Recall one Pokémon's forgotten move" },
|
||||||
|
|
||||||
"EXP_SHARE": { name: "Repartir EXP", description: "Los que no combatan reciben el 20% de la EXP" },
|
"EXP_SHARE": { name: "Repartir EXP", description: "Los que no combatan reciben el 20% de la EXP" },
|
||||||
"EXP_BALANCE": { name: "EXP. Balance", description: "Reparte la EXP recibida a los miembros del equipo que tengan menos nivel" },
|
"EXP_BALANCE": { name: "EXP. Balance", description: "Da mayor parte de la EXP recibida a los miembros del equipo que tengan menos nivel" },
|
||||||
|
|
||||||
"OVAL_CHARM": { name: "Amuleto Oval", description: "When multiple Pokémon participate in a battle, each gets an extra 10% of the total EXP" },
|
"OVAL_CHARM": { name: "Amuleto Oval", description: "Cada Pokémon combatiente recibe un 10% adicional de la EXP total" },
|
||||||
|
|
||||||
"EXP_CHARM": { name: "Amuleto EXP" },
|
"EXP_CHARM": { name: "Amuleto EXP" },
|
||||||
"SUPER_EXP_CHARM": { name: "Super Amuleto EXP" },
|
"SUPER_EXP_CHARM": { name: "Super Amuleto EXP" },
|
||||||
@ -176,7 +176,7 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
"LUCKY_EGG": { name: "Huevo Suerte" },
|
"LUCKY_EGG": { name: "Huevo Suerte" },
|
||||||
"GOLDEN_EGG": { name: "Huevo Dorado" },
|
"GOLDEN_EGG": { name: "Huevo Dorado" },
|
||||||
|
|
||||||
"SOOTHE_BELL": { name: "Camp Alivio" },
|
"SOOTHE_BELL": { name: "Camp. Alivio" },
|
||||||
|
|
||||||
"SOUL_DEW": { name: "Rocío bondad", description: "Aumenta la influencia de la naturaleza de un Pokémon en sus estadísticas en un 10% (aditivo)" },
|
"SOUL_DEW": { name: "Rocío bondad", description: "Aumenta la influencia de la naturaleza de un Pokémon en sus estadísticas en un 10% (aditivo)" },
|
||||||
|
|
||||||
@ -184,13 +184,13 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
"BIG_NUGGET": { name: "Maxipepita" },
|
"BIG_NUGGET": { name: "Maxipepita" },
|
||||||
"RELIC_GOLD": { name: "Real de oro" },
|
"RELIC_GOLD": { name: "Real de oro" },
|
||||||
|
|
||||||
"AMULET_COIN": { name: "Moneda amuleto", description: "Aumenta el dinero ganado en un 20%" },
|
"AMULET_COIN": { name: "Moneda Amuleto", description: "Aumenta el dinero ganado en un 20%" },
|
||||||
"GOLDEN_PUNCH": { name: "Puño Dorado", description: "Otorga el 50% del daño infligido como dinero" },
|
"GOLDEN_PUNCH": { name: "Puño Dorado", description: "Otorga el 50% del daño infligido como dinero" },
|
||||||
"COIN_CASE": { name: "Monedero", description: "Después de cada 10 combates, recibe el 10% de tu dinero en intereses" },
|
"COIN_CASE": { name: "Monedero", description: "Después de cada 10 combates, recibe el 10% de tu dinero en intereses" },
|
||||||
|
|
||||||
"LOCK_CAPSULE": { name: "Cápsula candado", description: "Le permite bloquear las rarezas de los objetos al cambiar de objetos" },
|
"LOCK_CAPSULE": { name: "Cápsula candado", description: "Le permite bloquear las rarezas de los objetos al cambiar de objetos" },
|
||||||
|
|
||||||
"GRIP_CLAW": { name: "Garra garfio" },
|
"GRIP_CLAW": { name: "Garra Garfio" },
|
||||||
"WIDE_LENS": { name: "Lupa" },
|
"WIDE_LENS": { name: "Lupa" },
|
||||||
|
|
||||||
"MULTI_LENS": { name: "Multi Lens" },
|
"MULTI_LENS": { name: "Multi Lens" },
|
||||||
@ -214,7 +214,7 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
"SHINY_CHARM": { name: "Amuleto Iris", description: "Aumenta drásticamente la posibilidad de que un Pokémon salvaje sea Shiny" },
|
"SHINY_CHARM": { name: "Amuleto Iris", description: "Aumenta drásticamente la posibilidad de que un Pokémon salvaje sea Shiny" },
|
||||||
"ABILITY_CHARM": { name: "Amuleto Habilidad", description: "Aumenta drásticamente la posibilidad de que un Pokémon salvaje tenga una habilidad oculta" },
|
"ABILITY_CHARM": { name: "Amuleto Habilidad", description: "Aumenta drásticamente la posibilidad de que un Pokémon salvaje tenga una habilidad oculta" },
|
||||||
|
|
||||||
"IV_SCANNER": { name: "Escáner IV", description: "Permite escanear los IV de Pokémon salvajes. Se revelan 2 IV por cada objeto Los mejores IV se muestran primero" },
|
"IV_SCANNER": { name: "Escáner IV", description: "Permite escanear los IVs de Pokémon salvajes. Se revelan 2 IVs por cada objeto.\nLos mejores IVs se muestran primero" },
|
||||||
|
|
||||||
"DNA_SPLICERS": { name: "Punta ADN" },
|
"DNA_SPLICERS": { name: "Punta ADN" },
|
||||||
|
|
||||||
@ -241,7 +241,7 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
"x_sp_def": "Def. Esp. X",
|
"x_sp_def": "Def. Esp. X",
|
||||||
"x_speed": "Velocidad X",
|
"x_speed": "Velocidad X",
|
||||||
"x_accuracy": "Precisión X",
|
"x_accuracy": "Precisión X",
|
||||||
"dire_hit": "Directo",
|
"dire_hit": "Crítico X",
|
||||||
},
|
},
|
||||||
AttackTypeBoosterItem: {
|
AttackTypeBoosterItem: {
|
||||||
"silk_scarf": "Pañuelo Seda",
|
"silk_scarf": "Pañuelo Seda",
|
||||||
@ -274,7 +274,7 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
EvolutionItem: {
|
EvolutionItem: {
|
||||||
"NONE": "None",
|
"NONE": "None",
|
||||||
|
|
||||||
"LINKING_CORD": "Cordón unión",
|
"LINKING_CORD": "Cordón Unión",
|
||||||
"SUN_STONE": "Piedra Solar",
|
"SUN_STONE": "Piedra Solar",
|
||||||
"MOON_STONE": "Piedra Lunar",
|
"MOON_STONE": "Piedra Lunar",
|
||||||
"LEAF_STONE": "Piedra Hoja",
|
"LEAF_STONE": "Piedra Hoja",
|
||||||
@ -285,24 +285,24 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
"DUSK_STONE": "Piedra Noche",
|
"DUSK_STONE": "Piedra Noche",
|
||||||
"DAWN_STONE": "Piedra Alba",
|
"DAWN_STONE": "Piedra Alba",
|
||||||
"SHINY_STONE": "Piedra Día",
|
"SHINY_STONE": "Piedra Día",
|
||||||
"CRACKED_POT": "Tetera agrietada",
|
"CRACKED_POT": "Tetera Agrietada",
|
||||||
"SWEET_APPLE": "Manzana dulce",
|
"SWEET_APPLE": "Manzana Dulce",
|
||||||
"TART_APPLE": "Manzana ácida",
|
"TART_APPLE": "Manzana Ácida",
|
||||||
"STRAWBERRY_SWEET": "Confite fresa",
|
"STRAWBERRY_SWEET": "Confite Fresa",
|
||||||
"UNREMARKABLE_TEACUP": "Cuenco mediocre",
|
"UNREMARKABLE_TEACUP": "Cuenco Mediocre",
|
||||||
|
|
||||||
"CHIPPED_POT": "Tetera rota",
|
"CHIPPED_POT": "Tetera Rota",
|
||||||
"BLACK_AUGURITE": "Mineral negro",
|
"BLACK_AUGURITE": "Mineral Negro",
|
||||||
"GALARICA_CUFF": "Brazal galanuez",
|
"GALARICA_CUFF": "Brazal Galanuez",
|
||||||
"GALARICA_WREATH": "Corona galanuez",
|
"GALARICA_WREATH": "Corona Galanuez",
|
||||||
"PEAT_BLOCK": "Bloque de turba",
|
"PEAT_BLOCK": "Bloque de Turba",
|
||||||
"AUSPICIOUS_ARMOR": "Armadura auspiciosa",
|
"AUSPICIOUS_ARMOR": "Armadura Auspiciosa",
|
||||||
"MALICIOUS_ARMOR": "Armadura maldita",
|
"MALICIOUS_ARMOR": "Armadura Maldita",
|
||||||
"MASTERPIECE_TEACUP": "Cuenco exquisito",
|
"MASTERPIECE_TEACUP": "Cuenco Exquisito",
|
||||||
"METAL_ALLOY": "Metal compuesto",
|
"METAL_ALLOY": "Metal Compuesto",
|
||||||
"SCROLL_OF_DARKNESS": "Manuscrito sombras",
|
"SCROLL_OF_DARKNESS": "Manuscrito Sombras",
|
||||||
"SCROLL_OF_WATERS": "Manuscrito aguas",
|
"SCROLL_OF_WATERS": "Manuscrito Aguas",
|
||||||
"SYRUPY_APPLE": "Manzana melosa",
|
"SYRUPY_APPLE": "Manzana Melosa",
|
||||||
},
|
},
|
||||||
FormChangeItem: {
|
FormChangeItem: {
|
||||||
"NONE": "None",
|
"NONE": "None",
|
||||||
@ -356,33 +356,33 @@ export const modifierType: ModifierTypeTranslationEntries = {
|
|||||||
"TYRANITARITE": "Tyranitarita",
|
"TYRANITARITE": "Tyranitarita",
|
||||||
"VENUSAURITE": "Venusaurita",
|
"VENUSAURITE": "Venusaurita",
|
||||||
|
|
||||||
"BLUE_ORB": "Blue Orb",
|
"BLUE_ORB": "Prisma Azul",
|
||||||
"RED_ORB": "Red Orb",
|
"RED_ORB": "Prisma Rojo",
|
||||||
"SHARP_METEORITE": "Sharp Meteorite",
|
"SHARP_METEORITE": "Meteorito Afilado",
|
||||||
"HARD_METEORITE": "Hard Meteorite",
|
"HARD_METEORITE": "Meteorito Duro",
|
||||||
"SMOOTH_METEORITE": "Smooth Meteorite",
|
"SMOOTH_METEORITE": "Meteorito Suave",
|
||||||
"ADAMANT_CRYSTAL": "Adamant Crystal",
|
"ADAMANT_CRYSTAL": "Gran Diamansfera",
|
||||||
"LUSTROUS_ORB": "Lustrous Orb",
|
"LUSTROUS_ORB": "Gran Lustresfera",
|
||||||
"GRISEOUS_CORE": "Griseous Core",
|
"GRISEOUS_CORE": "Gran Griseosfera",
|
||||||
"REVEAL_GLASS": "Reveal Glass",
|
"REVEAL_GLASS": "Espejo Veraz",
|
||||||
"GRACIDEA": "Gracidea",
|
"GRACIDEA": "Gracídea",
|
||||||
"MAX_MUSHROOMS": "Max Mushrooms",
|
"MAX_MUSHROOMS": "MaxiSetas",
|
||||||
"DARK_STONE": "Dark Stone",
|
"DARK_STONE": "Piedra Oscura",
|
||||||
"LIGHT_STONE": "Light Stone",
|
"LIGHT_STONE": "Piedra Luminosa",
|
||||||
"PRISON_BOTTLE": "Prison Bottle",
|
"PRISON_BOTTLE": "Vasija Castigo",
|
||||||
"N_LUNARIZER": "N Lunarizer",
|
"N_LUNARIZER": "Necroluna",
|
||||||
"N_SOLARIZER": "N Solarizer",
|
"N_SOLARIZER": "Necrosol",
|
||||||
"RUSTED_SWORD": "Rusted Sword",
|
"RUSTED_SWORD": "Espada Oxidada",
|
||||||
"RUSTED_SHIELD": "Rusted Shield",
|
"RUSTED_SHIELD": "Escudo Oxidado",
|
||||||
"ICY_REINS_OF_UNITY": "Icy Reins Of Unity",
|
"ICY_REINS_OF_UNITY": "Riendas Unión Heladas",
|
||||||
"SHADOW_REINS_OF_UNITY": "Shadow Reins Of Unity",
|
"SHADOW_REINS_OF_UNITY": "Riendas Unión Oscuras",
|
||||||
"WELLSPRING_MASK": "Wellspring Mask",
|
"WELLSPRING_MASK": "Máscara Fuente",
|
||||||
"HEARTHFLAME_MASK": "Hearthflame Mask",
|
"HEARTHFLAME_MASK": "Máscara Horno",
|
||||||
"CORNERSTONE_MASK": "Cornerstone Mask",
|
"CORNERSTONE_MASK": "Máscara Cimiento",
|
||||||
"SHOCK_DRIVE": "Shock Drive",
|
"SHOCK_DRIVE": "FulgoROM",
|
||||||
"BURN_DRIVE": "Burn Drive",
|
"BURN_DRIVE": "PiroROM",
|
||||||
"CHILL_DRIVE": "Chill Drive",
|
"CHILL_DRIVE": "CrioROM",
|
||||||
"DOUSE_DRIVE": "Douse Drive",
|
"DOUSE_DRIVE": "HidroROM",
|
||||||
|
|
||||||
"FIST_PLATE": "Tabla Fuerte",
|
"FIST_PLATE": "Tabla Fuerte",
|
||||||
"SKY_PLATE": "Tabla Cielo",
|
"SKY_PLATE": "Tabla Cielo",
|
||||||
|
@ -4853,6 +4853,8 @@ export class SelectModifierPhase extends BattlePhase {
|
|||||||
|
|
||||||
if (!this.rerollCount) {
|
if (!this.rerollCount) {
|
||||||
this.updateSeed();
|
this.updateSeed();
|
||||||
|
} else {
|
||||||
|
this.scene.reroll = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const party = this.scene.getParty();
|
const party = this.scene.getParty();
|
||||||
@ -4884,6 +4886,7 @@ export class SelectModifierPhase extends BattlePhase {
|
|||||||
this.scene.ui.playError();
|
this.scene.ui.playError();
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
|
this.scene.reroll = true;
|
||||||
this.scene.unshiftPhase(new SelectModifierPhase(this.scene, this.rerollCount + 1, typeOptions.map(o => o.type.tier)));
|
this.scene.unshiftPhase(new SelectModifierPhase(this.scene, this.rerollCount + 1, typeOptions.map(o => o.type.tier)));
|
||||||
this.scene.ui.clearText();
|
this.scene.ui.clearText();
|
||||||
this.scene.ui.setMode(Mode.MESSAGE).then(() => super.end());
|
this.scene.ui.setMode(Mode.MESSAGE).then(() => super.end());
|
||||||
|
@ -80,26 +80,30 @@ export interface Localizable {
|
|||||||
|
|
||||||
const alternativeFonts = {
|
const alternativeFonts = {
|
||||||
"ko": [
|
"ko": [
|
||||||
new FontFace("emerald", "url(./fonts/PokePT_Wansung.ttf)")
|
new FontFace("emerald", "url(./fonts/PokePT_Wansung.ttf)"),
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
function loadFont(language: string) {
|
function loadFont(language: string) {
|
||||||
const altFontLanguages = Object.keys(alternativeFonts);
|
|
||||||
if (!alternativeFonts[language]) {
|
if (!alternativeFonts[language]) {
|
||||||
language = language.split(/[-_/]/)[0];
|
language = language.split(/[-_/]/)[0];
|
||||||
}
|
}
|
||||||
if (alternativeFonts[language]) {
|
if (alternativeFonts[language]) {
|
||||||
alternativeFonts[language].forEach(f => {
|
alternativeFonts[language].forEach((fontFace: FontFace) => {
|
||||||
document.fonts.add(f);
|
document.fonts.add(fontFace);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const altFontLanguages = Object.keys(alternativeFonts);
|
||||||
altFontLanguages.splice(altFontLanguages.indexOf(language), 0);
|
altFontLanguages.splice(altFontLanguages.indexOf(language), 0);
|
||||||
}
|
}
|
||||||
altFontLanguages.forEach(f=> {
|
|
||||||
if (f && f.status === "loaded") {
|
(Object.values(alternativeFonts)).forEach(fontFaces => {
|
||||||
document.fonts.delete(f);
|
fontFaces.forEach(fontFace => {
|
||||||
|
if (fontFace && fontFace.status === "loaded") {
|
||||||
|
document.fonts.delete(fontFace);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function initI18n(): void {
|
export function initI18n(): void {
|
||||||
@ -179,6 +183,7 @@ export function initI18n(): void {
|
|||||||
// Module declared to make referencing keys in the localization files type-safe.
|
// Module declared to make referencing keys in the localization files type-safe.
|
||||||
declare module "i18next" {
|
declare module "i18next" {
|
||||||
interface CustomTypeOptions {
|
interface CustomTypeOptions {
|
||||||
|
defaultNS: "menu"; // Even if we don't use it, i18next requires a valid default namespace
|
||||||
resources: {
|
resources: {
|
||||||
menu: SimpleTranslationEntries;
|
menu: SimpleTranslationEntries;
|
||||||
menuUiHandler: SimpleTranslationEntries;
|
menuUiHandler: SimpleTranslationEntries;
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
interface ButtonKey {
|
export interface ButtonKey {
|
||||||
onDown: (opt: object) => void;
|
onDown: (opt: object) => void;
|
||||||
onUp: (opt: object) => void;
|
onUp: (opt: object) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
type ButtonMap = Map<string, ButtonKey>;
|
export type ButtonMap = Map<string, ButtonKey>;
|
||||||
|
|
||||||
export const keys = new Map();
|
export const keys = new Map();
|
||||||
export const keysDown = new Map();
|
export const keysDown = new Map();
|
||||||
|
@ -147,6 +147,7 @@ export default class ModifierSelectUiHandler extends AwaitableUiHandler {
|
|||||||
|
|
||||||
this.scene.showFieldOverlay(750);
|
this.scene.showFieldOverlay(750);
|
||||||
this.scene.updateAndShowText(750);
|
this.scene.updateAndShowText(750);
|
||||||
|
this.scene.updateMoneyText();
|
||||||
|
|
||||||
let i = 0;
|
let i = 0;
|
||||||
|
|
||||||
@ -382,7 +383,7 @@ export default class ModifierSelectUiHandler extends AwaitableUiHandler {
|
|||||||
this.eraseCursor();
|
this.eraseCursor();
|
||||||
|
|
||||||
this.scene.hideFieldOverlay(250);
|
this.scene.hideFieldOverlay(250);
|
||||||
this.scene.hideLuckText(750);
|
this.scene.hideLuckText(250);
|
||||||
|
|
||||||
const options = this.options.concat(this.shopOptionsRows.flat());
|
const options = this.options.concat(this.shopOptionsRows.flat());
|
||||||
this.options.splice(0, this.options.length);
|
this.options.splice(0, this.options.length);
|
||||||
|
Loading…
Reference in New Issue
Block a user