omniarena-types 1.20.0 → 1.22.0
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/index.d.ts +41 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export type CharacterDto = {
|
|
|
37
37
|
characterId: number;
|
|
38
38
|
player: number;
|
|
39
39
|
name: string;
|
|
40
|
-
|
|
40
|
+
avatar: CharacterAvatar;
|
|
41
41
|
description: string;
|
|
42
42
|
maxHealth: number;
|
|
43
43
|
currentHealth: number;
|
|
@@ -81,6 +81,11 @@ export type Resource = Energy | 'random';
|
|
|
81
81
|
export type ValenceType = 'helpful' | 'harmful';
|
|
82
82
|
export type NatureType = 'physical' | 'energy' | 'mental' | 'tactical';
|
|
83
83
|
export type PersistenceType = 'instant' | 'action' | 'control';
|
|
84
|
+
export type ActionType = 'skill' | 'energy_exchange';
|
|
85
|
+
export type DamageType = 'regular' | 'piercing' | 'true';
|
|
86
|
+
export type EffectType = 'damage' | 'execution' | 'heal' | 'destructibleDefense' | 'damageReduction' | 'granResource' | 'drainResource' | 'stealResource' | 'delayed' | 'ignore' | 'invulnerability' | 'stun' | 'removal' | 'dealtDamageModifying' | 'receivedDamageModifying' | 'costModifying' | 'counter' | 'parry' | 'reflection' | 'label' | 'tracing';
|
|
87
|
+
export type Miscellaneous = 'ignoreInvulnerability' | 'mainTarget' | 'improvement';
|
|
88
|
+
export type Tag = ValenceType | NatureType | PersistenceType | DamageType | Resource | EffectType | Miscellaneous;
|
|
84
89
|
export type TargetingOptionsDto = {
|
|
85
90
|
self: boolean;
|
|
86
91
|
teamMembers: number;
|
|
@@ -99,3 +104,38 @@ export type SkillUseDto = {
|
|
|
99
104
|
skillId: string;
|
|
100
105
|
order: number;
|
|
101
106
|
};
|
|
107
|
+
export type GameSkin = {
|
|
108
|
+
id: string;
|
|
109
|
+
characters: Record<number, CharacterSkin>;
|
|
110
|
+
skills: Record<number, SkillSkin>;
|
|
111
|
+
};
|
|
112
|
+
export type CharacterAvatar = 'main';
|
|
113
|
+
export type CharacterSkin = {
|
|
114
|
+
id: number;
|
|
115
|
+
name: string;
|
|
116
|
+
short: string;
|
|
117
|
+
avatars: Record<CharacterAvatar, string>;
|
|
118
|
+
bio: string;
|
|
119
|
+
};
|
|
120
|
+
export type SkillSkin = {
|
|
121
|
+
id: number;
|
|
122
|
+
name: string;
|
|
123
|
+
image: string;
|
|
124
|
+
};
|
|
125
|
+
export type GameSkill = {
|
|
126
|
+
id: number;
|
|
127
|
+
name: string;
|
|
128
|
+
image: string;
|
|
129
|
+
valence: ValenceType;
|
|
130
|
+
nature: NatureType;
|
|
131
|
+
persistence: PersistenceType;
|
|
132
|
+
cooldown: number;
|
|
133
|
+
cost: Resource[];
|
|
134
|
+
targeting: string;
|
|
135
|
+
baseDescription: string;
|
|
136
|
+
baseDuration: number;
|
|
137
|
+
baseTags: Tag[];
|
|
138
|
+
};
|
|
139
|
+
export type GameCharacter = CharacterSkin & {
|
|
140
|
+
skills: GameSkill[];
|
|
141
|
+
};
|