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.
- package/package.json +1 -1
- package/dist/api/battle.js +0 -2
- package/dist/api/index.d.ts +0 -3
- package/dist/api/index.js +0 -3
- package/dist/api/room.js +0 -2
- package/dist/api/socketTypes.js +0 -1
- package/dist/core/actions.js +0 -1
- package/dist/core/amulets.js +0 -1
- package/dist/core/battleState.d.ts +0 -39
- package/dist/core/battleState.js +0 -1
- package/dist/core/engine.d.ts +0 -45
- package/dist/core/engine.js +0 -869
- package/dist/core/events.js +0 -1
- package/dist/core/fighters.js +0 -1
- package/dist/core/ids.js +0 -1
- package/dist/core/index.d.ts +0 -11
- package/dist/core/index.js +0 -11
- package/dist/core/items.js +0 -1
- package/dist/core/moves.js +0 -2
- package/dist/core/status.js +0 -1
- package/dist/core/types.js +0 -1
- package/dist/engine/engine.d.ts +0 -45
- package/dist/engine/engine.js +0 -869
- package/dist/engine/index.d.ts +0 -1
- package/dist/engine/index.js +0 -1
- package/dist/engine/pokemonBattleService.d.ts +0 -6
- package/dist/engine/pokemonBattleService.js +0 -32
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -6
- package/dist/skins/CombatSkin.d.ts +0 -18
- package/dist/skins/CombatSkin.js +0 -1
- package/dist/skins/index.d.ts +0 -2
- package/dist/skins/index.js +0 -2
- package/dist/skins/pokemon/fighters.js +0 -174
- package/dist/skins/pokemon/index.d.ts +0 -6
- package/dist/skins/pokemon/index.js +0 -6
- package/dist/skins/pokemon/items.js +0 -143
- package/dist/skins/pokemon/moves.js +0 -459
- package/dist/skins/pokemon/pokemonSkin.js +0 -91
- package/dist/skins/pokemon/statuses.js +0 -85
- package/dist/skins/pokemon/types.js +0 -97
package/package.json
CHANGED
package/dist/api/battle.js
DELETED
package/dist/api/index.d.ts
DELETED
package/dist/api/index.js
DELETED
package/dist/api/room.js
DELETED
package/dist/api/socketTypes.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/core/actions.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/core/amulets.js
DELETED
|
@@ -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
|
-
}
|
package/dist/core/battleState.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/core/engine.d.ts
DELETED
|
@@ -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 {};
|