pokemon-io-core 0.0.63 → 0.0.64
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.
- package/dist/api/socketTypes.d.ts +2 -2
- package/dist/core/amulets.d.ts +2 -2
- package/dist/core/battleState.d.ts +2 -2
- package/dist/core/events.d.ts +1 -1
- package/dist/core/fighters.d.ts +2 -2
- package/dist/core/items.d.ts +2 -2
- package/dist/core/moves.d.ts +1 -1
- package/dist/core/status.d.ts +2 -2
- package/dist/core/types.d.ts +1 -1
- package/dist/engine/pokemonBattleService.js +1 -1
- package/dist/skins/CombatSkin.d.ts +1 -1
- package/dist/skins/cliches/clicheSkin.d.ts +1 -1
- package/dist/skins/cliches/fighters.js +1 -1
- package/dist/skins/pokemon/fighters.js +1 -1
- package/dist/skins/pokemon/pokemonSkin.d.ts +1 -1
- package/package.json +1 -1
package/dist/core/amulets.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AmuletId, TypeId, StatusId } from "./ids";
|
|
2
|
-
import type { EffectDefinition } from "./moves";
|
|
1
|
+
import type { AmuletId, TypeId, StatusId } from "./ids.js";
|
|
2
|
+
import type { EffectDefinition } from "./moves.js";
|
|
3
3
|
export type PassiveTriggerKind = "always" | "on_hit" | "on_damage_taken" | "on_below_hp_threshold";
|
|
4
4
|
export interface PassiveTriggerCondition {
|
|
5
5
|
kind: PassiveTriggerKind;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BattleRuntime } from "../core/engine";
|
|
1
|
+
import { BattleRuntime } from "../core/engine.js";
|
|
2
2
|
import type { FighterId, TypeId, MoveId, ItemId, AmuletId, StatusId } from "./ids";
|
|
3
|
-
import type { FighterStats } from "./types";
|
|
3
|
+
import type { FighterStats } from "./types.js";
|
|
4
4
|
export interface EquippedMove {
|
|
5
5
|
moveId: MoveId;
|
|
6
6
|
currentPP: number;
|
package/dist/core/events.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FighterId, MoveId, ItemId, StatusId } from "./ids";
|
|
1
|
+
import type { FighterId, MoveId, ItemId, StatusId } from "./ids.js";
|
|
2
2
|
export type BattleEventKind = "turn_start" | "action_declared" | "action_skipped_hard_cc" | "move_miss" | "move_hit" | "item_used" | "status_cleared" | "damage" | "heal" | "shield_applied" | "status_applied" | "status_refreshed" | "status_expired" | "fighter_fainted" | "turn_end" | "battle_end";
|
|
3
3
|
export interface BaseBattleEvent {
|
|
4
4
|
id: string;
|
package/dist/core/fighters.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FighterId, TypeId, MoveId, ItemId, AmuletId } from "./ids";
|
|
2
|
-
import type { FighterStats } from "./types";
|
|
1
|
+
import type { FighterId, TypeId, MoveId, ItemId, AmuletId } from "./ids.js";
|
|
2
|
+
import type { FighterStats } from "./types.js";
|
|
3
3
|
export interface FighterDefinition {
|
|
4
4
|
id: FighterId;
|
|
5
5
|
name: string;
|
package/dist/core/items.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ItemId } from "./ids";
|
|
2
|
-
import type { EffectDefinition, TargetKind } from "./moves";
|
|
1
|
+
import type { ItemId } from "./ids.js";
|
|
2
|
+
import type { EffectDefinition, TargetKind } from "./moves.js";
|
|
3
3
|
export type ItemCategory = "damage" | "heal_shield" | "status_buff";
|
|
4
4
|
export interface ItemDefinition {
|
|
5
5
|
id: ItemId;
|
package/dist/core/moves.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MoveId, StatusId, TypeId } from "./ids";
|
|
1
|
+
import type { MoveId, StatusId, TypeId } from "./ids.js";
|
|
2
2
|
export type EffectTarget = "self" | "enemy";
|
|
3
3
|
export type EffectKind = "damage" | "heal" | "shield" | "modify_stats" | "apply_status" | "clear_status" | "modify_hit_chance" | "modify_crit_chance" | "modify_priority" | "modify_effective_speed";
|
|
4
4
|
export type TargetKind = EffectTarget;
|
package/dist/core/status.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { StatusId } from "./ids";
|
|
2
|
-
import type { EffectDefinition } from "./moves";
|
|
1
|
+
import type { StatusId } from "./ids.js";
|
|
2
|
+
import type { EffectDefinition } from "./moves.js";
|
|
3
3
|
export type StatusKind = "hard_cc" | "soft";
|
|
4
4
|
export interface StatusDefinition {
|
|
5
5
|
id: StatusId;
|
package/dist/core/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { POKEMON_FIGHTERS, POKEMON_MOVES, POKEMON_TYPE_MATRIX, POKEMON_TYPES, } from "../skins/pokemon";
|
|
2
|
-
import { createInitialBattleState, resolveTurn, } from "../core/engine";
|
|
2
|
+
import { createInitialBattleState, resolveTurn, } from "../core/engine.js";
|
|
3
3
|
const findPokemon = (id) => POKEMON_FIGHTERS.find((p) => p.id === id);
|
|
4
4
|
const findMove = (id) => POKEMON_MOVES.find((m) => m.id === id);
|
|
5
5
|
export const createPokemonBattle = (fighter1Id, fighter2Id) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TypeDefinition, TypeEffectivenessMatrix, MoveDefinition, ItemDefinition, AmuletDefinition, StatusDefinition } from "../core";
|
|
2
|
-
import type { PlayerBattleConfig } from "../core/engine";
|
|
2
|
+
import type { PlayerBattleConfig } from "../core/engine.js";
|
|
3
3
|
export interface FighterLoadout {
|
|
4
4
|
fighterId: string | null;
|
|
5
5
|
itemIds: string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ItemDefinition, MoveDefinition, PlayerBattleConfig } from "../../core";
|
|
2
|
-
import type { CombatSkin, FighterLoadout } from "../CombatSkin";
|
|
2
|
+
import type { CombatSkin, FighterLoadout } from "../CombatSkin.js";
|
|
3
3
|
export declare class TribeSkin implements CombatSkin {
|
|
4
4
|
readonly id = "tribe";
|
|
5
5
|
getTypes(): import("../..").TypeDefinition[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ItemDefinition, MoveDefinition, PlayerBattleConfig } from "../../core";
|
|
2
|
-
import type { CombatSkin, FighterLoadout } from "../CombatSkin";
|
|
2
|
+
import type { CombatSkin, FighterLoadout } from "../CombatSkin.js";
|
|
3
3
|
export declare class PokemonSkin implements CombatSkin {
|
|
4
4
|
readonly id = "pokemon";
|
|
5
5
|
getTypes(): import("../..").TypeDefinition[];
|