mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 15:03:24 +02:00
Added TIME_OF_DAY_OVERRIDE
to replace tint override
This commit is contained in:
parent
aca9409f48
commit
e381be7dc9
@ -543,6 +543,10 @@ export class Arena {
|
|||||||
return TimeOfDay.NIGHT;
|
return TimeOfDay.NIGHT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Overrides.TIME_OF_DAY_OVERRIDE != null) {
|
||||||
|
return Overrides.TIME_OF_DAY_OVERRIDE;
|
||||||
|
}
|
||||||
|
|
||||||
const waveCycle = ((globalScene.currentBattle?.waveIndex ?? 0) + globalScene.waveCycleOffset) % 40;
|
const waveCycle = ((globalScene.currentBattle?.waveIndex ?? 0) + globalScene.waveCycleOffset) % 40;
|
||||||
|
|
||||||
if (waveCycle < 15) {
|
if (waveCycle < 15) {
|
||||||
|
@ -75,6 +75,11 @@ class DefaultOverrides {
|
|||||||
readonly BATTLE_STYLE_OVERRIDE: BattleStyle | null = null;
|
readonly BATTLE_STYLE_OVERRIDE: BattleStyle | null = null;
|
||||||
readonly STARTING_WAVE_OVERRIDE: number = 0;
|
readonly STARTING_WAVE_OVERRIDE: number = 0;
|
||||||
readonly STARTING_BIOME_OVERRIDE: BiomeId | null = null;
|
readonly STARTING_BIOME_OVERRIDE: BiomeId | null = null;
|
||||||
|
/**
|
||||||
|
* Overrides the Time of Day for the given biome.
|
||||||
|
* Set to `null` to disable.
|
||||||
|
*/
|
||||||
|
readonly TIME_OF_DAY_OVERRIDE: Exclude<TimeOfDay, TimeOfDay.ALL> | null = null;
|
||||||
/** Multiplies XP gained by this value including 0. Set to null to ignore the override. */
|
/** Multiplies XP gained by this value including 0. Set to null to ignore the override. */
|
||||||
readonly XP_MULTIPLIER_OVERRIDE: number | null = null;
|
readonly XP_MULTIPLIER_OVERRIDE: number | null = null;
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user