forked from dekzeh/calc
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstate.d.ts
74 lines (74 loc) · 2.07 KB
/
state.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import * as I from './data/interface';
export declare namespace State {
interface Pokemon {
name: I.SpeciesName;
level?: number;
ability?: I.AbilityName;
abilityOn?: boolean;
isDynamaxed?: boolean;
isSaltCure?: boolean;
alliesFainted?: number;
item?: I.ItemName;
gender?: I.GenderName;
nature?: I.NatureName;
ivs?: Partial<I.StatsTable>;
evs?: Partial<I.StatsTable>;
boosts?: Partial<I.StatsTable>;
originalCurHP?: number;
status?: I.StatusName | '';
teraType?: I.TypeName;
toxicCounter?: number;
moves?: I.MoveName[];
overrides?: Partial<I.Specie>;
}
interface Move {
name: I.MoveName;
useZ?: boolean;
useMax?: boolean;
isCrit?: boolean;
hits?: number;
timesUsed?: number;
timesUsedWithMetronome?: number;
overrides?: Partial<I.Move>;
}
interface Field {
gameType: I.GameType;
weather?: I.Weather;
terrain?: I.Terrain;
isMagicRoom?: boolean;
isWonderRoom?: boolean;
isGravity?: boolean;
isInverse?: boolean;
isAuraBreak?: boolean;
isFairyAura?: boolean;
isDarkAura?: boolean;
isBeadsOfRuin?: boolean;
isSwordOfRuin?: boolean;
isTabletsOfRuin?: boolean;
isVesselOfRuin?: boolean;
attackerSide: Side;
defenderSide: Side;
}
interface Side {
spikes?: number;
steelsurge?: boolean;
vinelash?: boolean;
wildfire?: boolean;
cannonade?: boolean;
volcalith?: boolean;
isSR?: boolean;
isReflect?: boolean;
isLightScreen?: boolean;
isProtected?: boolean;
isSeeded?: boolean;
isForesight?: boolean;
isTailwind?: boolean;
isHelpingHand?: boolean;
isFlowerGift?: boolean;
isFriendGuard?: boolean;
isAuroraVeil?: boolean;
isBattery?: boolean;
isPowerSpot?: boolean;
isSwitching?: 'out' | 'in';
}
}