afnm-types 0.6.23 → 0.6.24

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.
@@ -1 +1 @@
1
- export type GameScreen = 'location' | 'recipe' | 'mission' | 'craftingHall' | 'manual' | 'cultivation' | 'map' | 'healer' | 'market' | 'favour' | 'herbField' | 'mine' | 'recipeLibrary' | 'requestBoard' | 'compendium' | 'library' | 'altar' | 'research' | 'reforge' | 'pillarGrid' | 'fallenStar' | 'trainingGround';
1
+ export type GameScreen = 'location' | 'recipe' | 'mission' | 'craftingHall' | 'manual' | 'cultivation' | 'map' | 'healer' | 'market' | 'favour' | 'herbField' | 'mine' | 'recipeLibrary' | 'requestBoard' | 'compendium' | 'library' | 'altar' | 'research' | 'reforge' | 'pillarGrid' | 'fallenStar' | 'trainingGround' | 'lifeScreen';
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { CombatEntity, CraftingEntity, PlayerEntity } from './entity';
2
+ import { CombatEntity, CraftingEntity, PlayerEntity, StoredStance, StoredStyle } from './entity';
3
3
  import { ItemDesc } from './item';
4
4
  import { Realm, RealmProgress } from './realm';
5
5
  import { PhysicalStatistic, SocialStatistic, Scaling } from './stat';
@@ -45,6 +45,16 @@ export interface BreakthroughState {
45
45
  }[];
46
46
  tilePool?: number;
47
47
  };
48
+ lifeFlourishing?: {
49
+ slottedEssences: string[];
50
+ selectedLifeform?: string;
51
+ fightsInstead?: boolean;
52
+ lifeformEntity?: {
53
+ stances: StoredStance[];
54
+ currentStyle?: StoredStyle;
55
+ storedStyles?: StoredStyle[];
56
+ };
57
+ };
48
58
  previous: Partial<{
49
59
  [key in Realm]: BreakthroughBase;
50
60
  }>;
@@ -72,6 +82,7 @@ export interface BreakthroughBase {
72
82
  buffStacks: Scaling;
73
83
  }[];
74
84
  dropletRegen?: number;
85
+ maxDroplets?: number;
75
86
  items?: ItemDesc[];
76
87
  }
77
88
  export interface RequirementArgs {
@@ -108,6 +119,7 @@ export interface Breakthrough extends BreakthroughBase {
108
119
  }[];
109
120
  items?: ItemDesc[];
110
121
  dropletRegen?: number;
122
+ maxDroplets?: number;
111
123
  extraEffects?: string[];
112
124
  };
113
125
  }
package/dist/buff.d.ts CHANGED
@@ -60,6 +60,9 @@ export interface Buff {
60
60
  allowMultipleInstances?: boolean;
61
61
  storedVariables?: Record<string, string>;
62
62
  uniqueId?: string;
63
+ internalState?: Record<string, number>;
64
+ initialState?: Record<string, string>;
65
+ stateTooltip?: string;
63
66
  type?: TechniqueElement;
64
67
  noneType?: string;
65
68
  secondaryType?: TechniqueElement | 'origin';
@@ -159,7 +162,7 @@ export interface FormationCombatImage extends BaseCombatImage {
159
162
  scale?: number;
160
163
  showSingleInstance?: boolean;
161
164
  }
162
- export type BuffEffect = DamageEffect | DamageSelfEffect | HealEffect | BarrierEffect | CreateBuffSelfEffect | ConsumeBuffSelfEffect | CreateBuffTargetEffect | ConsumeBuffTargetEffect | NegateEffect | AddEffect | MultiplyEffect | MergeEffect | TriggerEffect | ModifyBuffGroupEffect | CleanseToxicityEffect;
165
+ export type BuffEffect = DamageEffect | DamageSelfEffect | HealEffect | BarrierEffect | CreateBuffSelfEffect | ConsumeBuffSelfEffect | CreateBuffTargetEffect | ConsumeBuffTargetEffect | NegateEffect | AddEffect | MultiplyEffect | MergeEffect | TriggerEffect | ModifyBuffGroupEffect | CleanseToxicityEffect | SetStateEffect;
163
166
  interface BaseBuff {
164
167
  condition?: TechniqueCondition;
165
168
  triggerKey?: string;
@@ -247,4 +250,10 @@ interface ModifyBuffGroupEffect extends BaseBuff {
247
250
  group: string;
248
251
  amount: Scaling;
249
252
  }
253
+ interface SetStateEffect extends BaseBuff {
254
+ kind: 'setState';
255
+ key: string;
256
+ value: Scaling;
257
+ mode?: 'set' | 'add';
258
+ }
250
259
  export {};
package/dist/entity.d.ts CHANGED
@@ -133,6 +133,7 @@ export interface EnemyEntity {
133
133
  stances: Stance[];
134
134
  stanceRotation: StanceRule[];
135
135
  rotationOverrides: SingleStance[];
136
+ clothing?: ItemDesc;
136
137
  talismans?: ItemDesc[];
137
138
  artefacts?: ItemDesc[];
138
139
  affinities?: Partial<Record<TechniqueElement, number>>;
@@ -0,0 +1,13 @@
1
+ import { LifeForm } from './life';
2
+ export interface Evolution {
3
+ fromForm: LifeForm;
4
+ toForm: LifeForm;
5
+ essenceCost: {
6
+ essence: string;
7
+ amount: number;
8
+ }[];
9
+ unlockCondition: {
10
+ hint: string;
11
+ isComplete: string;
12
+ };
13
+ }
@@ -0,0 +1 @@
1
+ export {};
package/dist/item.d.ts CHANGED
@@ -397,6 +397,7 @@ export interface PillarShardVariant {
397
397
  buffStacks: Scaling;
398
398
  }[];
399
399
  dropletRegen?: number;
400
+ maxDroplets?: number;
400
401
  }
401
402
  export interface PillarShardItem extends ItemBase {
402
403
  kind: 'pillar_shard';
package/dist/life.d.ts CHANGED
@@ -6,23 +6,11 @@ import { Technique } from './technique';
6
6
  export interface LifeForm {
7
7
  name: string;
8
8
  description: string;
9
- portrait: string;
10
9
  image: string;
11
10
  realm: Realm;
12
11
  baseStats: Record<PhysicalStatistic, number>;
13
12
  buffs: Buff[];
14
13
  techniques: Technique[];
15
- evolutions: {
16
- essenceCost: {
17
- essence: string;
18
- amount: number;
19
- }[];
20
- unlockCondition: {
21
- hint: string;
22
- isComplete: string;
23
- };
24
- nextForm: LifeForm;
25
- }[];
26
14
  }
27
15
  export interface LifeFormEntity {
28
16
  baseForm: string;
package/dist/mod.d.ts CHANGED
@@ -328,6 +328,7 @@ export interface ModAPI {
328
328
  harmonyConfigs: Record<RecipeHarmonyType, HarmonyTypeConfig>;
329
329
  itemTypeToHarmonyType: Record<ItemKind, RecipeHarmonyType>;
330
330
  puppets: PuppetType[];
331
+ monsters: EnemyEntity[];
331
332
  };
332
333
  actions: {
333
334
  /**
@@ -386,6 +387,12 @@ export interface ModAPI {
386
387
  * addItemToAuction(rareRecipe, 1, '1');
387
388
  */
388
389
  addItemToAuction: (item: Item, chance: number, condition: string, countOverride?: number, countMultiplier?: number) => void;
390
+ /**
391
+ * Add an item to a fallen star's drop table.
392
+ * @param item - Item to add
393
+ * @param realm - Realm of star to add to
394
+ */
395
+ addItemToFallenStar: (item: Item, realm: Realm) => void;
389
396
  /**
390
397
  * Add a recipe that can be researched from a base item.
391
398
  * @param baseItem - Item that enables research
package/dist/realm.js CHANGED
@@ -43,7 +43,7 @@ export const realmToName = {
43
43
  coreFormation: 'Core Formation',
44
44
  pillarCreation: 'Pillar Creation',
45
45
  lifeFlourishing: 'Life Flourishing',
46
- worldShaping: 'Budding Soul',
47
- innerGenesis: 'Soul Separation',
48
- soulAscension: 'Soul Ascension',
46
+ worldShaping: 'World Shaping',
47
+ innerGenesis: 'Inner Genesis',
48
+ soulAscension: 'Soul Transference',
49
49
  };
@@ -1,5 +1,5 @@
1
1
  import { PlayerEntity, EnemyEntity, CombatEntity, Sex } from './entity';
2
- import { ItemDesc, EnchantmentDesc } from './item';
2
+ import { ItemDesc, EnchantmentDesc, ItemKind } from './item';
3
3
  import { BreakthroughState } from './breakthrough';
4
4
  import { ScreenEffectType } from './ScreenEffectType';
5
5
  import { CalendarEvent } from './calendar';
@@ -19,6 +19,7 @@ import { Buff } from './buff';
19
19
  import { EventStep, GameEvent, ReportAnalyticsStep, TournamentStep } from './event';
20
20
  import { Background } from './background';
21
21
  import { Realm } from './realm';
22
+ import { TechniqueElement } from './element';
22
23
  export interface Viewport {
23
24
  x: number;
24
25
  y: number;
@@ -360,6 +361,20 @@ export interface GameEventState {
360
361
  };
361
362
  analyticsToReport: ReportAnalyticsStep[];
362
363
  }
364
+ export interface RecipeFilters {
365
+ hideCompleted: boolean;
366
+ hideLowerRealm: boolean;
367
+ showOnlyCraftable: boolean;
368
+ hideNoCraftSkill: boolean;
369
+ recipeFilter: string;
370
+ selectedRecipe: string;
371
+ pinnedRecipes: string[];
372
+ category: 'all' | ItemKind;
373
+ }
374
+ export interface CharacterUiPreferencesState {
375
+ techniqueFilter: 'all' | TechniqueElement;
376
+ recipeFilters: RecipeFilters;
377
+ }
363
378
  export interface RootState {
364
379
  gameData: GameDataState;
365
380
  gameEvent: GameEventState;
@@ -392,5 +407,6 @@ export interface RootState {
392
407
  guild: GuildState;
393
408
  stoneCutting: StoneCuttingState;
394
409
  fallenStar: FallenStarState;
410
+ characterUiPreferences: CharacterUiPreferencesState;
395
411
  }
396
412
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "afnm-types",
3
- "version": "0.6.23",
3
+ "version": "0.6.24",
4
4
  "description": "Type definitions for Ascend From Nine Mountains",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",