Skip to content

Commit

Permalink
Merge branch 'beta' into stats_refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
flx-sta authored Aug 31, 2024
2 parents 4c969eb + 5e2c05a commit 7d5d3fa
Show file tree
Hide file tree
Showing 46 changed files with 77,325 additions and 2,318 deletions.
2,186 changes: 2,186 additions & 0 deletions public/battle-anims/baddy-bad.json

Large diffs are not rendered by default.

2,109 changes: 2,109 additions & 0 deletions public/battle-anims/blazing-torque.json

Large diffs are not rendered by default.

3,322 changes: 3,322 additions & 0 deletions public/battle-anims/bouncy-bubble.json

Large diffs are not rendered by default.

1,419 changes: 1,419 additions & 0 deletions public/battle-anims/buzzy-buzz.json

Large diffs are not rendered by default.

3,667 changes: 3,667 additions & 0 deletions public/battle-anims/combat-torque.json

Large diffs are not rendered by default.

1,665 changes: 1,665 additions & 0 deletions public/battle-anims/floaty-fall.json

Large diffs are not rendered by default.

3,755 changes: 3,755 additions & 0 deletions public/battle-anims/freezy-frost.json

Large diffs are not rendered by default.

7,757 changes: 7,757 additions & 0 deletions public/battle-anims/glitzy-glow.json

Large diffs are not rendered by default.

1,245 changes: 1,245 additions & 0 deletions public/battle-anims/ivy-cudgel.json

Large diffs are not rendered by default.

1,260 changes: 1,260 additions & 0 deletions public/battle-anims/magical-torque.json

Large diffs are not rendered by default.

3,846 changes: 3,846 additions & 0 deletions public/battle-anims/mortal-spin.json

Large diffs are not rendered by default.

1,129 changes: 1,129 additions & 0 deletions public/battle-anims/noxious-torque.json

Large diffs are not rendered by default.

6,994 changes: 6,994 additions & 0 deletions public/battle-anims/pika-papow.json

Large diffs are not rendered by default.

1,923 changes: 1,923 additions & 0 deletions public/battle-anims/psyblade.json

Large diffs are not rendered by default.

4,895 changes: 4,895 additions & 0 deletions public/battle-anims/sappy-seed.json

Large diffs are not rendered by default.

2,715 changes: 2,715 additions & 0 deletions public/battle-anims/sizzly-slide.json

Large diffs are not rendered by default.

2,236 changes: 2,236 additions & 0 deletions public/battle-anims/sparkly-swirl.json

Large diffs are not rendered by default.

2,458 changes: 2,458 additions & 0 deletions public/battle-anims/splishy-splash.json

Large diffs are not rendered by default.

1,800 changes: 1,800 additions & 0 deletions public/battle-anims/syrup-bomb.json

Large diffs are not rendered by default.

886 changes: 886 additions & 0 deletions public/battle-anims/veevee-volley.json

Large diffs are not rendered by default.

14,194 changes: 14,194 additions & 0 deletions public/battle-anims/wicked-torque.json

Large diffs are not rendered by default.

3,133 changes: 3,133 additions & 0 deletions public/battle-anims/zippy-zap.json

Large diffs are not rendered by default.

Binary file added public/images/items/inverse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/trainer/courtney.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 7 additions & 11 deletions src/data/ability.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4486,7 +4486,7 @@ async function applyAbAttrsInternal<TAttr extends AbAttr>(
applyFunc: AbAttrApplyFunc<TAttr>,
args: any[],
showAbilityInstant: boolean = false,
quiet: boolean = false,
simulated: boolean = false,
messages: string[] = [],
) {
for (const passive of [false, true]) {
Expand All @@ -4508,33 +4508,29 @@ async function applyAbAttrsInternal<TAttr extends AbAttr>(
if (result instanceof Promise) {
result = await result;
}

if (result) {
if (pokemon.summonData && !pokemon.summonData.abilitiesApplied.includes(ability.id)) {
pokemon.summonData.abilitiesApplied.push(ability.id);
}
if (pokemon.battleData && !quiet && !pokemon.battleData.abilitiesApplied.includes(ability.id)) {
if (pokemon.battleData && !simulated && !pokemon.battleData.abilitiesApplied.includes(ability.id)) {
pokemon.battleData.abilitiesApplied.push(ability.id);
}

if (attr.showAbility && !quiet) {
if (attr.showAbility && !simulated) {
if (showAbilityInstant) {
pokemon.scene.abilityBar.showAbility(pokemon, passive);
} else {
queueShowAbility(pokemon, passive);
}
}

if (!quiet) {
const message = attr.getTriggerMessage(pokemon, ability.name, args);
if (message) {
const message = attr.getTriggerMessage(pokemon, ability.name, args);
if (message) {
if (!simulated) {
pokemon.scene.queueMessage(message);
messages.push(message);
}
}
messages.push(message!);
}
}

pokemon.scene.clearPhaseQueueSplice();
}
}
Expand Down
6 changes: 6 additions & 0 deletions src/data/biomes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7663,6 +7663,12 @@ export function initBiomes() {
biomeDepths[Biome.TOWN] = [ 0, 1 ];

const traverseBiome = (biome: Biome, depth: integer) => {
if (biome === Biome.END) {
const biomeList = Object.keys(Biome).filter(key => !isNaN(Number(key)));
biomeList.pop(); // Removes Biome.END from the list
const randIndex = Utils.randInt(biomeList.length, 2); // Will never be Biome.TOWN or Biome.PLAINS
biome = Biome[biomeList[randIndex]];
}
const linkedBiomes: (Biome | [ Biome, integer ])[] = Array.isArray(biomeLinks[biome])
? biomeLinks[biome] as (Biome | [ Biome, integer ])[]
: [ biomeLinks[biome] as Biome ];
Expand Down
Loading

0 comments on commit 7d5d3fa

Please sign in to comment.