mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 07:22:19 +02:00
Added getWeatherType for future compatibility checks
This commit is contained in:
parent
d1bf3bab63
commit
f931da7812
@ -331,6 +331,10 @@ export class Arena {
|
||||
return this.terrain?.terrainType || TerrainType.NONE;
|
||||
}
|
||||
|
||||
getWeatherType() : WeatherType {
|
||||
return this.weather?.weatherType || WeatherType.NONE;
|
||||
}
|
||||
|
||||
getAttackTypeMultiplier(attackType: Type, grounded: boolean): number {
|
||||
let weatherMultiplier = 1;
|
||||
if (this.weather && !this.weather.isEffectSuppressed(this.scene))
|
||||
@ -727,4 +731,4 @@ export class ArenaBase extends Phaser.GameObjects.Container {
|
||||
}, (this.scene as BattleScene).currentBattle?.waveIndex || 0, (this.scene as BattleScene).waveSeed);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user