More import fixes

This commit is contained in:
Wlowscha 2025-05-29 15:17:15 +02:00
parent 52e4e949c6
commit 453181f20b
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04
5 changed files with 8 additions and 7 deletions

View File

@ -922,10 +922,6 @@ export interface CustomModifierSettings {
allowLuckUpgrades?: boolean;
}
export function getModifierTypeFuncById(id: string): ModifierTypeFunc {
return modifierTypes[id];
}
/**
* Generates modifier options for a {@linkcode SelectModifierPhase}
* @param count Determines the number of items to generate

View File

@ -2332,3 +2332,7 @@ export class ModifierTypeOption {
this.cost = Math.min(Math.round(cost), Number.MAX_SAFE_INTEGER);
}
}
export function getModifierTypeFuncById(id: string): ModifierTypeFunc {
return modifierTypes[id];
}

View File

@ -1,6 +1,6 @@
import { globalScene } from "#app/global-scene";
import type { ModifierTypeOption } from "../modifier/modifier-type";
import { getPlayerShopModifierTypeOptionsForWave, TmModifierType } from "../modifier/modifier-type";
import { TmModifierType } from "../modifier/modifier-type";
import { getPokeballAtlasKey } from "#app/data/pokeball";
import { addTextObject, getTextStyleOptions, getModifierTierTextTint, getTextColor, TextStyle } from "./text";
import AwaitableUiHandler from "./awaitable-ui-handler";
@ -16,6 +16,7 @@ import i18next from "i18next";
import { ShopCursorTarget } from "#app/enums/shop-cursor-target";
import Phaser from "phaser";
import type { PokeballType } from "#enums/pokeball";
import { getPlayerShopModifierTypeOptionsForWave } from "#app/modifier/modifier-pool";
export const SHOP_OPTIONS_ROW_LIMIT = 7;
const SINGLE_SHOP_ROW_YOFFSET = 12;

View File

@ -12,7 +12,7 @@ import { Button } from "../enums/buttons";
import { BattleType } from "#enums/battle-type";
import { TrainerVariant } from "../field/trainer";
import { Challenges } from "#enums/challenges";
import { getLuckString, getLuckTextTint } from "../modifier/modifier-type";
import { getLuckString, getLuckTextTint } from "../modifier/modifier-utils";
import RoundRectangle from "phaser3-rex-plugins/plugins/roundrectangle";
import { getTypeRgb } from "#app/data/type";
import { PokemonType } from "#enums/pokemon-type";

View File

@ -1,7 +1,7 @@
import { expect } from "vitest";
import { GameManagerHelper } from "./gameManagerHelper";
import type { ModifierTypeKeys } from "#app/modifier/modifier-type";
import { itemPoolChecks } from "#app/modifier/modifier-type";
import { itemPoolChecks } from "#app/modifier/modifier-pool";
export class ModifierHelper extends GameManagerHelper {
/**