PokéRogue
    Preparing search index...

    Interface EventSpriteOptions

    interface EventSpriteOptions {
        fillRandom?: boolean;
        imageReplacements?: readonly EventImageReplacement[];
        pokemonReplacements?: readonly EventPokemonSpriteReplacement[];
        trainerReplacements?: readonly EventTrainerSpriteReplacement[];
    }
    Index
    fillRandom?: boolean

    If true, any species not explicitly listed in the replacements array will be replaced with a random species.

    false
    
    imageReplacements?: readonly EventImageReplacement[]

    An Array of tuples [source, target] for replacing images during events. Source is the image key and target is the literal filename of the replacement image (without file extension). The image has to be in the events folder for it to work.

    Atlas replacements will also need a .json to work

    pokemonReplacements?: readonly EventPokemonSpriteReplacement[]

    An Array of tuples [source, target] for replacing pokemon sprites during events. Format for both source and target is "speciesId[/formIndex]", where formIndex is optional and defaults to 0 if not provided.

    trainerReplacements?: readonly EventTrainerSpriteReplacement[]

    An Array of tuples [source, target] for replacing trainer sprites during events. Source is a TrainerType and target is the literal filename of the sprite to use for that trainer type during the event (without file extension).