For getting the active event
The first active TimedEvent or undefined if there are no active events
Disable the timed event manager. Used for testing.
PrivatefillAssign each species/form pair a random other species/form pair for sprite replacement.
For events that change the classic candy friendship multiplier
The classic friendship multiplier of the active TimedEvent, or the default CLASSIC_CANDY_FRIENDSHIP_MULTIPLIER
Get the extra shiny chance for trainers due to event
For events where Delibirdy gives extra items
list of ids of ModifierTypes that Delibirdy hands out as a bonus
Get the event sprite replacement for a given species and form, if it exists. If the active event has fillRandom enabled,
will return a random replacement for any species/form pair that isn't explicitly listed in the pokemonReplacements array.
The species ID of the pokemon to check for a sprite replacement
The form index of the pokemon to check for a sprite replacement. Defaults to 0
An object containing the species ID and form index of the replacement sprite, or null if no replacement exists.
Return the key replacement for the given i18n key if it exists in the active event, otherwise return the original key.
The i18n key to check for a replacement
The replacement key if it exists, otherwise the original key
Get the event trainer sprite replacement for a given trainer type, if it exists.
The trainer type to check for a sprite replacement
The trainer type of the replacement sprite, or null if no replacement exists.
Gets all the modifier types associated with a certain wave during an event
the wave to check for associated rewards
array of strings of the event modifier reward types
Get the multiplier for shiny catches during a shiny TimedEvent
the shiny catch multiplier
Get the multiplier for shiny encounters during a shiny TimedEvent
the shiny encounter multiplier
For events where defeated bosses (Gym Leaders, E4 etc) give out Voucher Plus even if they were defeated before
Whether vouchers should be upgraded
For events where there's a set weather for town biome (other biomes are hard)
Event weathers for town
Check if the current active event has any text replacements.
This is used to determine whether the i18next proxy should be loaded.
Whether the active event has text replacements
Check whether the current TimedEvent is active and for April Fools.
Whether the April Fools event is currently active.
Whether the timed event manager is disabled. Used to disable events in testing.