Merge branch 'beta' into natural-gift-implementation
BIN
public/images/events/yearofthesnakeevent-de.png
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
public/images/events/yearofthesnakeevent-en.png
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
public/images/events/yearofthesnakeevent-es-ES.png
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
public/images/events/yearofthesnakeevent-fr.png
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
public/images/events/yearofthesnakeevent-it.png
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
public/images/events/yearofthesnakeevent-ja.png
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
public/images/events/yearofthesnakeevent-ko.png
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
public/images/events/yearofthesnakeevent-pt-BR.png
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
public/images/events/yearofthesnakeevent-zh-CN.png
Normal file
After Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 37 KiB |
@ -1 +1 @@
|
|||||||
Subproject commit e07ab625f2080afe36b61fad291b0ec5eff4000c
|
Subproject commit 5ef993b95fa8248adc0fb7d9489baccf546bf8e3
|
@ -246,9 +246,9 @@ export class LoadingScene extends SceneBase {
|
|||||||
}
|
}
|
||||||
const availableLangs = [ "en", "de", "it", "fr", "ja", "ko", "es-ES", "pt-BR", "zh-CN" ];
|
const availableLangs = [ "en", "de", "it", "fr", "ja", "ko", "es-ES", "pt-BR", "zh-CN" ];
|
||||||
if (lang && availableLangs.includes(lang)) {
|
if (lang && availableLangs.includes(lang)) {
|
||||||
this.loadImage("winter_holidays2024-event-" + lang, "events");
|
this.loadImage("yearofthesnakeevent-" + lang, "events");
|
||||||
} else {
|
} else {
|
||||||
this.loadImage("winter_holidays2024-event-en", "events");
|
this.loadImage("yearofthesnakeevent-en", "events");
|
||||||
}
|
}
|
||||||
|
|
||||||
this.loadAtlas("statuses", "");
|
this.loadAtlas("statuses", "");
|
||||||
|
@ -3205,12 +3205,12 @@ export abstract class HeldItemTransferModifier extends PokemonHeldItemModifier {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const randItemIndex = pokemon.randSeedInt(tierItemModifiers.length);
|
const randItemIndex = pokemon.randSeedInt(itemModifiers.length);
|
||||||
const randItem = tierItemModifiers[randItemIndex];
|
const randItem = itemModifiers[randItemIndex];
|
||||||
heldItemTransferPromises.push(globalScene.tryTransferHeldItemModifier(randItem, pokemon, false).then(success => {
|
heldItemTransferPromises.push(globalScene.tryTransferHeldItemModifier(randItem, pokemon, false).then(success => {
|
||||||
if (success) {
|
if (success) {
|
||||||
transferredModifierTypes.push(randItem.type);
|
transferredModifierTypes.push(randItem.type);
|
||||||
tierItemModifiers.splice(randItemIndex, 1);
|
itemModifiers.splice(randItemIndex, 1);
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ export class TrainerVictoryPhase extends BattlePhase {
|
|||||||
globalScene.unshiftPhase(new ModifierRewardPhase(modifierRewardFunc));
|
globalScene.unshiftPhase(new ModifierRewardPhase(modifierRewardFunc));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (globalScene.eventManager.getShinyMultiplier() > 1) { //If a shiny boosting event is active
|
if (globalScene.eventManager.isEventActive()) {
|
||||||
for (const rewardFunc of globalScene.currentBattle.trainer?.config.eventRewardFuncs!) {
|
for (const rewardFunc of globalScene.currentBattle.trainer?.config.eventRewardFuncs!) {
|
||||||
globalScene.unshiftPhase(new ModifierRewardPhase(rewardFunc));
|
globalScene.unshiftPhase(new ModifierRewardPhase(rewardFunc));
|
||||||
}
|
}
|
||||||
|
@ -111,7 +111,7 @@ export default class MenuUiHandler extends MessageUiHandler {
|
|||||||
render() {
|
render() {
|
||||||
const ui = this.getUi();
|
const ui = this.getUi();
|
||||||
this.excludedMenus = () => [
|
this.excludedMenus = () => [
|
||||||
{ condition: globalScene.getCurrentPhase() instanceof SelectModifierPhase, options: [ MenuOptions.EGG_GACHA, MenuOptions.EGG_LIST ]},
|
{ condition: globalScene.getCurrentPhase() instanceof SelectModifierPhase, options: [ MenuOptions.EGG_GACHA ]},
|
||||||
{ condition: bypassLogin, options: [ MenuOptions.LOG_OUT ]}
|
{ condition: bypassLogin, options: [ MenuOptions.LOG_OUT ]}
|
||||||
];
|
];
|
||||||
|
|
||||||
|