afnm-types 0.6.24 → 0.6.25

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/dist/buff.d.ts CHANGED
@@ -56,7 +56,7 @@ export interface Buff {
56
56
  speed?: number;
57
57
  applicationStats?: Record<CombatStatistic, number>;
58
58
  applicationVariables?: Record<string, number>;
59
- appliedByPlayer?: boolean;
59
+ appliedByOpponent?: boolean;
60
60
  allowMultipleInstances?: boolean;
61
61
  storedVariables?: Record<string, string>;
62
62
  uniqueId?: string;
@@ -79,6 +79,8 @@ export interface Buff {
79
79
  triggeredBuffEffects?: {
80
80
  trigger: string;
81
81
  effects: BuffEffect[];
82
+ /** If true, this trigger will also fire when the opponent triggers the same event */
83
+ listenToOpponent?: boolean;
82
84
  }[];
83
85
  damageInterceptorEffects?: {
84
86
  trigger?: TechniqueCondition;
@@ -113,7 +113,7 @@ export interface CraftingRecipeStats {
113
113
  conditionType: RecipeConditionEffect;
114
114
  harmonyType: RecipeHarmonyType;
115
115
  }
116
- export type CraftingTechniqueMastery = ControlMastery | IntensityMastery | CritChanceTechniqueMastery | CritDamageTechniqueMastery | EffectTechniqueMastery | UpgradeCraftingTechniqueMastery | PoolCostMastery | StabilityCostMastery | SuccessChanceMastery;
116
+ export type CraftingTechniqueMastery = ControlMastery | IntensityMastery | CritChanceTechniqueMastery | CritMultiplierTechniqueMastery | EffectTechniqueMastery | UpgradeCraftingTechniqueMastery | PoolCostMastery | StabilityCostMastery | SuccessChanceMastery;
117
117
  interface BaseCraftingTechniqueMastery {
118
118
  condition?: CraftingTechniqueCondition;
119
119
  tooltip?: string;
@@ -131,8 +131,8 @@ interface CritChanceTechniqueMastery extends BaseCraftingTechniqueMastery {
131
131
  kind: 'critchance';
132
132
  percentage: number;
133
133
  }
134
- interface CritDamageTechniqueMastery extends BaseCraftingTechniqueMastery {
135
- kind: 'critdam';
134
+ interface CritMultiplierTechniqueMastery extends BaseCraftingTechniqueMastery {
135
+ kind: 'critmultiplier';
136
136
  percentage: number;
137
137
  }
138
138
  interface EffectTechniqueMastery extends BaseCraftingTechniqueMastery {
package/dist/entity.d.ts CHANGED
@@ -7,6 +7,15 @@ import { ArtefactItem, CombatItem, CombatPillItem, ConcoctionItem, CraftingEquip
7
7
  import { Realm, RealmProgress } from './realm';
8
8
  import { CombatStatsMap, CraftingStatsMap, PhysicalStatistic, SocialStatistic } from './stat';
9
9
  import { KnownTechnique, Technique, TechniquePriority } from './technique';
10
+ export interface CombatEffectTracking {
11
+ icon: string;
12
+ background: string;
13
+ damage: number;
14
+ healing: number;
15
+ barrier: number;
16
+ }
17
+ export declare const entityTypes: readonly ["Player", "Lifeform", "Enemy"];
18
+ export type EntityType = (typeof entityTypes)[number];
10
19
  export declare const sexes: readonly ["male", "female"];
11
20
  export type Sex = (typeof sexes)[number];
12
21
  export interface PlayerEntity {
@@ -209,7 +218,7 @@ export interface CombatArtefact extends ArtefactItem {
209
218
  animations: ('bump' | 'buff' | 'debuff' | 'attack')[];
210
219
  }
211
220
  export interface CombatEntity {
212
- isPlayer: boolean;
221
+ entityType: EntityType;
213
222
  image: string;
214
223
  supportImage?: {
215
224
  image: string;
@@ -278,6 +287,7 @@ export interface CombatEntity {
278
287
  y: number;
279
288
  };
280
289
  disableBreathing?: boolean;
290
+ effectTracking: Record<string, CombatEffectTracking>;
281
291
  }
282
292
  export type StanceRule = SingleStance | RandomStance;
283
293
  export interface SingleStance {
package/dist/entity.js CHANGED
@@ -1 +1,2 @@
1
+ export const entityTypes = ['Player', 'Lifeform', 'Enemy'];
1
2
  export const sexes = ['male', 'female'];
package/dist/stat.d.ts CHANGED
@@ -3,7 +3,7 @@ import { TechniqueElement } from './element';
3
3
  export declare const physicalStatistics: readonly ["eyes", "meridians", "dantian", "muscles", "digestion", "flesh"];
4
4
  export declare const socialStatistics: readonly ["age", "lifespan", "charisma", "battlesense", "craftskill", "artefactslots", "talismanslots", "condenseEfficiency", "pillsPerRound"];
5
5
  export declare const craftingStatistics: readonly ["maxpool", "pool", "maxtoxicity", "toxicity", "resistance", "itemEffectiveness", "control", "intensity", "critchance", "critmultiplier", "pillsPerRound", "poolCostPercentage", "stabilityCostPercentage", "successChanceBonus"];
6
- export declare const combatStatistics: readonly ["maxhp", "hp", "maxbarrier", "barrier", "maxtoxicity", "toxicity", "resistance", "pillsPerRound", "itemEffectiveness", "power", "artefactpower", "critchance", "defense", "dr", "barrierMitigation", "lifesteal", "critdam", "vulnerability", "fistBoost", "blossomBoost", "weaponBoost", "cloudBoost", "bloodBoost", "celestialBoost", "fistAffinity", "blossomAffinity", "weaponAffinity", "cloudAffinity", "bloodAffinity", "celestialAffinity", "noneAffinity", "qiDroplets", "fistDisabled", "bloodDisabled", "blossomDisabled", "cloudDisabled", "celestialDisabled", "weaponDisabled", "fistResistance", "blossomResistance", "weaponResistance", "cloudResistance", "bloodResistance", "celestialResistance"];
6
+ export declare const combatStatistics: readonly ["maxhp", "hp", "maxbarrier", "barrier", "maxtoxicity", "toxicity", "resistance", "pillsPerRound", "itemEffectiveness", "power", "artefactpower", "critchance", "defense", "dr", "barrierMitigation", "lifesteal", "critmultiplier", "vulnerability", "weakness", "fistBoost", "blossomBoost", "weaponBoost", "cloudBoost", "bloodBoost", "celestialBoost", "fistAffinity", "blossomAffinity", "weaponAffinity", "cloudAffinity", "bloodAffinity", "celestialAffinity", "noneAffinity", "qiDroplets", "fistDisabled", "bloodDisabled", "blossomDisabled", "cloudDisabled", "celestialDisabled", "weaponDisabled", "fistResistance", "blossomResistance", "weaponResistance", "cloudResistance", "bloodResistance", "celestialResistance"];
7
7
  export type PhysicalStatistic = (typeof physicalStatistics)[number];
8
8
  export type SocialStatistic = (typeof socialStatistics)[number];
9
9
  export type CraftingStatistic = (typeof craftingStatistics)[number];
package/dist/stat.js CHANGED
@@ -50,8 +50,9 @@ export const combatStatistics = [
50
50
  'dr',
51
51
  'barrierMitigation',
52
52
  'lifesteal',
53
- 'critdam',
53
+ 'critmultiplier',
54
54
  'vulnerability',
55
+ 'weakness',
55
56
  'fistBoost',
56
57
  'blossomBoost',
57
58
  'weaponBoost',
@@ -106,8 +107,9 @@ export const combatStatToName = {
106
107
  dr: 'Damage Resistance',
107
108
  barrierMitigation: 'Barrier Effectiveness',
108
109
  lifesteal: 'Life Steal',
109
- critdam: 'Crit Damage',
110
+ critmultiplier: 'Crit Multiplier',
110
111
  vulnerability: 'Vulnerability',
112
+ weakness: 'Weakness',
111
113
  fistBoost: 'Fist Boost',
112
114
  blossomBoost: 'Blossom Boost',
113
115
  weaponBoost: 'Weapon Boost',
@@ -149,9 +151,10 @@ export const combatStatToDescription = {
149
151
  defense: 'Your resistance to damage.',
150
152
  dr: '',
151
153
  lifesteal: '',
152
- critchance: 'Your chance to get a critical effect, increasing the power of your techniques. Crit chance over 100% enables additional crits.',
153
- critdam: '',
154
+ critchance: 'Your chance to get a critical effect on damage, healing, and barrier. Crit chance over 100% converts to bonus crit damage at a 1:3 ratio.',
155
+ critmultiplier: '',
154
156
  vulnerability: '',
157
+ weakness: '',
155
158
  artefactpower: "The strength of your artefact's techniques and your Formation Parts.",
156
159
  fistBoost: '',
157
160
  blossomBoost: '',
@@ -202,7 +205,7 @@ export const craftingStatToName = {
202
205
  export const craftingStatToDescription = {
203
206
  maxtoxicity: 'The quantity of pills you can take before your body becomes unable to digest any more.',
204
207
  toxicity: '',
205
- critchance: 'Your chance to get a critical effect on increasing perfection or completion. Crit chance over 100% enables additional crits',
208
+ critchance: 'Your chance to get a critical effect on increasing perfection or completion. Crit chance over 100% converts to bonus crit multiplier at a 1:3 ratio.',
206
209
  maxpool: 'The amount of <b>Qi</b> you have available during crafting to spend on crafting actions.',
207
210
  pool: '',
208
211
  control: 'The <b>perfection</b> your refinement actions impart during crafting, making it easier to perfect a recipe.',
@@ -139,7 +139,7 @@ interface TriggerEffect extends BaseTechniqueEffect {
139
139
  amount: Scaling;
140
140
  triggerTooltip?: string;
141
141
  }
142
- export type TechniqueMastery = PowerTechniqueMastery | EffectTechniqueMastery | CritChanceTechniqueMastery | CritDamageTechniqueMastery | UpgradeTechniqueMastery;
142
+ export type TechniqueMastery = PowerTechniqueMastery | EffectTechniqueMastery | CritChanceTechniqueMastery | CritMultiplierTechniqueMastery | UpgradeTechniqueMastery;
143
143
  interface BaseTechniqueMastery {
144
144
  condition?: TechniqueCondition;
145
145
  tooltip?: string;
@@ -153,8 +153,8 @@ interface CritChanceTechniqueMastery extends BaseTechniqueMastery {
153
153
  kind: 'critchance';
154
154
  percentage: number;
155
155
  }
156
- interface CritDamageTechniqueMastery extends BaseTechniqueMastery {
157
- kind: 'critdam';
156
+ interface CritMultiplierTechniqueMastery extends BaseTechniqueMastery {
157
+ kind: 'critmultiplier';
158
158
  percentage: number;
159
159
  }
160
160
  interface EffectTechniqueMastery extends BaseTechniqueMastery {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "afnm-types",
3
- "version": "0.6.24",
3
+ "version": "0.6.25",
4
4
  "description": "Type definitions for Ascend From Nine Mountains",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",