mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 07:22:19 +02:00
Compare commits
4 Commits
18b51484f3
...
d708efc185
Author | SHA1 | Date | |
---|---|---|---|
|
d708efc185 | ||
|
1cbac829a0 | ||
|
4b70fab608 | ||
|
1ff2701964 |
@ -306,13 +306,6 @@ export class BlockRecoilDamageAttr extends AbAttr {
|
|||||||
): void {
|
): void {
|
||||||
cancelled.value = true;
|
cancelled.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
getTriggerMessage(pokemon: Pokemon, abilityName: string, ..._args: any[]) {
|
|
||||||
return i18next.t("abilityTriggers:blockRecoilDamage", {
|
|
||||||
pokemonName: getPokemonNameWithAffix(pokemon),
|
|
||||||
abilityName: abilityName,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -751,7 +751,7 @@ export async function catchPokemon(
|
|||||||
UiMode.POKEDEX_PAGE,
|
UiMode.POKEDEX_PAGE,
|
||||||
pokemon.species,
|
pokemon.species,
|
||||||
pokemon.formIndex,
|
pokemon.formIndex,
|
||||||
attributes,
|
[attributes],
|
||||||
null,
|
null,
|
||||||
() => {
|
() => {
|
||||||
globalScene.ui.setMode(UiMode.MESSAGE).then(() => {
|
globalScene.ui.setMode(UiMode.MESSAGE).then(() => {
|
||||||
|
@ -2500,14 +2500,14 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
}
|
}
|
||||||
atkScore *= 1.25; //give more value for the pokemon's typing
|
atkScore *= 1.25; //give more value for the pokemon's typing
|
||||||
const moveset = this.moveset;
|
const moveset = this.moveset;
|
||||||
let moveAtkScoreLenght = 0;
|
let moveAtkScoreLength = 0;
|
||||||
for (const move of moveset) {
|
for (const move of moveset) {
|
||||||
if (move.getMove().category === MoveCategory.SPECIAL || move.getMove().category === MoveCategory.PHYSICAL) {
|
if (move.getMove().category === MoveCategory.SPECIAL || move.getMove().category === MoveCategory.PHYSICAL) {
|
||||||
atkScore += opponent.getAttackTypeEffectiveness(move.getMove().type, this, false, true, undefined, true);
|
atkScore += opponent.getAttackTypeEffectiveness(move.getMove().type, this, false, true, undefined, true);
|
||||||
moveAtkScoreLenght++;
|
moveAtkScoreLength++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
atkScore = atkScore / (moveAtkScoreLenght + 1); //calculate the median for the attack score
|
atkScore = atkScore / (moveAtkScoreLength + 1); //calculate the median for the attack score
|
||||||
/**
|
/**
|
||||||
* Based on this Pokemon's HP ratio compared to that of the opponent.
|
* Based on this Pokemon's HP ratio compared to that of the opponent.
|
||||||
* This ratio is multiplied by 1.5 if this Pokemon outspeeds the opponent;
|
* This ratio is multiplied by 1.5 if this Pokemon outspeeds the opponent;
|
||||||
|
Loading…
Reference in New Issue
Block a user