mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 23:42:18 +02:00
More import fixes
This commit is contained in:
parent
52e4e949c6
commit
453181f20b
@ -922,10 +922,6 @@ export interface CustomModifierSettings {
|
|||||||
allowLuckUpgrades?: boolean;
|
allowLuckUpgrades?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getModifierTypeFuncById(id: string): ModifierTypeFunc {
|
|
||||||
return modifierTypes[id];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates modifier options for a {@linkcode SelectModifierPhase}
|
* Generates modifier options for a {@linkcode SelectModifierPhase}
|
||||||
* @param count Determines the number of items to generate
|
* @param count Determines the number of items to generate
|
||||||
|
@ -2332,3 +2332,7 @@ export class ModifierTypeOption {
|
|||||||
this.cost = Math.min(Math.round(cost), Number.MAX_SAFE_INTEGER);
|
this.cost = Math.min(Math.round(cost), Number.MAX_SAFE_INTEGER);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getModifierTypeFuncById(id: string): ModifierTypeFunc {
|
||||||
|
return modifierTypes[id];
|
||||||
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { globalScene } from "#app/global-scene";
|
import { globalScene } from "#app/global-scene";
|
||||||
import type { ModifierTypeOption } from "../modifier/modifier-type";
|
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 { getPokeballAtlasKey } from "#app/data/pokeball";
|
||||||
import { addTextObject, getTextStyleOptions, getModifierTierTextTint, getTextColor, TextStyle } from "./text";
|
import { addTextObject, getTextStyleOptions, getModifierTierTextTint, getTextColor, TextStyle } from "./text";
|
||||||
import AwaitableUiHandler from "./awaitable-ui-handler";
|
import AwaitableUiHandler from "./awaitable-ui-handler";
|
||||||
@ -16,6 +16,7 @@ import i18next from "i18next";
|
|||||||
import { ShopCursorTarget } from "#app/enums/shop-cursor-target";
|
import { ShopCursorTarget } from "#app/enums/shop-cursor-target";
|
||||||
import Phaser from "phaser";
|
import Phaser from "phaser";
|
||||||
import type { PokeballType } from "#enums/pokeball";
|
import type { PokeballType } from "#enums/pokeball";
|
||||||
|
import { getPlayerShopModifierTypeOptionsForWave } from "#app/modifier/modifier-pool";
|
||||||
|
|
||||||
export const SHOP_OPTIONS_ROW_LIMIT = 7;
|
export const SHOP_OPTIONS_ROW_LIMIT = 7;
|
||||||
const SINGLE_SHOP_ROW_YOFFSET = 12;
|
const SINGLE_SHOP_ROW_YOFFSET = 12;
|
||||||
|
@ -12,7 +12,7 @@ import { Button } from "../enums/buttons";
|
|||||||
import { BattleType } from "#enums/battle-type";
|
import { BattleType } from "#enums/battle-type";
|
||||||
import { TrainerVariant } from "../field/trainer";
|
import { TrainerVariant } from "../field/trainer";
|
||||||
import { Challenges } from "#enums/challenges";
|
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 RoundRectangle from "phaser3-rex-plugins/plugins/roundrectangle";
|
||||||
import { getTypeRgb } from "#app/data/type";
|
import { getTypeRgb } from "#app/data/type";
|
||||||
import { PokemonType } from "#enums/pokemon-type";
|
import { PokemonType } from "#enums/pokemon-type";
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { expect } from "vitest";
|
import { expect } from "vitest";
|
||||||
import { GameManagerHelper } from "./gameManagerHelper";
|
import { GameManagerHelper } from "./gameManagerHelper";
|
||||||
import type { ModifierTypeKeys } from "#app/modifier/modifier-type";
|
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 {
|
export class ModifierHelper extends GameManagerHelper {
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user