@rpg-engine/shared 0.7.81 → 0.7.82
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/README.md +29 -29
- package/dist/constants/date.constants.d.ts +2 -2
- package/dist/constants/date.constants.js +5 -5
- package/dist/constants/npc.constants.d.ts +1 -1
- package/dist/constants/npc.constants.js +4 -4
- package/dist/constants/socket.constants.d.ts +2 -2
- package/dist/constants/socket.constants.js +6 -6
- package/dist/constants/world.constants.d.ts +10 -10
- package/dist/constants/world.constants.js +13 -13
- package/dist/helpers/deviceHelpers.d.ts +2 -2
- package/dist/helpers/deviceHelpers.js +16 -16
- package/dist/helpers/itemSlotHelper.d.ts +7 -7
- package/dist/helpers/itemSlotHelper.js +27 -27
- package/dist/helpers/skillHelpers.d.ts +4 -4
- package/dist/helpers/skillHelpers.js +25 -25
- package/dist/helpers/weightHelper.d.ts +1 -1
- package/dist/helpers/weightHelper.js +14 -14
- package/dist/index.d.ts +52 -52
- package/dist/index.js +68 -68
- package/dist/libs/GridHelper.d.ts +11 -11
- package/dist/libs/GridHelper.js +37 -37
- package/dist/libs/MathHelper.d.ts +16 -16
- package/dist/libs/MathHelper.js +14 -14
- package/dist/libs/SocketHelper.d.ts +2 -2
- package/dist/libs/SocketHelper.js +14 -14
- package/dist/libs/TextHelper.d.ts +7 -7
- package/dist/libs/TextHelper.js +21 -21
- package/dist/libs/TypeHelper.d.ts +3 -3
- package/dist/libs/TypeHelper.js +16 -16
- package/dist/translations/app-rate.lang.json +38 -38
- package/dist/translations/assets.lang.json +82 -82
- package/dist/translations/auth.lang.json +182 -182
- package/dist/translations/email.lang.json +70 -70
- package/dist/translations/error.lang.json +18 -18
- package/dist/translations/form.lang.json +94 -94
- package/dist/translations/global.lang.json +90 -90
- package/dist/translations/logs.lang.json +6 -6
- package/dist/translations/onboarding.lang.d.ts +10 -10
- package/dist/translations/onboarding.lang.js +21 -21
- package/dist/translations/onboarding.lang.json +50 -50
- package/dist/translations/order.lang.json +90 -90
- package/dist/translations/search.lang.json +50 -50
- package/dist/translations/settings.lang.json +14 -14
- package/dist/translations/tabs.lang.json +22 -22
- package/dist/translations/users.lang.json +22 -22
- package/dist/translations/validation.lang.json +86 -86
- package/dist/types/animation.types.d.ts +68 -68
- package/dist/types/animation.types.js +45 -45
- package/dist/types/api.types.d.ts +21 -21
- package/dist/types/api.types.js +20 -20
- package/dist/types/asset.types.d.ts +6 -6
- package/dist/types/asset.types.js +2 -2
- package/dist/types/auth.types.d.ts +7 -7
- package/dist/types/auth.types.js +2 -2
- package/dist/types/battle.types.d.ts +40 -40
- package/dist/types/battle.types.js +18 -18
- package/dist/types/buff.types.d.ts +37 -37
- package/dist/types/buff.types.js +13 -13
- package/dist/types/character.types.d.ts +206 -206
- package/dist/types/character.types.js +53 -53
- package/dist/types/chat.types.d.ts +30 -30
- package/dist/types/chat.types.js +14 -14
- package/dist/types/depot.types.d.ts +18 -18
- package/dist/types/depot.types.js +9 -9
- package/dist/types/device.types.d.ts +24 -24
- package/dist/types/device.types.js +7 -7
- package/dist/types/entity.types.d.ts +30 -30
- package/dist/types/entity.types.js +20 -20
- package/dist/types/env.types.d.ts +5 -5
- package/dist/types/env.types.js +9 -9
- package/dist/types/equipment.types.d.ts +35 -35
- package/dist/types/equipment.types.js +18 -18
- package/dist/types/googleOAuth.types.d.ts +47 -47
- package/dist/types/googleOAuth.types.js +2 -2
- package/dist/types/inventory.types.d.ts +7 -7
- package/dist/types/inventory.types.js +2 -2
- package/dist/types/item.types.d.ts +365 -360
- package/dist/types/item.types.d.ts.map +1 -1
- package/dist/types/item.types.js +155 -155
- package/dist/types/item.types.js.map +1 -1
- package/dist/types/itemContainer.types.d.ts +83 -83
- package/dist/types/itemContainer.types.js +11 -11
- package/dist/types/macro.types.d.ts +8 -8
- package/dist/types/macro.types.js +12 -12
- package/dist/types/maps.types.d.ts +82 -82
- package/dist/types/maps.types.js +81 -81
- package/dist/types/notification.types.d.ts +14 -14
- package/dist/types/notification.types.js +2 -2
- package/dist/types/npc.types.d.ts +152 -152
- package/dist/types/npc.types.js +48 -48
- package/dist/types/pagination.types.d.ts +13 -13
- package/dist/types/pagination.types.js +2 -2
- package/dist/types/places.types.d.ts +16 -16
- package/dist/types/places.types.js +9 -9
- package/dist/types/preloadScene.types.d.ts +4 -4
- package/dist/types/preloadScene.types.js +7 -7
- package/dist/types/quest.types.d.ts +74 -74
- package/dist/types/quest.types.js +21 -21
- package/dist/types/resource.types.d.ts +5 -5
- package/dist/types/resource.types.js +2 -2
- package/dist/types/scene.types.d.ts +8 -8
- package/dist/types/scene.types.js +8 -8
- package/dist/types/shortcut.types.d.ts +11 -11
- package/dist/types/shortcut.types.js +9 -9
- package/dist/types/skills.types.d.ts +143 -143
- package/dist/types/skills.types.js +106 -106
- package/dist/types/socket.types.d.ts +17 -17
- package/dist/types/socket.types.js +8 -8
- package/dist/types/spell.types.d.ts +25 -25
- package/dist/types/spell.types.js +10 -10
- package/dist/types/tiled.types.d.ts +119 -119
- package/dist/types/tiled.types.js +7 -7
- package/dist/types/trade.types.d.ts +65 -65
- package/dist/types/trade.types.js +15 -15
- package/dist/types/translation.types.d.ts +5 -5
- package/dist/types/translation.types.js +8 -8
- package/dist/types/ui.types.d.ts +8 -8
- package/dist/types/ui.types.js +7 -7
- package/dist/types/useWith.types.d.ts +25 -25
- package/dist/types/useWith.types.js +9 -9
- package/dist/types/user.types.d.ts +101 -101
- package/dist/types/user.types.js +38 -38
- package/dist/types/validation.types.d.ts +9 -9
- package/dist/types/validation.types.js +2 -2
- package/dist/types/view.types.d.ts +14 -14
- package/dist/types/view.types.js +7 -7
- package/package.json +43 -43
|
@@ -1,361 +1,366 @@
|
|
|
1
|
-
import { AnimationEffectKeys } from "./animation.types";
|
|
2
|
-
import { ICharacterPermanentBuff } from "./buff.types";
|
|
3
|
-
import { ICharacter } from "./character.types";
|
|
4
|
-
import { EntityAttackType } from "./entity.types";
|
|
5
|
-
import { IEquipmentSet } from "./equipment.types";
|
|
6
|
-
import { IItemContainer } from "./itemContainer.types";
|
|
7
|
-
import { MapLayers } from "./maps.types";
|
|
8
|
-
import { IResource } from "./resource.types";
|
|
9
|
-
export interface IItem extends IResource {
|
|
10
|
-
tiledId?: number;
|
|
11
|
-
owner?: ICharacter | string;
|
|
12
|
-
type: ItemType;
|
|
13
|
-
subType: ItemSubType;
|
|
14
|
-
name: string;
|
|
15
|
-
description: string;
|
|
16
|
-
fullDescription: string;
|
|
17
|
-
key: string;
|
|
18
|
-
textureAtlas: string;
|
|
19
|
-
texturePath: string;
|
|
20
|
-
textureKey: string;
|
|
21
|
-
attack?: number;
|
|
22
|
-
defense?: number;
|
|
23
|
-
weight: number;
|
|
24
|
-
rarity: string;
|
|
25
|
-
allowedEquipSlotType: ItemSlotType[];
|
|
26
|
-
isEquipable: boolean;
|
|
27
|
-
isStackable: boolean;
|
|
28
|
-
isTwoHanded: boolean;
|
|
29
|
-
hasUseWith: boolean;
|
|
30
|
-
maxStackSize: number;
|
|
31
|
-
stackQty?: number;
|
|
32
|
-
isUsable: boolean;
|
|
33
|
-
usableEffect?: string;
|
|
34
|
-
isStorable: boolean;
|
|
35
|
-
x?: number;
|
|
36
|
-
y?: number;
|
|
37
|
-
scene?: string;
|
|
38
|
-
layer?: MapLayers;
|
|
39
|
-
isSolid: boolean;
|
|
40
|
-
isItemContainer: boolean;
|
|
41
|
-
itemContainer?: string | IItemContainer;
|
|
42
|
-
generateContainerSlots?: number;
|
|
43
|
-
decayTime?: Date;
|
|
44
|
-
maxRange?: number;
|
|
45
|
-
requiredAmmoKeys?: string[];
|
|
46
|
-
rangeType?: EntityAttackType;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
export
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
}
|
|
168
|
-
export
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
}
|
|
322
|
-
export interface
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
usableEffect
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
projectileAnimationKey: AnimationEffectKeys;
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
1
|
+
import { AnimationEffectKeys } from "./animation.types";
|
|
2
|
+
import { ICharacterPermanentBuff } from "./buff.types";
|
|
3
|
+
import { ICharacter } from "./character.types";
|
|
4
|
+
import { EntityAttackType } from "./entity.types";
|
|
5
|
+
import { IEquipmentSet } from "./equipment.types";
|
|
6
|
+
import { IItemContainer } from "./itemContainer.types";
|
|
7
|
+
import { MapLayers } from "./maps.types";
|
|
8
|
+
import { IResource } from "./resource.types";
|
|
9
|
+
export interface IItem extends IResource {
|
|
10
|
+
tiledId?: number;
|
|
11
|
+
owner?: ICharacter | string;
|
|
12
|
+
type: ItemType;
|
|
13
|
+
subType: ItemSubType;
|
|
14
|
+
name: string;
|
|
15
|
+
description: string;
|
|
16
|
+
fullDescription: string;
|
|
17
|
+
key: string;
|
|
18
|
+
textureAtlas: string;
|
|
19
|
+
texturePath: string;
|
|
20
|
+
textureKey: string;
|
|
21
|
+
attack?: number;
|
|
22
|
+
defense?: number;
|
|
23
|
+
weight: number;
|
|
24
|
+
rarity: string;
|
|
25
|
+
allowedEquipSlotType: ItemSlotType[];
|
|
26
|
+
isEquipable: boolean;
|
|
27
|
+
isStackable: boolean;
|
|
28
|
+
isTwoHanded: boolean;
|
|
29
|
+
hasUseWith: boolean;
|
|
30
|
+
maxStackSize: number;
|
|
31
|
+
stackQty?: number;
|
|
32
|
+
isUsable: boolean;
|
|
33
|
+
usableEffect?: string;
|
|
34
|
+
isStorable: boolean;
|
|
35
|
+
x?: number;
|
|
36
|
+
y?: number;
|
|
37
|
+
scene?: string;
|
|
38
|
+
layer?: MapLayers;
|
|
39
|
+
isSolid: boolean;
|
|
40
|
+
isItemContainer: boolean;
|
|
41
|
+
itemContainer?: string | IItemContainer;
|
|
42
|
+
generateContainerSlots?: number;
|
|
43
|
+
decayTime?: Date;
|
|
44
|
+
maxRange?: number;
|
|
45
|
+
requiredAmmoKeys?: string[];
|
|
46
|
+
rangeType?: EntityAttackType;
|
|
47
|
+
minRequirements?: MinRequirements;
|
|
48
|
+
entityEffects?: string[];
|
|
49
|
+
entityEffectChance?: number;
|
|
50
|
+
usableEffectDescription?: string;
|
|
51
|
+
equippedBuffDescription?: string;
|
|
52
|
+
}
|
|
53
|
+
export declare enum ItemType {
|
|
54
|
+
Weapon = "Weapon",
|
|
55
|
+
Armor = "Armor",
|
|
56
|
+
Accessory = "Accessory",
|
|
57
|
+
Jewelry = "Jewelry",
|
|
58
|
+
Consumable = "Consumable",
|
|
59
|
+
Quest = "Quest",
|
|
60
|
+
Information = "Information",
|
|
61
|
+
Tool = "Tool",
|
|
62
|
+
Container = "Container",
|
|
63
|
+
Other = "Other",
|
|
64
|
+
CraftingResource = "CraftingResource"
|
|
65
|
+
}
|
|
66
|
+
export declare enum ItemRarities {
|
|
67
|
+
Common = "Common",
|
|
68
|
+
Uncommon = "Uncommon",
|
|
69
|
+
Rare = "Rare",
|
|
70
|
+
Epic = "Epic",
|
|
71
|
+
Legendary = "Legendary"
|
|
72
|
+
}
|
|
73
|
+
export declare enum ItemSubType {
|
|
74
|
+
Accessory = "Accessory",
|
|
75
|
+
CraftingResource = "CraftingResource",
|
|
76
|
+
Armor = "Armor",
|
|
77
|
+
Legs = "Legs",
|
|
78
|
+
Axe = "Axe",
|
|
79
|
+
Boot = "Boot",
|
|
80
|
+
Ranged = "Ranged",
|
|
81
|
+
Food = "Food",
|
|
82
|
+
Glove = "Glove",
|
|
83
|
+
Helmet = "Helmet",
|
|
84
|
+
Magic = "Magic",
|
|
85
|
+
Potion = "Potion",
|
|
86
|
+
Shield = "Shield",
|
|
87
|
+
Spear = "Spear",
|
|
88
|
+
Staff = "Staff",
|
|
89
|
+
Sword = "Sword",
|
|
90
|
+
Other = "Other",
|
|
91
|
+
DeadBody = "DeadBody",
|
|
92
|
+
Dagger = "Dagger",
|
|
93
|
+
Mace = "Mace",
|
|
94
|
+
Tool = "Tool",
|
|
95
|
+
Book = "Book"
|
|
96
|
+
}
|
|
97
|
+
export declare enum ItemSlotType {
|
|
98
|
+
Head = "Head",
|
|
99
|
+
Neck = "Neck",
|
|
100
|
+
Torso = "Torso",
|
|
101
|
+
LeftHand = "LeftHand",
|
|
102
|
+
RightHand = "RightHand",
|
|
103
|
+
Waist = "Waist",
|
|
104
|
+
Legs = "Legs",
|
|
105
|
+
Feet = "Feet",
|
|
106
|
+
Ring = "Ring",
|
|
107
|
+
Accessory = "Accessory",
|
|
108
|
+
Inventory = "Inventory"
|
|
109
|
+
}
|
|
110
|
+
export declare enum ItemSocketEvents {
|
|
111
|
+
Update = "Update",
|
|
112
|
+
UpdateAll = "UpdateAll",
|
|
113
|
+
Look = "Look",
|
|
114
|
+
Equip = "Equip",
|
|
115
|
+
Unequip = "Unequip",
|
|
116
|
+
Pickup = "Pickup",
|
|
117
|
+
Drop = "Drop",
|
|
118
|
+
Move = "Move",
|
|
119
|
+
Use = "Use",
|
|
120
|
+
UseWith = "Use with...",
|
|
121
|
+
GetItemInfo = "GetItemInfo",
|
|
122
|
+
ReadItemInfo = "ReadItemInfo",
|
|
123
|
+
ContainerOpen = "ContainerOpen",
|
|
124
|
+
ContainerRead = "ContainerRead",
|
|
125
|
+
ContainerTransfer = "ContainerTransfer",
|
|
126
|
+
EquipmentAndInventoryUpdate = "EquipmentAndInventoryUpdate",
|
|
127
|
+
RangedAttack = "RangedAttack",
|
|
128
|
+
Buy = "Buy",
|
|
129
|
+
Sell = "Sell",
|
|
130
|
+
InventoryOpen = "InventoryOpen",
|
|
131
|
+
LoadCraftBook = "LoadCraftBook",
|
|
132
|
+
CraftableItems = "CraftableItems",
|
|
133
|
+
CraftItem = "CraftItem"
|
|
134
|
+
}
|
|
135
|
+
interface IStringIndex {
|
|
136
|
+
[key: string]: any;
|
|
137
|
+
}
|
|
138
|
+
export declare const ItemSocketEventsDisplayLabels: IStringIndex;
|
|
139
|
+
export interface IGetItemInfo {
|
|
140
|
+
id: string;
|
|
141
|
+
fields: string[];
|
|
142
|
+
}
|
|
143
|
+
export interface IReadItemInfo {
|
|
144
|
+
id: string;
|
|
145
|
+
information: string;
|
|
146
|
+
}
|
|
147
|
+
export interface IItemUpdate {
|
|
148
|
+
id: string;
|
|
149
|
+
textureAtlas: string;
|
|
150
|
+
texturePath: string;
|
|
151
|
+
type: ItemType;
|
|
152
|
+
subType: ItemSubType;
|
|
153
|
+
name: string;
|
|
154
|
+
x: number;
|
|
155
|
+
y: number;
|
|
156
|
+
scene?: string;
|
|
157
|
+
layer: MapLayers;
|
|
158
|
+
stackQty: number;
|
|
159
|
+
isStackable?: boolean;
|
|
160
|
+
isDeadBodyLootable?: boolean;
|
|
161
|
+
}
|
|
162
|
+
export interface IItemUpdateAll {
|
|
163
|
+
items: IItemUpdate[];
|
|
164
|
+
}
|
|
165
|
+
export interface IItemsInView {
|
|
166
|
+
[id: string]: IItemInViewBasicInfo;
|
|
167
|
+
}
|
|
168
|
+
export interface IItemInViewBasicInfo {
|
|
169
|
+
id: string;
|
|
170
|
+
x?: number;
|
|
171
|
+
y?: number;
|
|
172
|
+
}
|
|
173
|
+
export declare const ActionsForInventory: {
|
|
174
|
+
Equipment: ItemSocketEvents[];
|
|
175
|
+
Consumable: ItemSocketEvents[];
|
|
176
|
+
CraftingResource: ItemSocketEvents[];
|
|
177
|
+
Tool: ItemSocketEvents[];
|
|
178
|
+
Other: ItemSocketEvents[];
|
|
179
|
+
Container: ItemSocketEvents[];
|
|
180
|
+
};
|
|
181
|
+
export declare const ActionsForLoot: {
|
|
182
|
+
Equipment: ItemSocketEvents[];
|
|
183
|
+
Consumable: ItemSocketEvents[];
|
|
184
|
+
CraftingResource: ItemSocketEvents[];
|
|
185
|
+
Tool: ItemSocketEvents[];
|
|
186
|
+
Other: ItemSocketEvents[];
|
|
187
|
+
};
|
|
188
|
+
export declare const ActionsForEquipmentSet: {
|
|
189
|
+
Equipment: ItemSocketEvents[];
|
|
190
|
+
Container: ItemSocketEvents[];
|
|
191
|
+
};
|
|
192
|
+
export declare const ActionsForMapContainer: {
|
|
193
|
+
Equipment: ItemSocketEvents[];
|
|
194
|
+
Consumable: ItemSocketEvents[];
|
|
195
|
+
CraftingResource: ItemSocketEvents[];
|
|
196
|
+
Tool: ItemSocketEvents[];
|
|
197
|
+
Other: ItemSocketEvents[];
|
|
198
|
+
};
|
|
199
|
+
export interface IPayloadProps {
|
|
200
|
+
item: IItem | null;
|
|
201
|
+
actionType: ItemSocketEvents | string;
|
|
202
|
+
}
|
|
203
|
+
export interface IEquipItemPayload {
|
|
204
|
+
itemId: string;
|
|
205
|
+
itemContainerId: string;
|
|
206
|
+
}
|
|
207
|
+
export interface IUnequipItemPayload {
|
|
208
|
+
itemId: string;
|
|
209
|
+
}
|
|
210
|
+
export interface IEquipmentAndInventoryUpdatePayload {
|
|
211
|
+
equipment?: IEquipmentSet;
|
|
212
|
+
inventory?: IItemContainer;
|
|
213
|
+
openEquipmentSetOnUpdate?: boolean;
|
|
214
|
+
openInventoryOnUpdate?: boolean;
|
|
215
|
+
}
|
|
216
|
+
export declare type Direction = "down" | "up" | "left" | "right" | "down_right" | "down_left" | "up_right" | "up_left";
|
|
217
|
+
export interface IRangedAttack {
|
|
218
|
+
attackerId: string;
|
|
219
|
+
targetId: string;
|
|
220
|
+
direction: Direction;
|
|
221
|
+
ammoKey?: string;
|
|
222
|
+
type?: string;
|
|
223
|
+
}
|
|
224
|
+
export interface IUseItemPayload {
|
|
225
|
+
itemId: string;
|
|
226
|
+
}
|
|
227
|
+
export declare enum SpellCastingType {
|
|
228
|
+
SelfCasting = "self-casting",
|
|
229
|
+
RangedCasting = "ranged-casting"
|
|
230
|
+
}
|
|
231
|
+
export interface ILoadCraftBookPayload {
|
|
232
|
+
itemSubType: string;
|
|
233
|
+
}
|
|
234
|
+
export interface ICraftItemPayload {
|
|
235
|
+
itemKey: string;
|
|
236
|
+
itemSubType?: string;
|
|
237
|
+
}
|
|
238
|
+
export interface ICraftableItemIngredient {
|
|
239
|
+
key: string;
|
|
240
|
+
name: string;
|
|
241
|
+
qty: number;
|
|
242
|
+
texturePath: string;
|
|
243
|
+
}
|
|
244
|
+
export interface ICraftableItem extends IItem {
|
|
245
|
+
canCraft: boolean;
|
|
246
|
+
ingredients: ICraftableItemIngredient[];
|
|
247
|
+
minCraftingRequirements?: [string, number];
|
|
248
|
+
levelIsOk?: boolean;
|
|
249
|
+
}
|
|
250
|
+
export declare enum RangeTypes {
|
|
251
|
+
UltraShort = 2,
|
|
252
|
+
Short = 6,
|
|
253
|
+
Medium = 7,
|
|
254
|
+
High = 9,
|
|
255
|
+
UltraHigh = 12
|
|
256
|
+
}
|
|
257
|
+
export interface IBaseItemBlueprint {
|
|
258
|
+
key: string;
|
|
259
|
+
type: ItemType;
|
|
260
|
+
subType: ItemSubType;
|
|
261
|
+
textureAtlas: string;
|
|
262
|
+
texturePath: string;
|
|
263
|
+
name: string;
|
|
264
|
+
description: string;
|
|
265
|
+
weight: number;
|
|
266
|
+
basePrice?: number;
|
|
267
|
+
canSell?: boolean;
|
|
268
|
+
maxStackSize?: number;
|
|
269
|
+
isTraining?: boolean;
|
|
270
|
+
minRequirements?: MinRequirements;
|
|
271
|
+
}
|
|
272
|
+
export interface MinRequirements {
|
|
273
|
+
level: number;
|
|
274
|
+
skill: {
|
|
275
|
+
name: string;
|
|
276
|
+
level: number;
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
export interface IEquippableItemBlueprint extends IBaseItemBlueprint {
|
|
280
|
+
defense?: number;
|
|
281
|
+
attack?: number;
|
|
282
|
+
allowedEquipSlotType: ItemSlotType[];
|
|
283
|
+
usableEffect?: (character: any) => void | Promise<void>;
|
|
284
|
+
equippedBuff?: ICharacterPermanentBuff;
|
|
285
|
+
}
|
|
286
|
+
export interface IEquippableRangedAmmoBlueprint extends IBaseItemBlueprint {
|
|
287
|
+
type: ItemType.Weapon;
|
|
288
|
+
subType: ItemSubType.Ranged;
|
|
289
|
+
attack: number;
|
|
290
|
+
allowedEquipSlotType: [ItemSlotType.Accessory];
|
|
291
|
+
maxStackSize: number;
|
|
292
|
+
entityEffects?: string[];
|
|
293
|
+
entityEffectChance?: number;
|
|
294
|
+
}
|
|
295
|
+
export interface IEquippableArmorBlueprint extends Omit<IEquippableItemBlueprint, "attack"> {
|
|
296
|
+
}
|
|
297
|
+
export interface IEquippableWeaponBlueprint extends IEquippableItemBlueprint {
|
|
298
|
+
type: ItemType.Weapon;
|
|
299
|
+
attack: number;
|
|
300
|
+
defense: number;
|
|
301
|
+
rangeType: EntityAttackType;
|
|
302
|
+
isTwoHanded?: boolean;
|
|
303
|
+
entityEffects?: string[];
|
|
304
|
+
entityEffectChance?: number;
|
|
305
|
+
}
|
|
306
|
+
export interface IEquippableRangedWeaponTwoHandedBlueprint extends Omit<IEquippableWeaponBlueprint, "defense"> {
|
|
307
|
+
rangeType: EntityAttackType.Ranged;
|
|
308
|
+
subType: ItemSubType.Ranged;
|
|
309
|
+
maxRange: RangeTypes;
|
|
310
|
+
requiredAmmoKeys: string[];
|
|
311
|
+
attack: number;
|
|
312
|
+
isTwoHanded: true;
|
|
313
|
+
allowedEquipSlotType: [ItemSlotType.LeftHand, ItemSlotType.RightHand];
|
|
314
|
+
}
|
|
315
|
+
export interface IEquippableRangedWeaponOneHandedBlueprint extends Omit<IEquippableWeaponBlueprint, "defense"> {
|
|
316
|
+
rangeType: EntityAttackType.Ranged;
|
|
317
|
+
subType: ItemSubType.Ranged;
|
|
318
|
+
maxRange: RangeTypes;
|
|
319
|
+
attack: number;
|
|
320
|
+
allowedEquipSlotType: [ItemSlotType.LeftHand, ItemSlotType.RightHand];
|
|
321
|
+
}
|
|
322
|
+
export interface ICraftableItemBlueprint extends IBaseItemBlueprint {
|
|
323
|
+
type: ItemType.Consumable | ItemType.CraftingResource;
|
|
324
|
+
maxStackSize?: number;
|
|
325
|
+
usableEffect?: (character: any) => void | Promise<void>;
|
|
326
|
+
}
|
|
327
|
+
export interface IToolItemBlueprint extends IBaseItemBlueprint {
|
|
328
|
+
attack?: number;
|
|
329
|
+
defense?: number;
|
|
330
|
+
allowedEquipSlotType: [ItemSlotType.LeftHand, ItemSlotType.RightHand];
|
|
331
|
+
rangeType: EntityAttackType;
|
|
332
|
+
hasUseWith: true;
|
|
333
|
+
useWithMaxDistanceGrid: RangeTypes;
|
|
334
|
+
canSell: false;
|
|
335
|
+
usableEffect?: (character: any, targetItem: any, itemCraftable: any, skillIncrease: any) => void | Promise<void>;
|
|
336
|
+
useWithTileEffect?: (originItem: any, targetTile: any, targetname: string, character: any, itemCraftable: any, skillIncrease: any) => Promise<void>;
|
|
337
|
+
}
|
|
338
|
+
export interface IConsumableItemBlueprint extends ICraftableItemBlueprint {
|
|
339
|
+
type: ItemType.Consumable;
|
|
340
|
+
usableEffect: (character: any) => void | Promise<void>;
|
|
341
|
+
}
|
|
342
|
+
export declare enum RunePower {
|
|
343
|
+
UltraLow = 5,
|
|
344
|
+
Low = 10,
|
|
345
|
+
Medium = 15,
|
|
346
|
+
High = 20,
|
|
347
|
+
UltraHigh = 25,
|
|
348
|
+
Fatal = 30
|
|
349
|
+
}
|
|
350
|
+
export interface IRuneItemBlueprint extends IBaseItemBlueprint {
|
|
351
|
+
hasUseWith: true;
|
|
352
|
+
canUseOnNonPVPZone: boolean;
|
|
353
|
+
maxStackSize: number;
|
|
354
|
+
useWithMaxDistanceGrid: RangeTypes;
|
|
355
|
+
power: RunePower;
|
|
356
|
+
animationKey: AnimationEffectKeys;
|
|
357
|
+
projectileAnimationKey: AnimationEffectKeys;
|
|
358
|
+
minMagicLevelRequired: number;
|
|
359
|
+
usableEffect?: (caster: any, target: any) => void | Promise<void> | Promise<number>;
|
|
360
|
+
}
|
|
361
|
+
export interface IEquippableStaffBlueprint extends IEquippableWeaponBlueprint {
|
|
362
|
+
projectileAnimationKey: AnimationEffectKeys;
|
|
363
|
+
maxRange: RangeTypes;
|
|
364
|
+
}
|
|
365
|
+
export {};
|
|
361
366
|
//# sourceMappingURL=item.types.d.ts.map
|