@pkmn/dex-types 0.8.3 → 0.8.4
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 +13 -2
- 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
|
}
|
|
@@ -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> {
|