pokemon-io-core 0.0.65 → 0.0.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { BattleEvent, StatusId } from "../core";
1
+ import { BattleEvent, StatusId } from "../core/index.js";
2
2
  export interface BattlePlayerStatusView {
3
3
  statusId: StatusId;
4
4
  stacks: 1 | 2;
@@ -1,4 +1,4 @@
1
- import { type BattleState, type FighterDefinition, type MoveDefinition, type ItemDefinition, type AmuletDefinition, type StatusDefinition, type TypeDefinition, type TypeEffectivenessMatrix, type BattleActions, type BattleEvent, type MoveId, type ItemId, type StatusId, type TypeId } from "../core";
1
+ import { type BattleState, type FighterDefinition, type MoveDefinition, type ItemDefinition, type AmuletDefinition, type StatusDefinition, type TypeDefinition, type TypeEffectivenessMatrix, type BattleActions, type BattleEvent, type MoveId, type ItemId, type StatusId, type TypeId } from "../core/index.js";
2
2
  interface BattleRules {
3
3
  baseCritChance: number;
4
4
  critPerStat: number;
@@ -1,6 +1,6 @@
1
- import { BattleActions, BattleState } from "../core";
1
+ import { BattleActions, BattleState } from "../core/index.js";
2
2
  export declare const createPokemonBattle: (fighter1Id: string, fighter2Id: string) => BattleState;
3
3
  export declare const runPokemonTurn: (state: BattleState, actions: BattleActions) => {
4
4
  newState: BattleState;
5
- events: import("..").BattleEvent[];
5
+ events: import("../index.js").BattleEvent[];
6
6
  };
@@ -1,4 +1,4 @@
1
- import type { TypeDefinition, TypeEffectivenessMatrix, MoveDefinition, ItemDefinition, AmuletDefinition, StatusDefinition } from "../core";
1
+ import type { TypeDefinition, TypeEffectivenessMatrix, MoveDefinition, ItemDefinition, AmuletDefinition, StatusDefinition } from "../core/index.js";
2
2
  import type { PlayerBattleConfig } from "../core/engine.js";
3
3
  export interface FighterLoadout {
4
4
  fighterId: string | null;
@@ -1,13 +1,13 @@
1
- import { ItemDefinition, MoveDefinition, PlayerBattleConfig } from "../../core";
1
+ import { ItemDefinition, MoveDefinition, PlayerBattleConfig } from "../../core/index.js";
2
2
  import type { CombatSkin, FighterLoadout } from "../CombatSkin.js";
3
3
  export declare class TribeSkin implements CombatSkin {
4
4
  readonly id = "tribe";
5
- getTypes(): import("../..").TypeDefinition[];
6
- getTypeEffectiveness(): import("../..").TypeEffectivenessMatrix;
5
+ getTypes(): import("../../index.js").TypeDefinition[];
6
+ getTypeEffectiveness(): import("../../index.js").TypeEffectivenessMatrix;
7
7
  getMoves(): MoveDefinition[];
8
8
  getItems(): ItemDefinition[];
9
9
  getAmulets(): never[];
10
- getStatuses(): import("../..").StatusDefinition[];
10
+ getStatuses(): import("../../index.js").StatusDefinition[];
11
11
  buildPlayerConfig(loadout: FighterLoadout): PlayerBattleConfig;
12
12
  }
13
13
  export declare const createTribeSkin: () => CombatSkin;
@@ -1,5 +1,5 @@
1
1
  // pokemon-io-core/src/skins/pokemon/pokemonSkin.ts
2
- import { POKEMON_ITEMS } from "../pokemon";
2
+ import { POKEMON_ITEMS } from "../pokemon/index.js";
3
3
  import { TRIBE_FIGHTERS, TRIBE_MOVES, TRIBE_STATUSES, TRIBE_TYPES, TRIBE_TYPE_MATRIX, } from "./index.js";
4
4
  // --- helpers ---
5
5
  const findPokemonById = (id) => {
@@ -1,2 +1,2 @@
1
- import type { FighterDefinition } from "../../core";
1
+ import type { FighterDefinition } from "../../core/index.js";
2
2
  export declare const TRIBE_FIGHTERS: FighterDefinition[];
@@ -1,2 +1,2 @@
1
- import { ItemDefinition } from "../../core";
1
+ import { ItemDefinition } from "../../core/index.js";
2
2
  export declare const POKEMON_ITEMS: ItemDefinition[];
@@ -1,2 +1,2 @@
1
- import type { MoveDefinition } from "../../core";
1
+ import type { MoveDefinition } from "../../core/index.js";
2
2
  export declare const TRIBE_MOVES: MoveDefinition[];
@@ -1,2 +1,2 @@
1
- import type { StatusDefinition } from "../../core";
1
+ import type { StatusDefinition } from "../../core/index.js";
2
2
  export declare const TRIBE_STATUSES: StatusDefinition[];
@@ -1,4 +1,4 @@
1
- import type { TypeDefinition, TypeEffectivenessMatrix, TypeId } from "../../core";
1
+ import type { TypeDefinition, TypeEffectivenessMatrix, TypeId } from "../../core/index.js";
2
2
  export declare const TRIBE_TYPE_IDS: {
3
3
  readonly canallita: "canallita";
4
4
  readonly cayetano: "cayetano";
@@ -1,2 +1,2 @@
1
- import type { FighterDefinition } from "../../core";
1
+ import type { FighterDefinition } from "../../core/index.js";
2
2
  export declare const POKEMON_FIGHTERS: FighterDefinition[];
@@ -1,2 +1,2 @@
1
- import { ItemDefinition } from "../../core";
1
+ import { ItemDefinition } from "../../core/index.js";
2
2
  export declare const POKEMON_ITEMS: ItemDefinition[];
@@ -1,2 +1,2 @@
1
- import type { MoveDefinition } from "../../core";
1
+ import type { MoveDefinition } from "../../core/index.js";
2
2
  export declare const POKEMON_MOVES: MoveDefinition[];
@@ -1,13 +1,13 @@
1
- import { ItemDefinition, MoveDefinition, PlayerBattleConfig } from "../../core";
1
+ import { ItemDefinition, MoveDefinition, PlayerBattleConfig } from "../../core/index.js";
2
2
  import type { CombatSkin, FighterLoadout } from "../CombatSkin.js";
3
3
  export declare class PokemonSkin implements CombatSkin {
4
4
  readonly id = "pokemon";
5
- getTypes(): import("../..").TypeDefinition[];
6
- getTypeEffectiveness(): import("../..").TypeEffectivenessMatrix;
5
+ getTypes(): import("../../index.js").TypeDefinition[];
6
+ getTypeEffectiveness(): import("../../index.js").TypeEffectivenessMatrix;
7
7
  getMoves(): MoveDefinition[];
8
8
  getItems(): ItemDefinition[];
9
9
  getAmulets(): never[];
10
- getStatuses(): import("../..").StatusDefinition[];
10
+ getStatuses(): import("../../index.js").StatusDefinition[];
11
11
  buildPlayerConfig(loadout: FighterLoadout): PlayerBattleConfig;
12
12
  }
13
13
  export declare const createPokemonSkin: () => CombatSkin;
@@ -1,2 +1,2 @@
1
- import type { StatusDefinition } from "../../core";
1
+ import type { StatusDefinition } from "../../core/index.js";
2
2
  export declare const POKEMON_STATUSES: StatusDefinition[];
@@ -1,4 +1,4 @@
1
- import type { TypeDefinition, TypeEffectivenessMatrix, TypeId } from "../../core";
1
+ import type { TypeDefinition, TypeEffectivenessMatrix, TypeId } from "../../core/index.js";
2
2
  export declare const POKEMON_TYPE_IDS: {
3
3
  readonly fire: "fire";
4
4
  readonly water: "water";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pokemon-io-core",
3
- "version": "0.0.65",
3
+ "version": "0.0.67",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",