Compare commits
5 Commits
f549c8f804
...
78000d8f0d
Author | SHA1 | Date | |
---|---|---|---|
|
78000d8f0d | ||
|
e4f236c73a | ||
|
1e8f06da03 | ||
|
028deedd59 | ||
|
5d4b805c13 |
Before Width: | Height: | Size: 237 B After Width: | Height: | Size: 225 B |
BIN
public/images/ui/champion_ribbon_bronze.png
Normal file
After Width: | Height: | Size: 200 B |
BIN
public/images/ui/champion_ribbon_diamond.png
Normal file
After Width: | Height: | Size: 225 B |
BIN
public/images/ui/champion_ribbon_silver.png
Normal file
After Width: | Height: | Size: 222 B |
Before Width: | Height: | Size: 237 B After Width: | Height: | Size: 225 B |
BIN
public/images/ui/legacy/champion_ribbon_bronze.png
Normal file
After Width: | Height: | Size: 200 B |
BIN
public/images/ui/legacy/champion_ribbon_diamond.png
Normal file
After Width: | Height: | Size: 225 B |
BIN
public/images/ui/legacy/champion_ribbon_silver.png
Normal file
After Width: | Height: | Size: 222 B |
@ -12,8 +12,8 @@ import { CustomPokemonData } from "#data/pokemon-data";
|
|||||||
import type { PokemonSpecies } from "#data/pokemon-species";
|
import type { PokemonSpecies } from "#data/pokemon-species";
|
||||||
import { getStatusEffectCatchRateMultiplier } from "#data/status-effect";
|
import { getStatusEffectCatchRateMultiplier } from "#data/status-effect";
|
||||||
import type { AbilityId } from "#enums/ability-id";
|
import type { AbilityId } from "#enums/ability-id";
|
||||||
import type { HeldItemId } from "#enums/held-item-id";
|
|
||||||
import { ChallengeType } from "#enums/challenge-type";
|
import { ChallengeType } from "#enums/challenge-type";
|
||||||
|
import type { HeldItemId } from "#enums/held-item-id";
|
||||||
import { PlayerGender } from "#enums/player-gender";
|
import { PlayerGender } from "#enums/player-gender";
|
||||||
import type { PokeballType } from "#enums/pokeball";
|
import type { PokeballType } from "#enums/pokeball";
|
||||||
import type { PokemonType } from "#enums/pokemon-type";
|
import type { PokemonType } from "#enums/pokemon-type";
|
||||||
@ -643,22 +643,17 @@ export async function catchPokemon(
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
const addToParty = (slotIndex?: number) => {
|
const addToParty = (slotIndex?: number) => {
|
||||||
pokemon.addToParty(pokeballType, slotIndex);
|
const newPokemon = pokemon.addToParty(pokeballType, slotIndex);
|
||||||
if (globalScene.getPlayerParty().filter(p => p.isShiny()).length === 6) {
|
if (globalScene.getPlayerParty().filter(p => p.isShiny()).length === 6) {
|
||||||
globalScene.validateAchv(achvs.SHINY_PARTY);
|
globalScene.validateAchv(achvs.SHINY_PARTY);
|
||||||
}
|
}
|
||||||
};
|
globalScene.updateItems(true);
|
||||||
Promise.all([pokemon.hideInfo(), globalScene.gameData.setPokemonCaught(pokemon)]).then(() => {
|
removePokemon();
|
||||||
const addStatus = new BooleanHolder(true);
|
if (newPokemon) {
|
||||||
applyChallenges(ChallengeType.POKEMON_ADD_TO_PARTY, pokemon, addStatus);
|
newPokemon.loadAssets().then(end);
|
||||||
if (!addStatus.value) {
|
} else {
|
||||||
removePokemon();
|
end();
|
||||||
if (newPokemon) {
|
}
|
||||||
newPokemon.loadAssets().then(end);
|
|
||||||
} else {
|
|
||||||
end();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
Promise.all([pokemon.hideInfo(), globalScene.gameData.setPokemonCaught(pokemon)]).then(() => {
|
Promise.all([pokemon.hideInfo(), globalScene.gameData.setPokemonCaught(pokemon)]).then(() => {
|
||||||
const addStatus = new BooleanHolder(true);
|
const addStatus = new BooleanHolder(true);
|
||||||
|
@ -187,7 +187,7 @@ export class PartyUiHandler extends MessageUiHandler {
|
|||||||
private lastCursor = 0;
|
private lastCursor = 0;
|
||||||
private lastLeftPokemonCursor = 0;
|
private lastLeftPokemonCursor = 0;
|
||||||
private lastRightPokemonCursor = 0;
|
private lastRightPokemonCursor = 0;
|
||||||
private selectCallback: PartySelectCallback | PokemonItemTransferSelectFilter | null;
|
private selectCallback: PartySelectCallback | PartyItemTransferSelectCallback | null;
|
||||||
private selectFilter: PokemonSelectFilter | PokemonItemTransferSelectFilter;
|
private selectFilter: PokemonSelectFilter | PokemonItemTransferSelectFilter;
|
||||||
private moveSelectFilter: PokemonMoveSelectFilter;
|
private moveSelectFilter: PokemonMoveSelectFilter;
|
||||||
private tmMoveId: MoveId;
|
private tmMoveId: MoveId;
|
||||||
|
@ -1053,7 +1053,7 @@ export class StarterSelectUiHandler extends MessageUiHandler {
|
|||||||
this.moveInfoOverlay = new MoveInfoOverlay({
|
this.moveInfoOverlay = new MoveInfoOverlay({
|
||||||
top: true,
|
top: true,
|
||||||
x: 1,
|
x: 1,
|
||||||
y: globalScene.scaledCanvas.height / 6 - MoveInfoOverlay.getHeight() - 29,
|
y: globalScene.scaledCanvas.height - MoveInfoOverlay.getHeight() - 29,
|
||||||
});
|
});
|
||||||
|
|
||||||
this.starterSelectContainer.add([
|
this.starterSelectContainer.add([
|
||||||
|
@ -8,7 +8,7 @@ import type { MoveId } from "#enums/move-id";
|
|||||||
import type { MoveSourceType } from "#enums/move-source-type";
|
import type { MoveSourceType } from "#enums/move-source-type";
|
||||||
import type { SpeciesId } from "#enums/species-id";
|
import type { SpeciesId } from "#enums/species-id";
|
||||||
import type { EnemyPokemon, PlayerPokemon, Pokemon } from "#field/pokemon";
|
import type { EnemyPokemon, PlayerPokemon, Pokemon } from "#field/pokemon";
|
||||||
import type { ModifierTypeOption } from "#modifiers/modifier-type";
|
import type { RewardOption } from "#items/reward";
|
||||||
import type { DexAttrProps } from "#system/game-data";
|
import type { DexAttrProps } from "#system/game-data";
|
||||||
import { BooleanHolder, type NumberHolder } from "./common";
|
import { BooleanHolder, type NumberHolder } from "./common";
|
||||||
import { getPokemonSpecies } from "./pokemon-utils";
|
import { getPokemonSpecies } from "./pokemon-utils";
|
||||||
@ -229,7 +229,7 @@ export function applyChallenges(
|
|||||||
*/
|
*/
|
||||||
export function applyChallenges(
|
export function applyChallenges(
|
||||||
challengeType: ChallengeType.SHOP_ITEM,
|
challengeType: ChallengeType.SHOP_ITEM,
|
||||||
shopItem: ModifierTypeOption | null,
|
shopItem: RewardOption | null,
|
||||||
status: BooleanHolder,
|
status: BooleanHolder,
|
||||||
): boolean;
|
): boolean;
|
||||||
|
|
||||||
@ -242,7 +242,7 @@ export function applyChallenges(
|
|||||||
*/
|
*/
|
||||||
export function applyChallenges(
|
export function applyChallenges(
|
||||||
challengeType: ChallengeType.WAVE_REWARD,
|
challengeType: ChallengeType.WAVE_REWARD,
|
||||||
reward: ModifierTypeOption | null,
|
reward: RewardOption | null,
|
||||||
status: BooleanHolder,
|
status: BooleanHolder,
|
||||||
): boolean;
|
): boolean;
|
||||||
|
|
||||||
|