pokemon-io-core 0.0.52 → 0.0.53

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.
Files changed (41) hide show
  1. package/package.json +1 -1
  2. package/dist/api/battle.js +0 -2
  3. package/dist/api/index.d.ts +0 -3
  4. package/dist/api/index.js +0 -3
  5. package/dist/api/room.js +0 -2
  6. package/dist/api/socketTypes.js +0 -1
  7. package/dist/core/actions.js +0 -1
  8. package/dist/core/amulets.js +0 -1
  9. package/dist/core/battleState.d.ts +0 -39
  10. package/dist/core/battleState.js +0 -1
  11. package/dist/core/engine.d.ts +0 -45
  12. package/dist/core/engine.js +0 -869
  13. package/dist/core/events.js +0 -1
  14. package/dist/core/fighters.js +0 -1
  15. package/dist/core/ids.js +0 -1
  16. package/dist/core/index.d.ts +0 -11
  17. package/dist/core/index.js +0 -11
  18. package/dist/core/items.js +0 -1
  19. package/dist/core/moves.js +0 -2
  20. package/dist/core/status.js +0 -1
  21. package/dist/core/types.js +0 -1
  22. package/dist/engine/engine.d.ts +0 -45
  23. package/dist/engine/engine.js +0 -869
  24. package/dist/engine/index.d.ts +0 -1
  25. package/dist/engine/index.js +0 -1
  26. package/dist/engine/pokemonBattleService.d.ts +0 -6
  27. package/dist/engine/pokemonBattleService.js +0 -32
  28. package/dist/index.d.ts +0 -6
  29. package/dist/index.js +0 -6
  30. package/dist/skins/CombatSkin.d.ts +0 -18
  31. package/dist/skins/CombatSkin.js +0 -1
  32. package/dist/skins/index.d.ts +0 -2
  33. package/dist/skins/index.js +0 -2
  34. package/dist/skins/pokemon/fighters.js +0 -174
  35. package/dist/skins/pokemon/index.d.ts +0 -6
  36. package/dist/skins/pokemon/index.js +0 -6
  37. package/dist/skins/pokemon/items.js +0 -143
  38. package/dist/skins/pokemon/moves.js +0 -459
  39. package/dist/skins/pokemon/pokemonSkin.js +0 -91
  40. package/dist/skins/pokemon/statuses.js +0 -85
  41. package/dist/skins/pokemon/types.js +0 -97
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pokemon-io-core",
3
- "version": "0.0.52",
3
+ "version": "0.0.53",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1,2 +0,0 @@
1
- // @pokemon-io/combat-core/src/api/battle.ts
2
- export {};
@@ -1,3 +0,0 @@
1
- export * from "./battle.js";
2
- export * from "./room.js";
3
- export * from "./socketTypes.js";
package/dist/api/index.js DELETED
@@ -1,3 +0,0 @@
1
- export * from "./battle.js";
2
- export * from "./room.js";
3
- export * from "./socketTypes.js";
package/dist/api/room.js DELETED
@@ -1,2 +0,0 @@
1
- // @pokemon-io/combat-core/src/api/room.ts
2
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,39 +0,0 @@
1
- import { BattleRuntime } from "../core/engine";
2
- import type { FighterId, TypeId, MoveId, ItemId, AmuletId, StatusId } from "./ids";
3
- import type { FighterStats } from "./types";
4
- export interface EquippedMove {
5
- moveId: MoveId;
6
- currentPP: number;
7
- }
8
- export interface EquippedItem {
9
- itemId: ItemId;
10
- usesRemaining: number;
11
- }
12
- export interface ActiveStatus {
13
- statusId: StatusId;
14
- stacks: 1 | 2;
15
- remainingTurns: number;
16
- }
17
- export interface BattleFighter {
18
- fighterId: FighterId;
19
- classId: TypeId;
20
- maxHp: number;
21
- currentHp: number;
22
- baseStats: FighterStats;
23
- effectiveStats: FighterStats;
24
- moves: EquippedMove[];
25
- items: EquippedItem[];
26
- amuletId: AmuletId | null;
27
- statuses: ActiveStatus[];
28
- isAlive: boolean;
29
- }
30
- export interface PlayerBattleState {
31
- fighterTeam: BattleFighter[];
32
- activeIndex: number;
33
- }
34
- export interface BattleState {
35
- turnNumber: number;
36
- player1: PlayerBattleState;
37
- player2: PlayerBattleState;
38
- runtime: BattleRuntime;
39
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,45 +0,0 @@
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";
2
- interface BattleRules {
3
- baseCritChance: number;
4
- critPerStat: number;
5
- critMultiplier: number;
6
- stabMultiplier: number;
7
- randomMinDamageFactor: number;
8
- randomMaxDamageFactor: number;
9
- }
10
- export interface BattleRuntime {
11
- rules: BattleRules;
12
- typesById: Record<TypeId, TypeDefinition>;
13
- movesById: Record<MoveId, MoveDefinition>;
14
- itemsById: Record<ItemId, ItemDefinition>;
15
- amuletsById: Record<string, AmuletDefinition>;
16
- statusesById: Record<StatusId, StatusDefinition>;
17
- typeEffectiveness: TypeEffectivenessMatrix;
18
- }
19
- export interface PlayerBattleConfig {
20
- fighter: FighterDefinition;
21
- maxHp: number;
22
- moves: MoveDefinition[];
23
- items: ItemDefinition[];
24
- amulet: AmuletDefinition | null;
25
- }
26
- export interface BattleConfig {
27
- types: TypeDefinition[];
28
- typeEffectiveness: TypeEffectivenessMatrix;
29
- moves: MoveDefinition[];
30
- items: ItemDefinition[];
31
- amulets: AmuletDefinition[];
32
- statuses: StatusDefinition[];
33
- player1: PlayerBattleConfig;
34
- player2: PlayerBattleConfig;
35
- rules?: Partial<BattleRules>;
36
- }
37
- export interface RuntimeBattleState extends BattleState {
38
- runtime: BattleRuntime;
39
- }
40
- export declare const createInitialBattleState: (config: BattleConfig) => BattleState;
41
- export declare const resolveTurn: (state: BattleState, actions: BattleActions) => {
42
- newState: BattleState;
43
- events: BattleEvent[];
44
- };
45
- export {};