mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 08:22:16 +02:00
Merge branch 'beta' into Elite4Changes
This commit is contained in:
commit
e2563c70d1
@ -7665,20 +7665,6 @@ export class AverageStatsAttr extends MoveEffectAttr {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class DiscourageFrequentUseAttr extends MoveAttr {
|
|
||||||
getUserBenefitScore(user: Pokemon, target: Pokemon, move: Move): number {
|
|
||||||
const lastMoves = user.getLastXMoves(4);
|
|
||||||
console.log(lastMoves);
|
|
||||||
for (let m = 0; m < lastMoves.length; m++) {
|
|
||||||
if (lastMoves[m].move === move.id) {
|
|
||||||
return (4 - (m + 1)) * -10;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class MoneyAttr extends MoveEffectAttr {
|
export class MoneyAttr extends MoveEffectAttr {
|
||||||
constructor() {
|
constructor() {
|
||||||
super(true, {firstHitOnly: true });
|
super(true, {firstHitOnly: true });
|
||||||
@ -10517,8 +10503,7 @@ export function initMoves() {
|
|||||||
} else {
|
} else {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
})
|
}),
|
||||||
.attr(DiscourageFrequentUseAttr),
|
|
||||||
|
|
||||||
new AttackMove(Moves.SNIPE_SHOT, PokemonType.WATER, MoveCategory.SPECIAL, 80, 100, 15, -1, 0, 8)
|
new AttackMove(Moves.SNIPE_SHOT, PokemonType.WATER, MoveCategory.SPECIAL, 80, 100, 15, -1, 0, 8)
|
||||||
.attr(HighCritAttr)
|
.attr(HighCritAttr)
|
||||||
|
@ -557,11 +557,11 @@ export default class BattleInfo extends Phaser.GameObjects.Container {
|
|||||||
this.ownedIcon,
|
this.ownedIcon,
|
||||||
this.championRibbon,
|
this.championRibbon,
|
||||||
this.statusIndicator,
|
this.statusIndicator,
|
||||||
this.levelContainer,
|
|
||||||
this.statValuesContainer,
|
this.statValuesContainer,
|
||||||
].map(e => (e.x += 48 * (boss ? -1 : 1)));
|
].map(e => (e.x += 48 * (boss ? -1 : 1)));
|
||||||
this.hpBar.x += 38 * (boss ? -1 : 1);
|
this.hpBar.x += 38 * (boss ? -1 : 1);
|
||||||
this.hpBar.y += 2 * (this.boss ? -1 : 1);
|
this.hpBar.y += 2 * (this.boss ? -1 : 1);
|
||||||
|
this.levelContainer.x += 2 * (boss ? -1 : 1);
|
||||||
this.hpBar.setTexture(`overlay_hp${boss ? "_boss" : ""}`);
|
this.hpBar.setTexture(`overlay_hp${boss ? "_boss" : ""}`);
|
||||||
this.box.setTexture(this.getTextureName());
|
this.box.setTexture(this.getTextureName());
|
||||||
this.statsBox.setTexture(`${this.getTextureName()}_stats`);
|
this.statsBox.setTexture(`${this.getTextureName()}_stats`);
|
||||||
|
Loading…
Reference in New Issue
Block a user