@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.
Files changed (2) hide show
  1. package/index.d.ts +13 -2
  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
- isBreakable?: boolean;
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> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pkmn/dex-types",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "types": "index.d.ts",
5
5
  "description": "Common Pokémon Showdown Dex types shared by @pkmn/dex and @pkmn/sim",
6
6
  "repository": "github:pkmn/ps",