Fix formatting

== my bebanished
This commit is contained in:
RedstonewolfX 2024-08-26 09:48:53 -04:00
parent e4c62e55cf
commit ae33a46945
2 changed files with 3 additions and 3 deletions

View File

@ -2222,8 +2222,8 @@ export class ModifierTypeOption {
} }
export function getPartyLuckValue(party: Pokemon[]): integer { export function getPartyLuckValue(party: Pokemon[]): integer {
if (party[0].scene.gameMode.modeId == GameModes.DAILY) { if (party[0].scene.gameMode.modeId === GameModes.DAILY) {
return 0 return 0;
} }
const luck = Phaser.Math.Clamp(party.map(p => p.isFainted() ? 0 : p.getLuck()) const luck = Phaser.Math.Clamp(party.map(p => p.isFainted() ? 0 : p.getLuck())
.reduce((total: integer, value: integer) => total += value, 0), 0, 14); .reduce((total: integer, value: integer) => total += value, 0), 0, 14);

View File

@ -201,7 +201,7 @@ export default class ModifierSelectUiHandler extends AwaitableUiHandler {
/* Multiplies the appearance duration by the speed parameter so that it is always constant, and avoids "flashbangs" at game speed x5 */ /* Multiplies the appearance duration by the speed parameter so that it is always constant, and avoids "flashbangs" at game speed x5 */
this.scene.showShopOverlay(750 * this.scene.gameSpeed); this.scene.showShopOverlay(750 * this.scene.gameSpeed);
this.scene.updateAndShowText(750, this.scene.gameMode.modeId == GameModes.DAILY); this.scene.updateAndShowText(750, this.scene.gameMode.modeId === GameModes.DAILY);
this.scene.updateBiomeWaveText(); this.scene.updateBiomeWaveText();
this.scene.updateMoneyText(); this.scene.updateMoneyText();