Fix typo in name of sprite-utilts
This commit is contained in:
parent
31e37f2178
commit
a85c6f58ab
|
@ -171,7 +171,7 @@ import { initGlobalScene } from "#app/global-scene";
|
|||
import { ShowAbilityPhase } from "#app/phases/show-ability-phase";
|
||||
import { HideAbilityPhase } from "#app/phases/hide-ability-phase";
|
||||
import { expSpriteKeys } from "./sprites/sprite-keys";
|
||||
import { hasExpSprite } from "./sprites/sprite-utilts";
|
||||
import { hasExpSprite } from "./sprites/sprite-utils";
|
||||
import { timedEventManager } from "./global-event-manager";
|
||||
|
||||
export const bypassLogin = import.meta.env.VITE_BYPASS_LOGIN === "1";
|
||||
|
|
|
@ -263,7 +263,7 @@ import { Nature } from "#enums/nature";
|
|||
import { StatusEffect } from "#enums/status-effect";
|
||||
import { doShinySparkleAnim } from "#app/field/anims";
|
||||
import { MoveFlags } from "#enums/MoveFlags";
|
||||
import { hasExpSprite } from "#app/sprites/sprite-utilts";
|
||||
import { hasExpSprite } from "#app/sprites/sprite-utils";
|
||||
import { timedEventManager } from "#app/global-event-manager";
|
||||
import { loadMoveAnimations } from "#app/sprites/pokemon-asset-loader";
|
||||
import { ResetStatusPhase } from "#app/phases/reset-status-phase";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { globalScene } from "#app/global-scene";
|
||||
import { variantColorCache, variantData } from "#app/sprites/variant";
|
||||
import { Gender } from "#app/data/gender";
|
||||
import { hasExpSprite } from "./sprite-utilts";
|
||||
import { hasExpSprite } from "./sprite-utils";
|
||||
import type { Variant, VariantSet } from "#app/sprites/variant";
|
||||
import type Pokemon from "#app/field/pokemon";
|
||||
import type BattleScene from "#app/battle-scene";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { VariantTier } from "#app/enums/variant-tier";
|
||||
import { hasExpSprite } from "#app/sprites/sprite-utilts";
|
||||
import { hasExpSprite } from "#app/sprites/sprite-utils";
|
||||
import { globalScene } from "#app/global-scene";
|
||||
import type Pokemon from "#app/field/pokemon";
|
||||
import { isNullOrUndefined } from "#app/utils";
|
||||
|
@ -119,7 +119,11 @@ async function fallbackVariantColor(
|
|||
* @param useExpSprite - Should the experimental sprite be used
|
||||
* @param battleSpritePath - The filename of the sprite
|
||||
*/
|
||||
export async function populateVariantColorCache(cacheKey: string, useExpSprite: boolean, battleSpritePath: string): Promise<void> {
|
||||
export async function populateVariantColorCache(
|
||||
cacheKey: string,
|
||||
useExpSprite: boolean,
|
||||
battleSpritePath: string,
|
||||
): Promise<void> {
|
||||
const spritePath = `./images/pokemon/variant/${useExpSprite ? "exp/" : ""}${battleSpritePath}.json`;
|
||||
return globalScene
|
||||
.cachedFetch(spritePath)
|
||||
|
|
Loading…
Reference in New Issue