Add clear score bonus
This commit is contained in:
parent
f13e1ffa47
commit
68b1aef3ab
|
@ -17,7 +17,7 @@ import { TextStyle, addTextObject } from './ui/text';
|
||||||
import { Moves } from "./data/enums/moves";
|
import { Moves } from "./data/enums/moves";
|
||||||
import { } from "./data/move";
|
import { } from "./data/move";
|
||||||
import { initMoves } 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 AbilityBar from './ui/ability-bar';
|
||||||
import { BlockItemTheftAbAttr, DoubleBattleChanceAbAttr, applyAbAttrs, initAbilities } from './data/ability';
|
import { BlockItemTheftAbAttr, DoubleBattleChanceAbAttr, applyAbAttrs, initAbilities } from './data/ability';
|
||||||
import Battle, { BattleType, FixedBattleConfig, fixedBattles } from './battle';
|
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 {
|
getEnemyModifierChance(isBoss: boolean): integer {
|
||||||
switch (this.modeId) {
|
switch (this.modeId) {
|
||||||
case GameModes.CLASSIC:
|
case GameModes.CLASSIC:
|
||||||
|
|
|
@ -2962,6 +2962,7 @@ export class VictoryPhase extends PokemonPhase {
|
||||||
this.scene.pushPhase(new NewBattlePhase(this.scene));
|
this.scene.pushPhase(new NewBattlePhase(this.scene));
|
||||||
} else {
|
} else {
|
||||||
this.scene.currentBattle.battleType = BattleType.CLEAR;
|
this.scene.currentBattle.battleType = BattleType.CLEAR;
|
||||||
|
this.scene.score += this.scene.gameMode.getClearScoreBonus();
|
||||||
this.scene.pushPhase(new GameOverPhase(this.scene, true));
|
this.scene.pushPhase(new GameOverPhase(this.scene, true));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue