2024-04-30 11:47:53 +01:00
|
|
|
import { WeatherType } from "./data/weather";
|
2024-05-23 16:03:10 +01:00
|
|
|
import { Variant } from "./data/variant";
|
|
|
|
import { TempBattleStat } from "./data/temp-battle-stat";
|
|
|
|
import { Nature } from "./data/nature";
|
|
|
|
import { Type } from "./data/type";
|
|
|
|
import { Stat } from "./data/pokemon-stat";
|
|
|
|
import { PokeballCounts } from "./battle-scene";
|
|
|
|
import { PokeballType } from "./data/pokeball";
|
2024-05-28 04:59:01 +01:00
|
|
|
import { Gender } from "./data/gender";
|
2024-05-30 17:49:57 +01:00
|
|
|
import { StatusEffect } from "./data/status-effect";
|
2024-07-11 16:40:07 +01:00
|
|
|
import { modifierTypes, SpeciesStatBoosterItem } from "./modifier/modifier-type";
|
2024-06-22 01:19:56 +01:00
|
|
|
import { VariantTier } from "./enums/variant-tiers";
|
|
|
|
import { EggTier } from "#enums/egg-type";
|
2024-06-13 23:44:23 +01:00
|
|
|
import { Abilities } from "#enums/abilities";
|
|
|
|
import { BerryType } from "#enums/berry-type";
|
|
|
|
import { Biome } from "#enums/biome";
|
|
|
|
import { Moves } from "#enums/moves";
|
|
|
|
import { Species } from "#enums/species";
|
|
|
|
import { TimeOfDay } from "#enums/time-of-day";
|
2024-07-11 16:40:07 +01:00
|
|
|
import { MysteryEncounterType } from "#enums/mystery-encounter-type"; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
|
|
import { MysteryEncounterTier } from "#app/data/mystery-encounters/mystery-encounter"; // eslint-disable-line @typescript-eslint/no-unused-vars
|
2024-04-30 11:47:53 +01:00
|
|
|
|
2024-05-09 20:52:09 +01:00
|
|
|
/**
|
|
|
|
* Overrides for testing different in game situations
|
|
|
|
* if an override name starts with "STARTING", it will apply when a new run begins
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* OVERALL OVERRIDES
|
|
|
|
*/
|
|
|
|
|
|
|
|
// a specific seed (default: a random string of 24 characters)
|
2024-05-23 16:03:10 +01:00
|
|
|
export const SEED_OVERRIDE: string = "";
|
2024-05-09 20:52:09 +01:00
|
|
|
export const WEATHER_OVERRIDE: WeatherType = WeatherType.NONE;
|
|
|
|
export const DOUBLE_BATTLE_OVERRIDE: boolean = false;
|
2024-06-07 23:33:45 +01:00
|
|
|
export const SINGLE_BATTLE_OVERRIDE: boolean = false;
|
2024-05-09 20:52:09 +01:00
|
|
|
export const STARTING_WAVE_OVERRIDE: integer = 0;
|
|
|
|
export const STARTING_BIOME_OVERRIDE: Biome = Biome.TOWN;
|
2024-05-26 17:17:41 +01:00
|
|
|
export const ARENA_TINT_OVERRIDE: TimeOfDay = null;
|
|
|
|
// Multiplies XP gained by this value including 0. Set to null to ignore the override
|
|
|
|
export const XP_MULTIPLIER_OVERRIDE: number = null;
|
2024-05-09 20:52:09 +01:00
|
|
|
// default 1000
|
|
|
|
export const STARTING_MONEY_OVERRIDE: integer = 0;
|
2024-06-22 01:19:56 +01:00
|
|
|
export const FREE_CANDY_UPGRADE_OVERRIDE: boolean = false;
|
2024-05-13 09:40:53 +01:00
|
|
|
export const POKEBALL_OVERRIDE: { active: boolean, pokeballs: PokeballCounts } = {
|
2024-05-23 16:03:10 +01:00
|
|
|
active: false,
|
|
|
|
pokeballs: {
|
|
|
|
[PokeballType.POKEBALL]: 5,
|
|
|
|
[PokeballType.GREAT_BALL]: 0,
|
|
|
|
[PokeballType.ULTRA_BALL]: 0,
|
|
|
|
[PokeballType.ROGUE_BALL]: 0,
|
|
|
|
[PokeballType.MASTER_BALL]: 0,
|
|
|
|
}
|
|
|
|
};
|
2024-05-09 20:52:09 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* PLAYER OVERRIDES
|
|
|
|
*/
|
|
|
|
|
2024-06-13 10:36:12 +01:00
|
|
|
/**
|
|
|
|
* Set the form index of any starter in the party whose `speciesId` is inside this override
|
|
|
|
* @see {@link allSpecies} in `src/data/pokemon-species.ts` for form indexes
|
|
|
|
* @example
|
|
|
|
* ```
|
|
|
|
* const STARTER_FORM_OVERRIDES = {
|
|
|
|
* [Species.DARMANITAN]: 1
|
|
|
|
* }
|
|
|
|
* ```
|
|
|
|
*/
|
|
|
|
export const STARTER_FORM_OVERRIDES: Partial<Record<Species, number>> = {};
|
|
|
|
|
2024-05-09 20:52:09 +01:00
|
|
|
// default 5 or 20 for Daily
|
|
|
|
export const STARTING_LEVEL_OVERRIDE: integer = 0;
|
2024-06-04 16:39:02 +01:00
|
|
|
/**
|
|
|
|
* SPECIES OVERRIDE
|
|
|
|
* will only apply to the first starter in your party or each enemy pokemon
|
|
|
|
* default is 0 to not override
|
|
|
|
* @example SPECIES_OVERRIDE = Species.Bulbasaur;
|
|
|
|
*/
|
|
|
|
export const STARTER_SPECIES_OVERRIDE: Species | integer = 0;
|
|
|
|
export const ABILITY_OVERRIDE: Abilities = Abilities.NONE;
|
|
|
|
export const PASSIVE_ABILITY_OVERRIDE: Abilities = Abilities.NONE;
|
|
|
|
export const STATUS_OVERRIDE: StatusEffect = StatusEffect.NONE;
|
|
|
|
export const GENDER_OVERRIDE: Gender = null;
|
|
|
|
export const MOVESET_OVERRIDE: Array<Moves> = [];
|
|
|
|
export const SHINY_OVERRIDE: boolean = false;
|
|
|
|
export const VARIANT_OVERRIDE: Variant = 0;
|
2024-05-09 20:52:09 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* OPPONENT / ENEMY OVERRIDES
|
|
|
|
*/
|
|
|
|
|
2024-05-16 23:19:32 +01:00
|
|
|
export const OPP_SPECIES_OVERRIDE: Species | integer = 0;
|
2024-05-29 20:17:36 +01:00
|
|
|
export const OPP_LEVEL_OVERRIDE: number = 0;
|
2024-05-09 20:52:09 +01:00
|
|
|
export const OPP_ABILITY_OVERRIDE: Abilities = Abilities.NONE;
|
2024-06-11 15:12:46 +01:00
|
|
|
export const OPP_PASSIVE_ABILITY_OVERRIDE: Abilities = Abilities.NONE;
|
2024-05-30 17:49:57 +01:00
|
|
|
export const OPP_STATUS_OVERRIDE: StatusEffect = StatusEffect.NONE;
|
2024-05-26 17:17:41 +01:00
|
|
|
export const OPP_GENDER_OVERRIDE: Gender = null;
|
2024-05-09 20:52:09 +01:00
|
|
|
export const OPP_MOVESET_OVERRIDE: Array<Moves> = [];
|
|
|
|
export const OPP_SHINY_OVERRIDE: boolean = false;
|
|
|
|
export const OPP_VARIANT_OVERRIDE: Variant = 0;
|
2024-06-12 14:56:23 +01:00
|
|
|
export const OPP_IVS_OVERRIDE: integer | integer[] = [];
|
2024-05-09 20:52:09 +01:00
|
|
|
|
2024-06-22 01:19:56 +01:00
|
|
|
/**
|
|
|
|
* EGG OVERRIDES
|
|
|
|
*/
|
|
|
|
|
|
|
|
export const EGG_IMMEDIATE_HATCH_OVERRIDE: boolean = false;
|
|
|
|
export const EGG_TIER_OVERRIDE: EggTier = null;
|
|
|
|
export const EGG_SHINY_OVERRIDE: boolean = false;
|
|
|
|
export const EGG_VARIANT_OVERRIDE: VariantTier = null;
|
|
|
|
export const EGG_FREE_GACHA_PULLS_OVERRIDE: boolean = false;
|
|
|
|
export const EGG_GACHA_PULL_COUNT_OVERRIDE: number = 0;
|
|
|
|
|
2024-07-05 21:01:57 +01:00
|
|
|
/**
|
|
|
|
* MYSTERY ENCOUNTER OVERRIDES
|
|
|
|
*/
|
|
|
|
|
|
|
|
// 1 to 256, set to null to ignore
|
2024-07-08 23:09:38 +01:00
|
|
|
export const MYSTERY_ENCOUNTER_RATE_OVERRIDE: number = null;
|
2024-07-05 21:01:57 +01:00
|
|
|
export const MYSTERY_ENCOUNTER_TIER_OVERRIDE: MysteryEncounterTier = null;
|
2024-07-08 23:09:38 +01:00
|
|
|
export const MYSTERY_ENCOUNTER_OVERRIDE: MysteryEncounterType = null;
|
2024-07-05 21:01:57 +01:00
|
|
|
|
2024-05-09 20:52:09 +01:00
|
|
|
/**
|
|
|
|
* MODIFIER / ITEM OVERRIDES
|
|
|
|
* if count is not provided, it will default to 1
|
|
|
|
* @example Modifier Override [{name: "EXP_SHARE", count: 2}]
|
|
|
|
* @example Held Item Override [{name: "LUCKY_EGG"}]
|
2024-05-24 00:45:04 +01:00
|
|
|
*
|
|
|
|
* Some items are generated based on a sub-type (i.e. berries), to override those:
|
2024-05-09 20:52:09 +01:00
|
|
|
* @example [{name: "BERRY", count: 5, type: BerryType.SITRUS}]
|
|
|
|
* types are listed in interface below
|
|
|
|
* - TempBattleStat is for TEMP_STAT_BOOSTER / X Items (Dire hit is separate)
|
|
|
|
* - Stat is for BASE_STAT_BOOSTER / Vitamin
|
|
|
|
* - Nature is for MINT
|
|
|
|
* - Type is for TERA_SHARD or ATTACK_TYPE_BOOSTER (type boosting items i.e Silk Scarf)
|
|
|
|
* - BerryType is for BERRY
|
[Item] Add Light Ball, Thick Club, Metal Powder, and Quick Powder (#1899)
* Add Light Ball, Thick Club, and Metal/Quick Powder
* Fix Typo, Account for Fusions
* Fix Errors with Fusions
* Group Items into Generator
* Refactor Generator and Type, Fix Localization (en)
* Adjust Generator, Add Override Type
* Fix Enum Import
* Localize for de, es, fr, it, ko, zh_CN, zh_TW
* Add Unit Tests
* Add Type
* Fix Items Atlas
* Change Cubone Passive Ability, Adjust Weight
2024-06-26 19:48:10 +01:00
|
|
|
* - SpeciesStatBoosterItem is for SPECIES_STAT_BOOSTER
|
2024-05-09 20:52:09 +01:00
|
|
|
*/
|
|
|
|
interface ModifierOverride {
|
2024-05-31 23:41:09 +01:00
|
|
|
name: keyof typeof modifierTypes & string,
|
2024-05-09 20:52:09 +01:00
|
|
|
count?: integer
|
[Item] Add Light Ball, Thick Club, Metal Powder, and Quick Powder (#1899)
* Add Light Ball, Thick Club, and Metal/Quick Powder
* Fix Typo, Account for Fusions
* Fix Errors with Fusions
* Group Items into Generator
* Refactor Generator and Type, Fix Localization (en)
* Adjust Generator, Add Override Type
* Fix Enum Import
* Localize for de, es, fr, it, ko, zh_CN, zh_TW
* Add Unit Tests
* Add Type
* Fix Items Atlas
* Change Cubone Passive Ability, Adjust Weight
2024-06-26 19:48:10 +01:00
|
|
|
type?: TempBattleStat|Stat|Nature|Type|BerryType|SpeciesStatBoosterItem
|
2024-05-09 20:52:09 +01:00
|
|
|
}
|
2024-05-24 00:45:04 +01:00
|
|
|
export const STARTING_MODIFIER_OVERRIDE: Array<ModifierOverride> = [];
|
|
|
|
export const OPP_MODIFIER_OVERRIDE: Array<ModifierOverride> = [];
|
2024-04-30 11:47:53 +01:00
|
|
|
|
2024-05-24 00:45:04 +01:00
|
|
|
export const STARTING_HELD_ITEMS_OVERRIDE: Array<ModifierOverride> = [];
|
|
|
|
export const OPP_HELD_ITEMS_OVERRIDE: Array<ModifierOverride> = [];
|
2024-06-07 23:33:45 +01:00
|
|
|
export const NEVER_CRIT_OVERRIDE: boolean = false;
|
2024-06-06 02:28:12 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An array of items by keys as defined in the "modifierTypes" object in the "modifier/modifier-type.ts" file.
|
|
|
|
* Items listed will replace the normal rolls.
|
|
|
|
* If less items are listed than rolled, only some items will be replaced
|
|
|
|
* If more items are listed than rolled, only the first X items will be shown, where X is the number of items rolled.
|
|
|
|
*/
|
|
|
|
export const ITEM_REWARD_OVERRIDE: Array<String> = [];
|