Add clear score bonus
parent
f13e1ffa47
commit
68b1aef3ab
|
@ -17,7 +17,7 @@ import { TextStyle, addTextObject } from './ui/text';
|
|||
import { Moves } from "./data/enums/moves";
|
||||
import { } from "./data/move";
|
||||
import { initMoves } from './data/move';
|
||||
import { ModifierPoolType, PokemonBaseStatBoosterModifierType, getDefaultModifierTypeForTier, getEnemyModifierTypesForWave } from './modifier/modifier-type';
|
||||
import { ModifierPoolType, getDefaultModifierTypeForTier, getEnemyModifierTypesForWave } from './modifier/modifier-type';
|
||||
import AbilityBar from './ui/ability-bar';
|
||||
import { BlockItemTheftAbAttr, DoubleBattleChanceAbAttr, applyAbAttrs, initAbilities } from './data/ability';
|
||||
import Battle, { BattleType, FixedBattleConfig, fixedBattles } from './battle';
|
||||
|
|
|
@ -138,6 +138,15 @@ export class GameMode implements GameModeConfig {
|
|||
}
|
||||
}
|
||||
|
||||
getClearScoreBonus(): integer {
|
||||
switch (this.modeId) {
|
||||
case GameModes.CLASSIC:
|
||||
return 5000;
|
||||
case GameModes.DAILY:
|
||||
return 2500;
|
||||
}
|
||||
}
|
||||
|
||||
getEnemyModifierChance(isBoss: boolean): integer {
|
||||
switch (this.modeId) {
|
||||
case GameModes.CLASSIC:
|
||||
|
|
|
@ -2962,6 +2962,7 @@ export class VictoryPhase extends PokemonPhase {
|
|||
this.scene.pushPhase(new NewBattlePhase(this.scene));
|
||||
} else {
|
||||
this.scene.currentBattle.battleType = BattleType.CLEAR;
|
||||
this.scene.score += this.scene.gameMode.getClearScoreBonus();
|
||||
this.scene.pushPhase(new GameOverPhase(this.scene, true));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue