parent
e4c62e55cf
commit
ae33a46945
|
@ -2222,8 +2222,8 @@ export class ModifierTypeOption {
|
|||
}
|
||||
|
||||
export function getPartyLuckValue(party: Pokemon[]): integer {
|
||||
if (party[0].scene.gameMode.modeId == GameModes.DAILY) {
|
||||
return 0
|
||||
if (party[0].scene.gameMode.modeId === GameModes.DAILY) {
|
||||
return 0;
|
||||
}
|
||||
const luck = Phaser.Math.Clamp(party.map(p => p.isFainted() ? 0 : p.getLuck())
|
||||
.reduce((total: integer, value: integer) => total += value, 0), 0, 14);
|
||||
|
|
|
@ -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 */
|
||||
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.updateMoneyText();
|
||||
|
||||
|
|
Loading…
Reference in New Issue