From f2a6fe5c6a3bb571d4bdb9afab739a1a34bce1e1 Mon Sep 17 00:00:00 2001 From: karl-police Date: Sat, 1 Jun 2024 00:41:09 +0200 Subject: [PATCH] Autocomplete for modifiers in overrides (#1057) * Autocomplete for modifiers * Update overrides.ts --------- Co-authored-by: Benjamin Odom --- src/overrides.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/overrides.ts b/src/overrides.ts index a4f94901957..8f5d4978be3 100644 --- a/src/overrides.ts +++ b/src/overrides.ts @@ -14,6 +14,7 @@ import { PokeballType } from "./data/pokeball"; import {TimeOfDay} from "#app/data/enums/time-of-day"; import { Gender } from "./data/gender"; import { StatusEffect } from "./data/status-effect"; +import { modifierTypes } from "./modifier/modifier-type"; /** * Overrides for testing different in game situations @@ -100,7 +101,7 @@ export const OPP_VARIANT_OVERRIDE: Variant = 0; * - BerryType is for BERRY */ interface ModifierOverride { - name: string, + name: keyof typeof modifierTypes & string, count?: integer type?: TempBattleStat|Stat|Nature|Type|BerryType }