weather_override

This commit is contained in:
Hyun Ahn 2023-11-24 13:15:06 +09:00
parent 06943ac5dc
commit 04db56e86b
1 changed files with 7 additions and 1 deletions

View File

@ -35,6 +35,8 @@ import { HealAchv, LevelAchv, MoneyAchv, achvs } from "./system/achv";
import { DexEntry } from "./system/game-data";
import { pokemonPrevolutions } from "./data/pokemon-evolutions";
const WEATHER_OVERRIDE = WeatherType.NONE
export class CheckLoadPhase extends BattlePhase {
private loaded: boolean;
@ -318,7 +320,11 @@ export class EncounterPhase extends BattlePhase {
this.scene.updateModifiers(true);
}
this.scene.arena.trySetWeather(getRandomWeatherType(this.scene.arena.biomeType), false);
if(WEATHER_OVERRIDE){
this.scene.arena.trySetWeather(WEATHER_OVERRIDE, false);
} else {
this.scene.arena.trySetWeather(getRandomWeatherType(this.scene.arena.biomeType), false);
}
const enemyField = this.scene.getEnemyField();
this.scene.tweens.add({