mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-09 08:59:29 +02:00
Remove relative imports
This commit is contained in:
parent
ff5d891c6e
commit
8118d00a07
@ -5,49 +5,38 @@ import type { PokemonType } from "#enums/pokemon-type";
|
|||||||
import { SpeciesId } from "#enums/species-id";
|
import { SpeciesId } from "#enums/species-id";
|
||||||
import { type PermanentStat, Stat } from "#enums/stat";
|
import { type PermanentStat, Stat } from "#enums/stat";
|
||||||
import { StatusEffect } from "#enums/status-effect";
|
import { StatusEffect } from "#enums/status-effect";
|
||||||
import { getEnumValues } from "#utils/common";
|
import { AccuracyBoosterHeldItem, type AccuracyBoostParams } from "#items/accuracy-booster";
|
||||||
import { HeldItemEffect } from "./held-item";
|
|
||||||
import { AccuracyBoosterHeldItem, type AccuracyBoostParams } from "./held-items/accuracy-booster";
|
|
||||||
import {
|
import {
|
||||||
AttackTypeBoosterHeldItem,
|
AttackTypeBoosterHeldItem,
|
||||||
type AttackTypeBoostParams,
|
type AttackTypeBoostParams,
|
||||||
attackTypeToHeldItem,
|
attackTypeToHeldItem,
|
||||||
} from "./held-items/attack-type-booster";
|
} from "#items/attack-type-booster";
|
||||||
import {
|
import { BaseStatBoosterHeldItem, type BaseStatBoosterParams, permanentStatToHeldItem } from "#items/base-stat-booster";
|
||||||
BaseStatBoosterHeldItem,
|
import { BaseStatFlatHeldItem, type BaseStatFlatParams } from "#items/base-stat-flat";
|
||||||
type BaseStatBoosterParams,
|
import { BaseStatTotalHeldItem, type BaseStatTotalParams } from "#items/base-stat-total";
|
||||||
permanentStatToHeldItem,
|
import { BatonHeldItem, type BatonParams } from "#items/baton";
|
||||||
} from "./held-items/base-stat-booster";
|
import { BerryHeldItem, type BerryParams, berryTypeToHeldItem } from "#items/berry";
|
||||||
import { BaseStatFlatHeldItem, type BaseStatFlatParams } from "./held-items/base-stat-flat";
|
import { BypassSpeedChanceHeldItem, type BypassSpeedChanceParams } from "#items/bypass-speed-chance";
|
||||||
import { BaseStatTotalHeldItem, type BaseStatTotalParams } from "./held-items/base-stat-total";
|
import { CritBoostHeldItem, type CritBoostParams, SpeciesCritBoostHeldItem } from "#items/crit-booster";
|
||||||
import { BatonHeldItem, type BatonParams } from "./held-items/baton";
|
import { DamageMoneyRewardHeldItem, type DamageMoneyRewardParams } from "#items/damage-money-reward";
|
||||||
import { BerryHeldItem, type BerryParams, berryTypeToHeldItem } from "./held-items/berry";
|
import { type EvoTrackerParams, GimmighoulEvoTrackerHeldItem } from "#items/evo-tracker";
|
||||||
import { BypassSpeedChanceHeldItem, type BypassSpeedChanceParams } from "./held-items/bypass-speed-chance";
|
import { ExpBoosterHeldItem, type ExpBoostParams } from "#items/exp-booster";
|
||||||
import { CritBoostHeldItem, type CritBoostParams, SpeciesCritBoostHeldItem } from "./held-items/crit-booster";
|
import { FieldEffectHeldItem, type FieldEffectParams } from "#items/field-effect";
|
||||||
import { DamageMoneyRewardHeldItem, type DamageMoneyRewardParams } from "./held-items/damage-money-reward";
|
import { FlinchChanceHeldItem, type FlinchChanceParams } from "#items/flinch-chance";
|
||||||
import { type EvoTrackerParams, GimmighoulEvoTrackerHeldItem } from "./held-items/evo-tracker";
|
import { FriendshipBoosterHeldItem, type FriendshipBoostParams } from "#items/friendship-booster";
|
||||||
import { ExpBoosterHeldItem, type ExpBoostParams } from "./held-items/exp-booster";
|
import { HeldItemEffect } from "#items/held-item";
|
||||||
import { FieldEffectHeldItem, type FieldEffectParams } from "./held-items/field-effect";
|
import { HitHealHeldItem, type HitHealParams } from "#items/hit-heal";
|
||||||
import { FlinchChanceHeldItem, type FlinchChanceParams } from "./held-items/flinch-chance";
|
import { IncrementingStatHeldItem, type IncrementingStatParams } from "#items/incrementing-stat";
|
||||||
import { FriendshipBoosterHeldItem, type FriendshipBoostParams } from "./held-items/friendship-booster";
|
import { InstantReviveHeldItem, type InstantReviveParams } from "#items/instant-revive";
|
||||||
import { HitHealHeldItem, type HitHealParams } from "./held-items/hit-heal";
|
import { ContactItemStealChanceHeldItem, type ItemStealParams, TurnEndItemStealHeldItem } from "#items/item-steal";
|
||||||
import { IncrementingStatHeldItem, type IncrementingStatParams } from "./held-items/incrementing-stat";
|
import { MultiHitHeldItem, type MultiHitParams } from "#items/multi-hit";
|
||||||
import { InstantReviveHeldItem, type InstantReviveParams } from "./held-items/instant-revive";
|
import { NatureWeightBoosterHeldItem, type NatureWeightBoostParams } from "#items/nature-weight-booster";
|
||||||
import {
|
import { ResetNegativeStatStageHeldItem, type ResetNegativeStatStageParams } from "#items/reset-negative-stat-stage";
|
||||||
ContactItemStealChanceHeldItem,
|
import { EvolutionStatBoostHeldItem, SpeciesStatBoostHeldItem, type StatBoostParams } from "#items/stat-booster";
|
||||||
type ItemStealParams,
|
import { SurviveChanceHeldItem, type SurviveChanceParams } from "#items/survive-chance";
|
||||||
TurnEndItemStealHeldItem,
|
import { TurnEndHealHeldItem, type TurnEndHealParams } from "#items/turn-end-heal";
|
||||||
} from "./held-items/item-steal";
|
import { TurnEndStatusHeldItem, type TurnEndStatusParams } from "#items/turn-end-status";
|
||||||
import { MultiHitHeldItem, type MultiHitParams } from "./held-items/multi-hit";
|
import { getEnumValues } from "#utils/common";
|
||||||
import { NatureWeightBoosterHeldItem, type NatureWeightBoostParams } from "./held-items/nature-weight-booster";
|
|
||||||
import {
|
|
||||||
ResetNegativeStatStageHeldItem,
|
|
||||||
type ResetNegativeStatStageParams,
|
|
||||||
} from "./held-items/reset-negative-stat-stage";
|
|
||||||
import { EvolutionStatBoostHeldItem, SpeciesStatBoostHeldItem, type StatBoostParams } from "./held-items/stat-booster";
|
|
||||||
import { SurviveChanceHeldItem, type SurviveChanceParams } from "./held-items/survive-chance";
|
|
||||||
import { TurnEndHealHeldItem, type TurnEndHealParams } from "./held-items/turn-end-heal";
|
|
||||||
import { TurnEndStatusHeldItem, type TurnEndStatusParams } from "./held-items/turn-end-status";
|
|
||||||
|
|
||||||
export function initHeldItems() {
|
export function initHeldItems() {
|
||||||
for (const berry of getEnumValues(BerryType)) {
|
for (const berry of getEnumValues(BerryType)) {
|
||||||
|
@ -26,7 +26,7 @@ import {
|
|||||||
TempStatStageBoosterTrainerItem,
|
TempStatStageBoosterTrainerItem,
|
||||||
TrainerItem,
|
TrainerItem,
|
||||||
tempStatToTrainerItem,
|
tempStatToTrainerItem,
|
||||||
} from "./trainer-item";
|
} from "#items/trainer-item";
|
||||||
|
|
||||||
export function initTrainerItems() {
|
export function initTrainerItems() {
|
||||||
allTrainerItems[TrainerItemId.MAP] = new TrainerItem(TrainerItemId.MAP, 1);
|
allTrainerItems[TrainerItemId.MAP] = new TrainerItem(TrainerItemId.MAP, 1);
|
||||||
|
@ -5,8 +5,8 @@ import {
|
|||||||
type PokemonParams,
|
type PokemonParams,
|
||||||
type PreserveBerryParams,
|
type PreserveBerryParams,
|
||||||
TrainerItemEffect,
|
TrainerItemEffect,
|
||||||
} from "./trainer-item";
|
} from "#items/trainer-item";
|
||||||
import type { TrainerItemManager } from "./trainer-item-manager";
|
import type { TrainerItemManager } from "#items/trainer-item-manager";
|
||||||
|
|
||||||
export type ApplyTrainerItemsParams = {
|
export type ApplyTrainerItemsParams = {
|
||||||
[TrainerItemEffect.LEVEL_INCREMENT_BOOSTER]: NumberHolderParams;
|
[TrainerItemEffect.LEVEL_INCREMENT_BOOSTER]: NumberHolderParams;
|
||||||
|
@ -6,7 +6,9 @@ import type { PokemonType } from "#enums/pokemon-type";
|
|||||||
import { RewardTier } from "#enums/reward-tier";
|
import { RewardTier } from "#enums/reward-tier";
|
||||||
import { PERMANENT_STATS } from "#enums/stat";
|
import { PERMANENT_STATS } from "#enums/stat";
|
||||||
import type { EnemyPokemon, PlayerPokemon, Pokemon } from "#field/pokemon";
|
import type { EnemyPokemon, PlayerPokemon, Pokemon } from "#field/pokemon";
|
||||||
import { coerceArray, getEnumValues, isNullOrUndefined, pickWeightedIndex, randSeedInt } from "#utils/common";
|
import { attackTypeToHeldItem } from "#items/attack-type-booster";
|
||||||
|
import { permanentStatToHeldItem } from "#items/base-stat-booster";
|
||||||
|
import { berryTypeToHeldItem } from "#items/berry";
|
||||||
import {
|
import {
|
||||||
type HeldItemConfiguration,
|
type HeldItemConfiguration,
|
||||||
type HeldItemPool,
|
type HeldItemPool,
|
||||||
@ -18,10 +20,8 @@ import {
|
|||||||
isHeldItemCategoryEntry,
|
isHeldItemCategoryEntry,
|
||||||
isHeldItemPool,
|
isHeldItemPool,
|
||||||
isHeldItemSpecs,
|
isHeldItemSpecs,
|
||||||
} from "./held-item-data-types";
|
} from "#items/held-item-data-types";
|
||||||
import { attackTypeToHeldItem } from "./held-items/attack-type-booster";
|
import { coerceArray, getEnumValues, isNullOrUndefined, pickWeightedIndex, randSeedInt } from "#utils/common";
|
||||||
import { permanentStatToHeldItem } from "./held-items/base-stat-booster";
|
|
||||||
import { berryTypeToHeldItem } from "./held-items/berry";
|
|
||||||
|
|
||||||
export const wildHeldItemPool: HeldItemTieredPool = {};
|
export const wildHeldItemPool: HeldItemTieredPool = {};
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import type { HeldItemId } from "#enums/held-item-id";
|
import type { HeldItemId } from "#enums/held-item-id";
|
||||||
import type { Pokemon } from "#field/pokemon";
|
import type { Pokemon } from "#field/pokemon";
|
||||||
|
import { HeldItem, HeldItemEffect } from "#items/held-item";
|
||||||
import type { NumberHolder } from "#utils/common";
|
import type { NumberHolder } from "#utils/common";
|
||||||
import { HeldItem, HeldItemEffect } from "../held-item";
|
|
||||||
|
|
||||||
export interface AccuracyBoostParams {
|
export interface AccuracyBoostParams {
|
||||||
/** The pokemon with the item */
|
/** The pokemon with the item */
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { HeldItemId } from "#enums/held-item-id";
|
import { HeldItemId } from "#enums/held-item-id";
|
||||||
import { getStatKey, type PermanentStat, Stat } from "#enums/stat";
|
import { getStatKey, type PermanentStat, Stat } from "#enums/stat";
|
||||||
import type { Pokemon } from "#field/pokemon";
|
import type { Pokemon } from "#field/pokemon";
|
||||||
|
import { HeldItem, HeldItemEffect } from "#items/held-item";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import { HeldItem, HeldItemEffect } from "../held-item";
|
|
||||||
|
|
||||||
export interface BaseStatBoosterParams {
|
export interface BaseStatBoosterParams {
|
||||||
/** The pokemon with the item */
|
/** The pokemon with the item */
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Stat } from "#enums/stat";
|
import { Stat } from "#enums/stat";
|
||||||
import type { Pokemon } from "#field/pokemon";
|
import type { Pokemon } from "#field/pokemon";
|
||||||
|
import { HeldItem, HeldItemEffect } from "#items/held-item";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import { HeldItem, HeldItemEffect } from "../held-item";
|
|
||||||
|
|
||||||
export interface BaseStatFlatParams {
|
export interface BaseStatFlatParams {
|
||||||
/** The pokemon with the item */
|
/** The pokemon with the item */
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import type { HeldItemId } from "#enums/held-item-id";
|
import type { HeldItemId } from "#enums/held-item-id";
|
||||||
import type { Pokemon } from "#field/pokemon";
|
import type { Pokemon } from "#field/pokemon";
|
||||||
|
import { HeldItem, HeldItemEffect } from "#items/held-item";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import { HeldItem, HeldItemEffect } from "../held-item";
|
|
||||||
|
|
||||||
export interface BaseStatTotalParams {
|
export interface BaseStatTotalParams {
|
||||||
/** The pokemon with the item */
|
/** The pokemon with the item */
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { Pokemon } from "#field/pokemon";
|
import type { Pokemon } from "#field/pokemon";
|
||||||
|
import { HeldItem, HeldItemEffect } from "#items/held-item";
|
||||||
import type { NumberHolder } from "#utils/common";
|
import type { NumberHolder } from "#utils/common";
|
||||||
import { HeldItem, HeldItemEffect } from "../held-item";
|
|
||||||
|
|
||||||
export interface BatonParams {
|
export interface BatonParams {
|
||||||
/** The pokemon with the item */
|
/** The pokemon with the item */
|
||||||
|
@ -5,8 +5,8 @@ import { HeldItemId } from "#enums/held-item-id";
|
|||||||
import { BerryUsedEvent } from "#events/battle-scene";
|
import { BerryUsedEvent } from "#events/battle-scene";
|
||||||
import type { Pokemon } from "#field/pokemon";
|
import type { Pokemon } from "#field/pokemon";
|
||||||
import { ConsumableHeldItem, HeldItemEffect } from "#items/held-item";
|
import { ConsumableHeldItem, HeldItemEffect } from "#items/held-item";
|
||||||
|
import { TrainerItemEffect } from "#items/trainer-item";
|
||||||
import { BooleanHolder } from "#utils/common";
|
import { BooleanHolder } from "#utils/common";
|
||||||
import { TrainerItemEffect } from "../trainer-item";
|
|
||||||
|
|
||||||
interface BerryTypeToHeldItemMap {
|
interface BerryTypeToHeldItemMap {
|
||||||
[key: number]: HeldItemId;
|
[key: number]: HeldItemId;
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import type { HeldItemId } from "#enums/held-item-id";
|
import type { HeldItemId } from "#enums/held-item-id";
|
||||||
import type { SpeciesId } from "#enums/species-id";
|
import type { SpeciesId } from "#enums/species-id";
|
||||||
import type { Pokemon } from "#field/pokemon";
|
import type { Pokemon } from "#field/pokemon";
|
||||||
|
import { HeldItem, HeldItemEffect } from "#items/held-item";
|
||||||
import type { NumberHolder } from "#utils/common";
|
import type { NumberHolder } from "#utils/common";
|
||||||
import { HeldItem, HeldItemEffect } from "../held-item";
|
|
||||||
|
|
||||||
export interface CritBoostParams {
|
export interface CritBoostParams {
|
||||||
/** The pokemon with the item */
|
/** The pokemon with the item */
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { globalScene } from "#app/global-scene";
|
import { globalScene } from "#app/global-scene";
|
||||||
import type { Pokemon } from "#field/pokemon";
|
import type { Pokemon } from "#field/pokemon";
|
||||||
|
import { HeldItem, HeldItemEffect } from "#items/held-item";
|
||||||
|
import { TrainerItemEffect } from "#items/trainer-item";
|
||||||
import { NumberHolder } from "#utils/common";
|
import { NumberHolder } from "#utils/common";
|
||||||
import { HeldItem, HeldItemEffect } from "../held-item";
|
|
||||||
import { TrainerItemEffect } from "../trainer-item";
|
|
||||||
|
|
||||||
export interface DamageMoneyRewardParams {
|
export interface DamageMoneyRewardParams {
|
||||||
/** The pokemon with the item */
|
/** The pokemon with the item */
|
||||||
|
@ -3,8 +3,8 @@ import { HeldItemId } from "#enums/held-item-id";
|
|||||||
import type { SpeciesId } from "#enums/species-id";
|
import type { SpeciesId } from "#enums/species-id";
|
||||||
import { TrainerItemId } from "#enums/trainer-item-id";
|
import { TrainerItemId } from "#enums/trainer-item-id";
|
||||||
import type { Pokemon } from "#field/pokemon";
|
import type { Pokemon } from "#field/pokemon";
|
||||||
|
import { HeldItem, HeldItemEffect } from "#items/held-item";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import { HeldItem, HeldItemEffect } from "../held-item";
|
|
||||||
|
|
||||||
export interface EvoTrackerParams {
|
export interface EvoTrackerParams {
|
||||||
/** The pokemon with the item */
|
/** The pokemon with the item */
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import type { HeldItemId } from "#enums/held-item-id";
|
import type { HeldItemId } from "#enums/held-item-id";
|
||||||
import type { Pokemon } from "#field/pokemon";
|
import type { Pokemon } from "#field/pokemon";
|
||||||
|
import { HeldItem, HeldItemEffect } from "#items/held-item";
|
||||||
import type { NumberHolder } from "#utils/common";
|
import type { NumberHolder } from "#utils/common";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import { HeldItem, HeldItemEffect } from "../held-item";
|
|
||||||
|
|
||||||
export interface ExpBoostParams {
|
export interface ExpBoostParams {
|
||||||
/** The pokemon with the item */
|
/** The pokemon with the item */
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import type { Pokemon } from "#field/pokemon";
|
import type { Pokemon } from "#field/pokemon";
|
||||||
|
import { HeldItem, HeldItemEffect } from "#items/held-item";
|
||||||
import type { NumberHolder } from "#utils/common";
|
import type { NumberHolder } from "#utils/common";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import { HeldItem, HeldItemEffect } from "../held-item";
|
|
||||||
|
|
||||||
export interface FriendshipBoostParams {
|
export interface FriendshipBoostParams {
|
||||||
/** The pokemon with the item */
|
/** The pokemon with the item */
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { Stat } from "#enums/stat";
|
import { Stat } from "#enums/stat";
|
||||||
import type { Pokemon } from "#field/pokemon";
|
import type { Pokemon } from "#field/pokemon";
|
||||||
|
import { HeldItem, HeldItemEffect } from "#items/held-item";
|
||||||
import type { NumberHolder } from "#utils/common";
|
import type { NumberHolder } from "#utils/common";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import { HeldItem, HeldItemEffect } from "../held-item";
|
|
||||||
|
|
||||||
export interface IncrementingStatParams {
|
export interface IncrementingStatParams {
|
||||||
/** The pokemon with the item */
|
/** The pokemon with the item */
|
||||||
|
@ -2,10 +2,10 @@ import { applyAbAttrs } from "#abilities/apply-ab-attrs";
|
|||||||
import { globalScene } from "#app/global-scene";
|
import { globalScene } from "#app/global-scene";
|
||||||
import { getPokemonNameWithAffix } from "#app/messages";
|
import { getPokemonNameWithAffix } from "#app/messages";
|
||||||
import type { Pokemon } from "#field/pokemon";
|
import type { Pokemon } from "#field/pokemon";
|
||||||
|
import { ConsumableHeldItem, HeldItemEffect } from "#items/held-item";
|
||||||
import { PokemonHealPhase } from "#phases/pokemon-heal-phase";
|
import { PokemonHealPhase } from "#phases/pokemon-heal-phase";
|
||||||
import { toDmgValue } from "#utils/common";
|
import { toDmgValue } from "#utils/common";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import { ConsumableHeldItem, HeldItemEffect } from "../held-item";
|
|
||||||
|
|
||||||
export interface InstantReviveParams {
|
export interface InstantReviveParams {
|
||||||
/** The pokemon with the item */
|
/** The pokemon with the item */
|
||||||
|
@ -3,9 +3,9 @@ import { getPokemonNameWithAffix } from "#app/messages";
|
|||||||
import { allHeldItems } from "#data/data-lists";
|
import { allHeldItems } from "#data/data-lists";
|
||||||
import type { HeldItemId } from "#enums/held-item-id";
|
import type { HeldItemId } from "#enums/held-item-id";
|
||||||
import { Pokemon } from "#field/pokemon";
|
import { Pokemon } from "#field/pokemon";
|
||||||
|
import { HeldItem, HeldItemEffect } from "#items/held-item";
|
||||||
import { randSeedFloat } from "#utils/common";
|
import { randSeedFloat } from "#utils/common";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import { HeldItem, HeldItemEffect } from "../held-item";
|
|
||||||
|
|
||||||
export interface ItemStealParams {
|
export interface ItemStealParams {
|
||||||
/** The pokemon with the item */
|
/** The pokemon with the item */
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { Pokemon } from "#field/pokemon";
|
import type { Pokemon } from "#field/pokemon";
|
||||||
|
import { HeldItem, HeldItemEffect } from "#items/held-item";
|
||||||
import type { NumberHolder } from "#utils/common";
|
import type { NumberHolder } from "#utils/common";
|
||||||
import { HeldItem, HeldItemEffect } from "../held-item";
|
|
||||||
|
|
||||||
export interface NatureWeightBoostParams {
|
export interface NatureWeightBoostParams {
|
||||||
/** The pokemon with the item */
|
/** The pokemon with the item */
|
||||||
|
@ -2,8 +2,8 @@ import { globalScene } from "#app/global-scene";
|
|||||||
import { getPokemonNameWithAffix } from "#app/messages";
|
import { getPokemonNameWithAffix } from "#app/messages";
|
||||||
import { BATTLE_STATS } from "#enums/stat";
|
import { BATTLE_STATS } from "#enums/stat";
|
||||||
import type { Pokemon } from "#field/pokemon";
|
import type { Pokemon } from "#field/pokemon";
|
||||||
|
import { ConsumableHeldItem, HeldItemEffect } from "#items/held-item";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import { ConsumableHeldItem, HeldItemEffect } from "../held-item";
|
|
||||||
|
|
||||||
export interface ResetNegativeStatStageParams {
|
export interface ResetNegativeStatStageParams {
|
||||||
/** The pokemon with the item */
|
/** The pokemon with the item */
|
||||||
|
@ -3,8 +3,8 @@ import { HeldItemId } from "#enums/held-item-id";
|
|||||||
import type { SpeciesId } from "#enums/species-id";
|
import type { SpeciesId } from "#enums/species-id";
|
||||||
import type { Stat } from "#enums/stat";
|
import type { Stat } from "#enums/stat";
|
||||||
import type { Pokemon } from "#field/pokemon";
|
import type { Pokemon } from "#field/pokemon";
|
||||||
|
import { HeldItem, HeldItemEffect } from "#items/held-item";
|
||||||
import type { NumberHolder } from "#utils/common";
|
import type { NumberHolder } from "#utils/common";
|
||||||
import { HeldItem, HeldItemEffect } from "../held-item";
|
|
||||||
|
|
||||||
export interface StatBoostParams {
|
export interface StatBoostParams {
|
||||||
/** The pokemon with the item */
|
/** The pokemon with the item */
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { HeldItemCategoryId, HeldItemId } from "#enums/held-item-id";
|
import { HeldItemCategoryId, HeldItemId } from "#enums/held-item-id";
|
||||||
import { RewardTier } from "#enums/reward-tier";
|
import { RewardTier } from "#enums/reward-tier";
|
||||||
import { dailyStarterHeldItemPool, trainerHeldItemPool, wildHeldItemPool } from "./held-item-pool";
|
import { dailyStarterHeldItemPool, trainerHeldItemPool, wildHeldItemPool } from "#items/held-item-pool";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize the wild held item pool
|
* Initialize the wild held item pool
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { RewardTier } from "#enums/reward-tier";
|
import { RewardTier } from "#enums/reward-tier";
|
||||||
import { TrainerItemId } from "#enums/trainer-item-id";
|
import { TrainerItemId } from "#enums/trainer-item-id";
|
||||||
import { enemyBuffTokenPool } from "./trainer-item-pool";
|
import { enemyBuffTokenPool } from "#items/trainer-item-pool";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize the enemy buff modifier pool
|
* Initialize the enemy buff modifier pool
|
||||||
|
@ -3,10 +3,10 @@ import { HeldItemId } from "#enums/held-item-id";
|
|||||||
import type { PokemonType } from "#enums/pokemon-type";
|
import type { PokemonType } from "#enums/pokemon-type";
|
||||||
import { SpeciesId } from "#enums/species-id";
|
import { SpeciesId } from "#enums/species-id";
|
||||||
import { type PermanentStat, Stat } from "#enums/stat";
|
import { type PermanentStat, Stat } from "#enums/stat";
|
||||||
import type { PokemonItemMap } from "./held-item-data-types";
|
import { attackTypeToHeldItem } from "#items/attack-type-booster";
|
||||||
import { attackTypeToHeldItem } from "./held-items/attack-type-booster";
|
import { permanentStatToHeldItem } from "#items/base-stat-booster";
|
||||||
import { permanentStatToHeldItem } from "./held-items/base-stat-booster";
|
import { berryTypeToHeldItem } from "#items/berry";
|
||||||
import { berryTypeToHeldItem } from "./held-items/berry";
|
import type { PokemonItemMap } from "#items/held-item-data-types";
|
||||||
|
|
||||||
const uniqueModifierToItem = {
|
const uniqueModifierToItem = {
|
||||||
EvoTrackerModifier: HeldItemId.GIMMIGHOUL_EVO_TRACKER,
|
EvoTrackerModifier: HeldItemId.GIMMIGHOUL_EVO_TRACKER,
|
||||||
|
@ -2,9 +2,9 @@ import { globalScene } from "#app/global-scene";
|
|||||||
import { allTrainerItems } from "#data/data-lists";
|
import { allTrainerItems } from "#data/data-lists";
|
||||||
import { RewardTier } from "#enums/reward-tier";
|
import { RewardTier } from "#enums/reward-tier";
|
||||||
import type { TrainerItemId } from "#enums/trainer-item-id";
|
import type { TrainerItemId } from "#enums/trainer-item-id";
|
||||||
|
import type { TrainerItemPool, TrainerItemTieredPool } from "#items/trainer-item-data-types";
|
||||||
|
import type { TrainerItemManager } from "#items/trainer-item-manager";
|
||||||
import { isNullOrUndefined, pickWeightedIndex } from "#utils/common";
|
import { isNullOrUndefined, pickWeightedIndex } from "#utils/common";
|
||||||
import type { TrainerItemPool, TrainerItemTieredPool } from "./trainer-item-data-types";
|
|
||||||
import type { TrainerItemManager } from "./trainer-item-manager";
|
|
||||||
|
|
||||||
export const enemyBuffTokenPool: TrainerItemTieredPool = {};
|
export const enemyBuffTokenPool: TrainerItemTieredPool = {};
|
||||||
|
|
||||||
|
@ -6,10 +6,10 @@ import { getStatKey, Stat, type TempBattleStat } from "#enums/stat";
|
|||||||
import { StatusEffect } from "#enums/status-effect";
|
import { StatusEffect } from "#enums/status-effect";
|
||||||
import { TrainerItemId, TrainerItemNames } from "#enums/trainer-item-id";
|
import { TrainerItemId, TrainerItemNames } from "#enums/trainer-item-id";
|
||||||
import type { Pokemon } from "#field/pokemon";
|
import type { Pokemon } from "#field/pokemon";
|
||||||
|
import type { TrainerItemManager } from "#items/trainer-item-manager";
|
||||||
import { addTextObject, TextStyle } from "#ui/text";
|
import { addTextObject, TextStyle } from "#ui/text";
|
||||||
import { type BooleanHolder, hslToHex, type NumberHolder, randSeedFloat, toDmgValue } from "#utils/common";
|
import { type BooleanHolder, hslToHex, type NumberHolder, randSeedFloat, toDmgValue } from "#utils/common";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import type { TrainerItemManager } from "./trainer-item-manager";
|
|
||||||
|
|
||||||
export const TrainerItemEffect = {
|
export const TrainerItemEffect = {
|
||||||
LEVEL_INCREMENT_BOOSTER: 1,
|
LEVEL_INCREMENT_BOOSTER: 1,
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import { globalScene } from "#app/global-scene";
|
import { globalScene } from "#app/global-scene";
|
||||||
import { type ModifierType, TrainerItemReward } from "#modifiers/modifier-type";
|
import { type ModifierType, TrainerItemReward } from "#modifiers/modifier-type";
|
||||||
|
import { BattlePhase } from "#phases/battle-phase";
|
||||||
import type { ModifierTypeFunc } from "#types/modifier-types";
|
import type { ModifierTypeFunc } from "#types/modifier-types";
|
||||||
import { getModifierType } from "#utils/modifier-utils";
|
import { getModifierType } from "#utils/modifier-utils";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import { BattlePhase } from "./battle-phase";
|
|
||||||
|
|
||||||
export class RewardPhase extends BattlePhase {
|
export class RewardPhase extends BattlePhase {
|
||||||
// RibbonRewardPhase extends RewardPhase and to make typescript happy
|
// RibbonRewardPhase extends RewardPhase and to make typescript happy
|
||||||
|
Loading…
Reference in New Issue
Block a user