Autocomplete for modifiers in overrides (#1057)

* Autocomplete for modifiers

* Update overrides.ts

---------

Co-authored-by: Benjamin Odom <bennybroseph@gmail.com>
This commit is contained in:
karl-police 2024-06-01 00:41:09 +02:00 committed by GitHub
parent 218cf025a3
commit f2a6fe5c6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ import { PokeballType } from "./data/pokeball";
import {TimeOfDay} from "#app/data/enums/time-of-day"; import {TimeOfDay} from "#app/data/enums/time-of-day";
import { Gender } from "./data/gender"; import { Gender } from "./data/gender";
import { StatusEffect } from "./data/status-effect"; import { StatusEffect } from "./data/status-effect";
import { modifierTypes } from "./modifier/modifier-type";
/** /**
* Overrides for testing different in game situations * Overrides for testing different in game situations
@ -100,7 +101,7 @@ export const OPP_VARIANT_OVERRIDE: Variant = 0;
* - BerryType is for BERRY * - BerryType is for BERRY
*/ */
interface ModifierOverride { interface ModifierOverride {
name: string, name: keyof typeof modifierTypes & string,
count?: integer count?: integer
type?: TempBattleStat|Stat|Nature|Type|BerryType type?: TempBattleStat|Stat|Nature|Type|BerryType
} }