@pkmn/dex-types 0.8.3 → 0.8.5
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/index.d.ts +14 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -52,9 +52,19 @@ export interface ConditionData extends Omit<EffectData, 'num'> {
|
|
|
52
52
|
onResidualSubOrder?: number;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
interface AbilityFlags {
|
|
56
|
+
breakable?: 1 | 0;
|
|
57
|
+
cantsuppress?: 1 | 0;
|
|
58
|
+
failroleplay?: 1 | 0;
|
|
59
|
+
failskillswap?: 1 | 0;
|
|
60
|
+
noentrain?: 1 | 0;
|
|
61
|
+
noreceiver?: 1 | 0;
|
|
62
|
+
notrace?: 1 | 0;
|
|
63
|
+
notransform?: 1 | 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
55
66
|
export interface AbilityData extends EffectData {
|
|
56
|
-
|
|
57
|
-
isPermanent?: boolean;
|
|
67
|
+
flags: AbilityFlags;
|
|
58
68
|
suppressWeather?: boolean;
|
|
59
69
|
condition?: Partial<ConditionData>;
|
|
60
70
|
}
|
|
@@ -104,6 +114,7 @@ interface MoveFlags {
|
|
|
104
114
|
futuremove?: 1 | 0;
|
|
105
115
|
gravity?: 1 | 0;
|
|
106
116
|
heal?: 1 | 0;
|
|
117
|
+
metronome?: 1;
|
|
107
118
|
mirror?: 1 | 0;
|
|
108
119
|
mustpressure?: 1 | 0;
|
|
109
120
|
noassist?: 1 | 0;
|
|
@@ -223,7 +234,6 @@ export interface MoveData extends EffectData, HitEffect {
|
|
|
223
234
|
hasCrashDamage?: boolean;
|
|
224
235
|
hasSheerForce?: boolean;
|
|
225
236
|
isConfusionSelfHit?: boolean;
|
|
226
|
-
noMetronome?: string[];
|
|
227
237
|
noSketch?: boolean;
|
|
228
238
|
stallingMove?: boolean;
|
|
229
239
|
}
|
|
@@ -339,6 +349,7 @@ export interface Condition extends Readonly<BasicEffect> {
|
|
|
339
349
|
export interface Ability extends Readonly<BasicEffect<AbilityName> & AbilityData> {
|
|
340
350
|
readonly effectType: 'Ability';
|
|
341
351
|
readonly kind: 'Ability';
|
|
352
|
+
readonly flags: AbilityFlags;
|
|
342
353
|
}
|
|
343
354
|
|
|
344
355
|
export interface Item extends Readonly<BasicEffect<ItemName> & ItemData> {
|
|
@@ -372,7 +383,6 @@ export interface Move extends Readonly<BasicEffect<MoveName> & MoveData> {
|
|
|
372
383
|
readonly maxMove?: {
|
|
373
384
|
basePower: number;
|
|
374
385
|
};
|
|
375
|
-
readonly noMetronome?: MoveName[];
|
|
376
386
|
readonly volatileStatus?: ID;
|
|
377
387
|
readonly slotCondition?: ID;
|
|
378
388
|
readonly sideCondition?: ID;
|