Compare commits

..

5 Commits

Author SHA1 Message Date
Bertie690
78000d8f0d
Merge 6a2c92dad7 into e4f236c73a 2025-08-10 21:31:48 -04:00
Wlowscha
e4f236c73a
Fixed more conflicts from merge 2025-08-10 18:14:55 +02:00
Wlowscha
1e8f06da03
Merge branch 'beta' into modifier-rework 2025-08-10 18:02:07 +02:00
Sirz Benjie
028deedd59
[Sprite] Add new Starter Select Ribbon icons (#6247)
Add new ribbon icons

Co-authored-by: damocleas <damocleas25@gmail.com>
2025-08-10 10:44:56 -04:00
Wlowscha
5d4b805c13
[UI/UX][Bug] Removed extra division by 6 in starter-select-ui-handler.ts (#6245)
Removed division by 6 in starter-select-ui-handler.ts
2025-08-09 15:27:47 -05:00
12 changed files with 14 additions and 19 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 237 B

After

Width:  |  Height:  |  Size: 225 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 237 B

After

Width:  |  Height:  |  Size: 225 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 B

View File

@ -12,8 +12,8 @@ import { CustomPokemonData } from "#data/pokemon-data";
import type { PokemonSpecies } from "#data/pokemon-species";
import { getStatusEffectCatchRateMultiplier } from "#data/status-effect";
import type { AbilityId } from "#enums/ability-id";
import type { HeldItemId } from "#enums/held-item-id";
import { ChallengeType } from "#enums/challenge-type";
import type { HeldItemId } from "#enums/held-item-id";
import { PlayerGender } from "#enums/player-gender";
import type { PokeballType } from "#enums/pokeball";
import type { PokemonType } from "#enums/pokemon-type";
@ -643,22 +643,17 @@ export async function catchPokemon(
}
};
const addToParty = (slotIndex?: number) => {
pokemon.addToParty(pokeballType, slotIndex);
const newPokemon = pokemon.addToParty(pokeballType, slotIndex);
if (globalScene.getPlayerParty().filter(p => p.isShiny()).length === 6) {
globalScene.validateAchv(achvs.SHINY_PARTY);
}
};
Promise.all([pokemon.hideInfo(), globalScene.gameData.setPokemonCaught(pokemon)]).then(() => {
const addStatus = new BooleanHolder(true);
applyChallenges(ChallengeType.POKEMON_ADD_TO_PARTY, pokemon, addStatus);
if (!addStatus.value) {
removePokemon();
if (newPokemon) {
newPokemon.loadAssets().then(end);
} else {
end();
}
});
globalScene.updateItems(true);
removePokemon();
if (newPokemon) {
newPokemon.loadAssets().then(end);
} else {
end();
}
};
Promise.all([pokemon.hideInfo(), globalScene.gameData.setPokemonCaught(pokemon)]).then(() => {
const addStatus = new BooleanHolder(true);

View File

@ -187,7 +187,7 @@ export class PartyUiHandler extends MessageUiHandler {
private lastCursor = 0;
private lastLeftPokemonCursor = 0;
private lastRightPokemonCursor = 0;
private selectCallback: PartySelectCallback | PokemonItemTransferSelectFilter | null;
private selectCallback: PartySelectCallback | PartyItemTransferSelectCallback | null;
private selectFilter: PokemonSelectFilter | PokemonItemTransferSelectFilter;
private moveSelectFilter: PokemonMoveSelectFilter;
private tmMoveId: MoveId;

View File

@ -1053,7 +1053,7 @@ export class StarterSelectUiHandler extends MessageUiHandler {
this.moveInfoOverlay = new MoveInfoOverlay({
top: true,
x: 1,
y: globalScene.scaledCanvas.height / 6 - MoveInfoOverlay.getHeight() - 29,
y: globalScene.scaledCanvas.height - MoveInfoOverlay.getHeight() - 29,
});
this.starterSelectContainer.add([

View File

@ -8,7 +8,7 @@ import type { MoveId } from "#enums/move-id";
import type { MoveSourceType } from "#enums/move-source-type";
import type { SpeciesId } from "#enums/species-id";
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 { BooleanHolder, type NumberHolder } from "./common";
import { getPokemonSpecies } from "./pokemon-utils";
@ -229,7 +229,7 @@ export function applyChallenges(
*/
export function applyChallenges(
challengeType: ChallengeType.SHOP_ITEM,
shopItem: ModifierTypeOption | null,
shopItem: RewardOption | null,
status: BooleanHolder,
): boolean;
@ -242,7 +242,7 @@ export function applyChallenges(
*/
export function applyChallenges(
challengeType: ChallengeType.WAVE_REWARD,
reward: ModifierTypeOption | null,
reward: RewardOption | null,
status: BooleanHolder,
): boolean;