koishi-plugin-ggcevo-game 1.4.32 → 1.4.34
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/lib/boss/BattleEffectProcessor.d.ts +418 -0
- package/lib/boss/attackhandling.d.ts +7 -11
- package/lib/boss/boss.d.ts +8 -175
- package/lib/boss/passive.d.ts +207 -269
- package/lib/boss/passivehandler.d.ts +52 -34
- package/lib/database.d.ts +5 -4
- package/lib/index.js +1984 -1982
- package/lib/tasks.d.ts +40 -40
- package/package.json +1 -1
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
export interface BattleStatistics {
|
|
2
|
+
name: string;
|
|
3
|
+
hpChange: number;
|
|
4
|
+
energyChange: number;
|
|
5
|
+
tagsAdded: string[];
|
|
6
|
+
tagsRemoved: string[];
|
|
7
|
+
skillsAdded: string[];
|
|
8
|
+
skillsRemoved: string[];
|
|
9
|
+
skillStacksChanged: number;
|
|
10
|
+
statusLayersChanged: number;
|
|
11
|
+
radiationLayersChange: number;
|
|
12
|
+
coldLayersChange: number;
|
|
13
|
+
lastWeaponName: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const battleStatsMap: Record<string, BattleStatistics>;
|
|
16
|
+
export declare const BattleEffectProcessor: {
|
|
17
|
+
handleWeakForm: (targetBoss: any) => {
|
|
18
|
+
buffMultiplier: number;
|
|
19
|
+
messages: string[];
|
|
20
|
+
};
|
|
21
|
+
handleAlienShell: (targetBoss: any) => {
|
|
22
|
+
nerfMultiplier: number;
|
|
23
|
+
messages: string[];
|
|
24
|
+
};
|
|
25
|
+
handleIsolated: (targetBoss: any, activeBosses: any[]) => {
|
|
26
|
+
buffMultiplier: number;
|
|
27
|
+
messages: string[];
|
|
28
|
+
};
|
|
29
|
+
handleFrostRegeneration: (targetBoss: any, activeBosses: any[]) => {
|
|
30
|
+
messages: string[];
|
|
31
|
+
targetUpdates?: {
|
|
32
|
+
name: string;
|
|
33
|
+
updates: Partial<BattleStatistics>;
|
|
34
|
+
};
|
|
35
|
+
otherUpdates: Array<{
|
|
36
|
+
name: string;
|
|
37
|
+
updates: Partial<BattleStatistics>;
|
|
38
|
+
}>;
|
|
39
|
+
} | null;
|
|
40
|
+
handleFrostAura: (targetBoss: any, activeBosses: any[]) => {
|
|
41
|
+
messages: string[];
|
|
42
|
+
targetUpdates?: {
|
|
43
|
+
name: string;
|
|
44
|
+
updates: Partial<BattleStatistics>;
|
|
45
|
+
};
|
|
46
|
+
otherUpdates: Array<{
|
|
47
|
+
name: string;
|
|
48
|
+
updates: Partial<BattleStatistics>;
|
|
49
|
+
}>;
|
|
50
|
+
} | null;
|
|
51
|
+
handleFrostEvolution: (targetBoss: any, weaponName: string, damage: number) => {
|
|
52
|
+
isImmune: boolean;
|
|
53
|
+
messages: string[];
|
|
54
|
+
targetUpdates: {
|
|
55
|
+
name: string;
|
|
56
|
+
updates: Partial<BattleStatistics>;
|
|
57
|
+
} | null;
|
|
58
|
+
} | null;
|
|
59
|
+
handleFrostHell: (targetBoss: any) => {
|
|
60
|
+
nerfMultiplier: number;
|
|
61
|
+
messages: string[];
|
|
62
|
+
};
|
|
63
|
+
handleStressShellI: (targetBoss: any) => {
|
|
64
|
+
nerfMultiplier: number;
|
|
65
|
+
messages: string[];
|
|
66
|
+
};
|
|
67
|
+
handleStressShellII: (targetBoss: any) => {
|
|
68
|
+
nerfMultiplier: number;
|
|
69
|
+
messages: string[];
|
|
70
|
+
};
|
|
71
|
+
handleSurvivalInstinctI: (targetBoss: any) => {
|
|
72
|
+
messages: string[];
|
|
73
|
+
targetUpdates: {
|
|
74
|
+
name: string;
|
|
75
|
+
updates: Partial<BattleStatistics>;
|
|
76
|
+
} | null;
|
|
77
|
+
} | null;
|
|
78
|
+
handleSurvivalInstinctII: (targetBoss: any) => {
|
|
79
|
+
messages: string[];
|
|
80
|
+
targetUpdates: {
|
|
81
|
+
name: string;
|
|
82
|
+
updates: Partial<BattleStatistics>;
|
|
83
|
+
} | null;
|
|
84
|
+
} | null;
|
|
85
|
+
handleColdAdaptation: (targetBoss: any, weaponName: string) => {
|
|
86
|
+
isImmune: boolean;
|
|
87
|
+
messages: string[];
|
|
88
|
+
targetUpdates: {
|
|
89
|
+
name: string;
|
|
90
|
+
updates: Partial<BattleStatistics>;
|
|
91
|
+
} | null;
|
|
92
|
+
} | null;
|
|
93
|
+
handleInfectedSpaceStation: (targetBoss: any, activeBosses: any[]) => {
|
|
94
|
+
nerfMultiplier: number;
|
|
95
|
+
messages: string[];
|
|
96
|
+
};
|
|
97
|
+
handleVirusCloud: (targetBoss: any) => {
|
|
98
|
+
nerfMultiplier: number;
|
|
99
|
+
messages: string[];
|
|
100
|
+
};
|
|
101
|
+
handleMoldGrowth: (targetBoss: any, activeBosses: any[]) => {
|
|
102
|
+
messages: string[];
|
|
103
|
+
spaceStationUpdates: {
|
|
104
|
+
name: string;
|
|
105
|
+
updates: Partial<BattleStatistics>;
|
|
106
|
+
} | null;
|
|
107
|
+
} | null;
|
|
108
|
+
handleSentryGun: (targetBoss: any, activeBosses: any[]) => {
|
|
109
|
+
messages: string[];
|
|
110
|
+
targetUpdates: {
|
|
111
|
+
name: string;
|
|
112
|
+
updates: Partial<BattleStatistics>;
|
|
113
|
+
} | null;
|
|
114
|
+
otherUpdates: Array<{
|
|
115
|
+
name: string;
|
|
116
|
+
updates: Partial<BattleStatistics>;
|
|
117
|
+
}>;
|
|
118
|
+
} | null;
|
|
119
|
+
handleStructuralArmor: (targetBoss: any, weaponData: any) => {
|
|
120
|
+
nerfMultiplier: number;
|
|
121
|
+
messages: string[];
|
|
122
|
+
};
|
|
123
|
+
handleVampireSaliva: (targetBoss: any) => {
|
|
124
|
+
nerfMultiplier: number;
|
|
125
|
+
messages: string[];
|
|
126
|
+
targetUpdates: {
|
|
127
|
+
name: string;
|
|
128
|
+
updates: Partial<BattleStatistics>;
|
|
129
|
+
} | null;
|
|
130
|
+
} | null;
|
|
131
|
+
handleFeeding: (targetBoss: any) => {
|
|
132
|
+
messages: string[];
|
|
133
|
+
targetUpdates: {
|
|
134
|
+
name: string;
|
|
135
|
+
updates: Partial<BattleStatistics>;
|
|
136
|
+
} | null;
|
|
137
|
+
} | null;
|
|
138
|
+
handleBloodlust: (targetBoss: any) => {
|
|
139
|
+
nerfMultiplier: number;
|
|
140
|
+
messages: string[];
|
|
141
|
+
targetUpdates: {
|
|
142
|
+
name: string;
|
|
143
|
+
updates: Partial<BattleStatistics>;
|
|
144
|
+
} | null;
|
|
145
|
+
} | null;
|
|
146
|
+
handleVomit: (targetBoss: any) => {
|
|
147
|
+
buffMultiplier: number;
|
|
148
|
+
messages: string[];
|
|
149
|
+
};
|
|
150
|
+
handleSuperconductor: (targetBoss: any) => {
|
|
151
|
+
messages: string[];
|
|
152
|
+
targetUpdates: {
|
|
153
|
+
name: string;
|
|
154
|
+
updates: Partial<BattleStatistics>;
|
|
155
|
+
} | null;
|
|
156
|
+
} | null;
|
|
157
|
+
handleEnergySiphon: (targetBoss: any) => {
|
|
158
|
+
nerfMultiplier: number;
|
|
159
|
+
messages: string[];
|
|
160
|
+
};
|
|
161
|
+
handleEnergyAbsorption: (targetBoss: any) => {
|
|
162
|
+
nerfMultiplier: number;
|
|
163
|
+
messages: string[];
|
|
164
|
+
};
|
|
165
|
+
handleElectricField: (targetBoss: any) => {
|
|
166
|
+
isImmune: boolean;
|
|
167
|
+
messages: string[];
|
|
168
|
+
};
|
|
169
|
+
handleElectricShockwave: (targetBoss: any) => {
|
|
170
|
+
messages: string[];
|
|
171
|
+
targetUpdates: {
|
|
172
|
+
name: string;
|
|
173
|
+
updates: Partial<BattleStatistics>;
|
|
174
|
+
} | null;
|
|
175
|
+
} | null;
|
|
176
|
+
handlePulse: (targetBoss: any, activeBosses: any[]) => {
|
|
177
|
+
messages: string[];
|
|
178
|
+
otherUpdates: Array<{
|
|
179
|
+
name: string;
|
|
180
|
+
updates: Partial<BattleStatistics>;
|
|
181
|
+
}>;
|
|
182
|
+
} | null;
|
|
183
|
+
handleEnergyBlackhole: (targetBoss: any) => {
|
|
184
|
+
nerfMultiplier: number;
|
|
185
|
+
messages: string[];
|
|
186
|
+
};
|
|
187
|
+
handleFlameAlien: (targetBoss: any, weaponName: string, damage: number) => {
|
|
188
|
+
isImmune: boolean;
|
|
189
|
+
messages: string[];
|
|
190
|
+
targetUpdates: {
|
|
191
|
+
name: string;
|
|
192
|
+
updates: Partial<BattleStatistics>;
|
|
193
|
+
} | null;
|
|
194
|
+
} | null;
|
|
195
|
+
handleColossalRampage: (targetBoss: any) => {
|
|
196
|
+
nerfMultiplier: number;
|
|
197
|
+
messages: string[];
|
|
198
|
+
};
|
|
199
|
+
handleBurningSlime: (targetBoss: any, weaponName: string) => {
|
|
200
|
+
messages: string[];
|
|
201
|
+
targetUpdates: {
|
|
202
|
+
name: string;
|
|
203
|
+
updates: Partial<BattleStatistics>;
|
|
204
|
+
} | null;
|
|
205
|
+
isHighStackHeal: boolean;
|
|
206
|
+
} | null;
|
|
207
|
+
handleCorrosiveBile: (targetBoss: any, activeBosses: any[]) => {
|
|
208
|
+
messages: string[];
|
|
209
|
+
targetUpdates: {
|
|
210
|
+
name: string;
|
|
211
|
+
updates: Partial<BattleStatistics>;
|
|
212
|
+
} | null;
|
|
213
|
+
otherUpdates: Array<{
|
|
214
|
+
name: string;
|
|
215
|
+
updates: Partial<BattleStatistics>;
|
|
216
|
+
}>;
|
|
217
|
+
} | null;
|
|
218
|
+
handleFlameBreath: (targetBoss: any, activeBosses: any[]) => {
|
|
219
|
+
messages: string[];
|
|
220
|
+
targetUpdates: {
|
|
221
|
+
name: string;
|
|
222
|
+
updates: Partial<BattleStatistics>;
|
|
223
|
+
} | null;
|
|
224
|
+
otherUpdates: Array<{
|
|
225
|
+
name: string;
|
|
226
|
+
updates: Partial<BattleStatistics>;
|
|
227
|
+
}>;
|
|
228
|
+
} | null;
|
|
229
|
+
handleSolarFlare: (targetBoss: any, weaponName: string, damage: number, activeBosses: any[]) => {
|
|
230
|
+
isImmune: boolean;
|
|
231
|
+
messages: string[];
|
|
232
|
+
targetUpdates: {
|
|
233
|
+
name: string;
|
|
234
|
+
updates: Partial<BattleStatistics>;
|
|
235
|
+
} | null;
|
|
236
|
+
} | null;
|
|
237
|
+
handleBurningBurrow: (targetBoss: any) => {
|
|
238
|
+
messages: string[];
|
|
239
|
+
targetUpdates: {
|
|
240
|
+
name: string;
|
|
241
|
+
updates: Partial<BattleStatistics>;
|
|
242
|
+
} | null;
|
|
243
|
+
} | null;
|
|
244
|
+
handleInfernalBomb: (targetBoss: any, activeBosses: any[]) => {
|
|
245
|
+
nerfMultiplier: number;
|
|
246
|
+
messages: string[];
|
|
247
|
+
};
|
|
248
|
+
handleHunterAlien: (targetBoss: any, activeBosses: any[], weaponName: string) => {
|
|
249
|
+
buffMultiplier: number;
|
|
250
|
+
nerfMultiplier: number;
|
|
251
|
+
isImmune: boolean;
|
|
252
|
+
messages: string[];
|
|
253
|
+
};
|
|
254
|
+
handleRampage: (targetBoss: any) => {
|
|
255
|
+
nerfMultiplier: number;
|
|
256
|
+
messages: string[];
|
|
257
|
+
};
|
|
258
|
+
handleDisguise: (targetBoss: any, weaponName: string) => {
|
|
259
|
+
nerfMultiplier: number;
|
|
260
|
+
messages: string[];
|
|
261
|
+
targetUpdates: {
|
|
262
|
+
name: string;
|
|
263
|
+
updates: Partial<BattleStatistics>;
|
|
264
|
+
} | null;
|
|
265
|
+
} | null;
|
|
266
|
+
handleDeadlyHit: (targetBoss: any) => {
|
|
267
|
+
isImmune: boolean;
|
|
268
|
+
messages: string[];
|
|
269
|
+
};
|
|
270
|
+
/** 星界之风处理(概率群体回复)- 修正版 */
|
|
271
|
+
handleAstralWind: (targetBoss: any, activeBosses: any[], doubleChance: boolean) => {
|
|
272
|
+
messages: string[];
|
|
273
|
+
otherUpdates: Array<{
|
|
274
|
+
name: string;
|
|
275
|
+
updates: Partial<BattleStatistics>;
|
|
276
|
+
}>;
|
|
277
|
+
} | null;
|
|
278
|
+
/** 心灵狂热处理(低生命减伤和概率强化)- 修正版 */
|
|
279
|
+
handleMindFrenzy: (targetBoss: any) => {
|
|
280
|
+
nerfMultiplier: number;
|
|
281
|
+
doubleAstralWind: boolean;
|
|
282
|
+
messages: string[];
|
|
283
|
+
};
|
|
284
|
+
/** 宇宙能量处理(伤害值转能量/生命) */
|
|
285
|
+
handleCosmicEnergy: (targetBoss: any, activeBosses: any[], damage: number) => {
|
|
286
|
+
messages: string[];
|
|
287
|
+
targetUpdates: {
|
|
288
|
+
name: string;
|
|
289
|
+
updates: Partial<BattleStatistics>;
|
|
290
|
+
} | null;
|
|
291
|
+
} | null;
|
|
292
|
+
/** 复苏处理(免疫死亡并回复) */
|
|
293
|
+
handleRevival: (targetBoss: any) => {
|
|
294
|
+
messages: string[];
|
|
295
|
+
targetUpdates: {
|
|
296
|
+
name: string;
|
|
297
|
+
updates: Partial<BattleStatistics>;
|
|
298
|
+
} | null;
|
|
299
|
+
} | null;
|
|
300
|
+
/** 光影之刃处理(层数叠加) */
|
|
301
|
+
handleBladeOfLight: (targetBoss: any) => {
|
|
302
|
+
messages: string[];
|
|
303
|
+
targetUpdates: {
|
|
304
|
+
name: string;
|
|
305
|
+
updates: Partial<BattleStatistics>;
|
|
306
|
+
} | null;
|
|
307
|
+
} | null;
|
|
308
|
+
/** 远古预兆处理(概率免疫能量伤害)- 增加boost参数 */
|
|
309
|
+
handleAncientOmen: (targetBoss: any, weaponData: any, boost?: number) => {
|
|
310
|
+
isImmune: boolean;
|
|
311
|
+
messages: string[];
|
|
312
|
+
targetUpdates: {
|
|
313
|
+
name: string;
|
|
314
|
+
updates: Partial<BattleStatistics>;
|
|
315
|
+
} | null;
|
|
316
|
+
} | null;
|
|
317
|
+
/** 闪电冲锋处理(提升其他技能概率) - 修正版 */
|
|
318
|
+
handleLightningCharge: (targetBoss: any) => {
|
|
319
|
+
ancientOmenBoost: number;
|
|
320
|
+
psychicForgeBoost: number;
|
|
321
|
+
messages: string[];
|
|
322
|
+
};
|
|
323
|
+
/** 超视距穿梭处理(层数相关伤害调整) */
|
|
324
|
+
handleHyperRangeShift: (targetBoss: any) => {
|
|
325
|
+
nerfMultiplier: number;
|
|
326
|
+
buffMultiplier: number;
|
|
327
|
+
messages: string[];
|
|
328
|
+
};
|
|
329
|
+
/** 灵能构造炉处理(随机获得技能)- 增加boost参数 */
|
|
330
|
+
handlePsychicForge: (targetBoss: any, boost?: number) => {
|
|
331
|
+
messages: string[];
|
|
332
|
+
newSkill: string | null;
|
|
333
|
+
targetUpdates: {
|
|
334
|
+
name: string;
|
|
335
|
+
updates: Partial<BattleStatistics>;
|
|
336
|
+
} | null;
|
|
337
|
+
} | null;
|
|
338
|
+
/** 天启超载护盾处理(层数相关群体回复) */
|
|
339
|
+
handleOverdriveShield: (targetBoss: any, activeBosses: any[]) => {
|
|
340
|
+
messages: string[];
|
|
341
|
+
otherUpdates: Array<{
|
|
342
|
+
name: string;
|
|
343
|
+
updates: Partial<BattleStatistics>;
|
|
344
|
+
}>;
|
|
345
|
+
} | null;
|
|
346
|
+
/** 塌缩脉冲处理(额外叠加层数) */
|
|
347
|
+
handleCollapsingPulse: (targetBoss: any) => {
|
|
348
|
+
messages: string[];
|
|
349
|
+
targetUpdates: {
|
|
350
|
+
name: string;
|
|
351
|
+
updates: Partial<BattleStatistics>;
|
|
352
|
+
} | null;
|
|
353
|
+
} | null;
|
|
354
|
+
/** 地毯式轰炸处理 */
|
|
355
|
+
handleCarpetBombing: (targetBoss: any) => {
|
|
356
|
+
nerfMultiplier: number;
|
|
357
|
+
messages: string[];
|
|
358
|
+
};
|
|
359
|
+
/** 轰炸引导处理(层数相关能量回复) */
|
|
360
|
+
handleBombardmentGuide: (targetBoss: any) => {
|
|
361
|
+
messages: string[];
|
|
362
|
+
targetUpdates: {
|
|
363
|
+
name: string;
|
|
364
|
+
updates: Partial<BattleStatistics>;
|
|
365
|
+
} | null;
|
|
366
|
+
} | null;
|
|
367
|
+
handleRadiationEffect: (targetBoss: any, weaponName: string) => {
|
|
368
|
+
messages: string[];
|
|
369
|
+
targetUpdates: {
|
|
370
|
+
name: string;
|
|
371
|
+
updates: Partial<BattleStatistics>;
|
|
372
|
+
} | null;
|
|
373
|
+
buffMultiplier: number;
|
|
374
|
+
layerAdded: boolean;
|
|
375
|
+
} | null;
|
|
376
|
+
handleColdEffect: (targetBoss: any, weaponName: string) => {
|
|
377
|
+
messages: string[];
|
|
378
|
+
targetUpdates: {
|
|
379
|
+
name: string;
|
|
380
|
+
updates: Partial<BattleStatistics>;
|
|
381
|
+
} | null;
|
|
382
|
+
buffMultiplier: number;
|
|
383
|
+
layerAdded: boolean;
|
|
384
|
+
} | null;
|
|
385
|
+
handleWeaponEnergyDrain: (targetBoss: any, weaponName: string) => {
|
|
386
|
+
messages: string[];
|
|
387
|
+
targetUpdates: {
|
|
388
|
+
name: string;
|
|
389
|
+
updates: Partial<BattleStatistics>;
|
|
390
|
+
} | null;
|
|
391
|
+
success: boolean;
|
|
392
|
+
} | null;
|
|
393
|
+
handleWeaponLayerReduction: (targetBoss: any, weaponName: string) => {
|
|
394
|
+
messages: string[];
|
|
395
|
+
targetUpdates: {
|
|
396
|
+
name: string;
|
|
397
|
+
updates: Partial<BattleStatistics>;
|
|
398
|
+
} | null;
|
|
399
|
+
reductionSuccess: boolean;
|
|
400
|
+
} | null;
|
|
401
|
+
};
|
|
402
|
+
/**
|
|
403
|
+
* 统一处理所有被动效果(包含伤害修正、免疫检查、状态更新等)
|
|
404
|
+
* @param targetBoss 当前被攻击的Boss对象
|
|
405
|
+
* @param weaponName 使用的武器名称
|
|
406
|
+
* @param damage 武器造成的原始伤害值
|
|
407
|
+
* @param activeBosses 当前所有活跃Boss列表
|
|
408
|
+
* @returns 包含最终伤害值和所有效果消息的对象
|
|
409
|
+
*/
|
|
410
|
+
export declare function applyPassiveEffects(targetBoss: any, activeBosses: any[], weaponName: string, damage: number, ignoreRate: number): {
|
|
411
|
+
finalDamage: number;
|
|
412
|
+
messages: string[];
|
|
413
|
+
radiationLayerAdded: boolean;
|
|
414
|
+
coldLayerAdded: boolean;
|
|
415
|
+
energyDrained: boolean;
|
|
416
|
+
layerReduced: boolean;
|
|
417
|
+
bileDetonationTrigger: boolean;
|
|
418
|
+
};
|
|
@@ -1,33 +1,30 @@
|
|
|
1
1
|
import { Context } from 'koishi';
|
|
2
2
|
import { Config } from '../index';
|
|
3
|
-
export declare function handlePrimaryAttack(ctx: Context, session: any,
|
|
4
|
-
initialDamage:
|
|
5
|
-
currentHP:
|
|
3
|
+
export declare function handlePrimaryAttack(ctx: Context, session: any, handle: any, config: Config, equippedWeapon: any, targetBoss: any, activeBosses: any[], weaponName: string): Promise<{
|
|
4
|
+
initialDamage: number;
|
|
5
|
+
currentHP: number;
|
|
6
6
|
isDefeated: boolean;
|
|
7
|
-
damage: any;
|
|
8
7
|
hasCrit: boolean;
|
|
9
8
|
effectMessage: string[];
|
|
10
|
-
passiveMessages:
|
|
9
|
+
passiveMessages: string[];
|
|
11
10
|
radiationApplied: boolean;
|
|
12
11
|
freezing: boolean;
|
|
13
|
-
bileStacks:
|
|
12
|
+
bileStacks: boolean;
|
|
14
13
|
pulseApplied: boolean;
|
|
15
14
|
arcApplied: boolean;
|
|
16
15
|
}>;
|
|
17
|
-
export declare function handleScatterAttack(ctx: Context, session: any,
|
|
16
|
+
export declare function handleScatterAttack(ctx: Context, session: any, handle: string, config: Config, equippedWeapon: any, targetBoss: any, weaponName: string, activeBosses: any[]): Promise<{
|
|
18
17
|
scatterEffectMessages: string[];
|
|
19
18
|
extraDamages: {
|
|
20
19
|
name: string;
|
|
21
20
|
damage: number;
|
|
22
21
|
}[];
|
|
23
22
|
actuallyDead: string[];
|
|
24
|
-
scatterBroadcast: any;
|
|
25
23
|
taskUpdates: {
|
|
26
24
|
taskId: number;
|
|
27
25
|
count: number;
|
|
28
26
|
}[];
|
|
29
27
|
}>;
|
|
30
|
-
export declare function applyAttackResults(ctx: Context, targetBoss: any, result: any): Promise<void>;
|
|
31
28
|
export declare function handleDeathTargets(ctx: Context, deadTargets: any[], killerName: string, killerHandle: string): Promise<{
|
|
32
29
|
bossBroadcast: string[];
|
|
33
30
|
cleanerBroadcast: string[];
|
|
@@ -40,8 +37,7 @@ export declare function calculateRewards(ctx: Context, handle: string, totalDama
|
|
|
40
37
|
}>;
|
|
41
38
|
export declare function updateSignRecord(ctx: Context, handle: string, reward: number): Promise<void>;
|
|
42
39
|
export declare function buildResultMessage(session: any, weaponName: string, targetBoss: any, primaryResult: any, scatterResult: any, finalReward: number, maxHP: number, careerMessage: string, techMessage: string, redcrystalMessage: string): string;
|
|
43
|
-
export declare function handleBroadcasts(ctx: Context, groupIds: string[],
|
|
44
|
-
export declare function applyScatterResults(ctx: Context, session: any, equippedWeapon: any, targetBoss: any, scatterResult: any): Promise<string[]>;
|
|
40
|
+
export declare function handleBroadcasts(ctx: Context, groupIds: string[], bossEventBroadcast: string[] | string | null, cleanerRewardBroadcast: string[] | null, isPrimaryAttack: boolean): Promise<void>;
|
|
45
41
|
export declare function updateBossDamageRecord(ctx: Context, handle: string, playerName: string, bossGroupId: number, damageAmount: number): Promise<void>;
|
|
46
42
|
export declare function updateTaskProgress(ctx: Context, handle: string, taskUpdates: {
|
|
47
43
|
taskId: number;
|
package/lib/boss/boss.d.ts
CHANGED
|
@@ -1,186 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
export type BossTag = '重甲' | '轻甲' | '护盾' | '生物' | '机械' | '灵能' | '惧热' | '惧寒' | '异形' | '建筑' | '重型';
|
|
3
|
-
export type PassiveEffect = keyof typeof passiveConfig;
|
|
4
|
-
export type BossPoolItem = {
|
|
5
|
-
id: number;
|
|
6
|
-
main: BossEntity;
|
|
7
|
-
minions: BossEntity[];
|
|
8
|
-
};
|
|
9
|
-
export type BossEntity = {
|
|
10
|
-
name: string;
|
|
11
|
-
type: '主宰' | '子代';
|
|
12
|
-
maxHP: number;
|
|
13
|
-
maxEnergy: number;
|
|
14
|
-
tags: BossTag[];
|
|
15
|
-
passive: PassiveEffect[];
|
|
16
|
-
};
|
|
17
|
-
export declare const bossPool: readonly [{
|
|
18
|
-
id: number;
|
|
19
|
-
main: {
|
|
20
|
-
name: string;
|
|
21
|
-
type: "主宰";
|
|
22
|
-
maxHP: number;
|
|
23
|
-
maxEnergy: number;
|
|
24
|
-
tags: ("重甲" | "生物" | "异形")[];
|
|
25
|
-
passive: "异形甲壳"[];
|
|
26
|
-
};
|
|
27
|
-
minions: {
|
|
28
|
-
name: string;
|
|
29
|
-
type: "子代";
|
|
30
|
-
maxHP: number;
|
|
31
|
-
maxEnergy: number;
|
|
32
|
-
tags: ("重甲" | "生物" | "异形" | "重型")[];
|
|
33
|
-
passive: ("弱化形态" | "异形甲壳")[];
|
|
34
|
-
}[];
|
|
35
|
-
}, {
|
|
36
|
-
id: number;
|
|
37
|
-
main: {
|
|
38
|
-
name: string;
|
|
39
|
-
type: "主宰";
|
|
40
|
-
maxHP: number;
|
|
41
|
-
maxEnergy: number;
|
|
42
|
-
tags: ("重甲" | "生物" | "惧热" | "异形" | "重型")[];
|
|
43
|
-
passive: ("冰霜进化" | "冰霜环绕")[];
|
|
44
|
-
};
|
|
45
|
-
minions: {
|
|
46
|
-
name: string;
|
|
47
|
-
type: "子代";
|
|
48
|
-
maxHP: number;
|
|
49
|
-
maxEnergy: number;
|
|
50
|
-
tags: ("生物" | "惧热" | "异形")[];
|
|
51
|
-
passive: ("弱化形态" | "冰霜回复" | "冰霜进化")[];
|
|
52
|
-
}[];
|
|
53
|
-
}, {
|
|
54
|
-
id: number;
|
|
55
|
-
main: {
|
|
56
|
-
name: string;
|
|
57
|
-
type: "主宰";
|
|
58
|
-
maxHP: number;
|
|
59
|
-
maxEnergy: number;
|
|
60
|
-
tags: ("重甲" | "生物" | "异形" | "重型")[];
|
|
61
|
-
passive: ("应激甲壳II" | "求生本能II" | "冷适应")[];
|
|
62
|
-
};
|
|
63
|
-
minions: {
|
|
64
|
-
name: string;
|
|
65
|
-
type: "子代";
|
|
66
|
-
maxHP: number;
|
|
67
|
-
maxEnergy: number;
|
|
68
|
-
tags: ("重甲" | "生物" | "异形" | "重型")[];
|
|
69
|
-
passive: ("弱化形态" | "应激甲壳I" | "求生本能I" | "冷适应")[];
|
|
70
|
-
}[];
|
|
71
|
-
}, {
|
|
72
|
-
id: number;
|
|
73
|
-
main: {
|
|
74
|
-
name: string;
|
|
75
|
-
type: "主宰";
|
|
76
|
-
maxHP: number;
|
|
77
|
-
maxEnergy: number;
|
|
78
|
-
tags: ("重甲" | "生物" | "机械" | "异形")[];
|
|
79
|
-
passive: ("感染空间站" | "病毒云" | "霉菌滋生")[];
|
|
80
|
-
};
|
|
81
|
-
minions: ({
|
|
82
|
-
name: string;
|
|
83
|
-
type: "子代";
|
|
84
|
-
maxHP: number;
|
|
85
|
-
maxEnergy: number;
|
|
86
|
-
tags: ("重甲" | "生物" | "机械" | "异形")[];
|
|
87
|
-
passive: ("弱化形态" | "病毒云" | "霉菌滋生")[];
|
|
88
|
-
} | {
|
|
89
|
-
name: string;
|
|
90
|
-
type: "子代";
|
|
91
|
-
maxHP: number;
|
|
92
|
-
maxEnergy: number;
|
|
93
|
-
tags: ("重甲" | "机械" | "建筑")[];
|
|
94
|
-
passive: ("岗哨机枪" | "结构装甲")[];
|
|
95
|
-
})[];
|
|
96
|
-
}, {
|
|
97
|
-
id: number;
|
|
98
|
-
main: {
|
|
99
|
-
name: string;
|
|
100
|
-
type: "主宰";
|
|
101
|
-
maxHP: number;
|
|
102
|
-
maxEnergy: number;
|
|
103
|
-
tags: ("生物" | "异形")[];
|
|
104
|
-
passive: ("吸血唾液" | "进食" | "嗜血狂暴" | "吐血")[];
|
|
105
|
-
};
|
|
106
|
-
minions: {
|
|
107
|
-
name: string;
|
|
108
|
-
type: "子代";
|
|
109
|
-
maxHP: number;
|
|
110
|
-
maxEnergy: number;
|
|
111
|
-
tags: ("生物" | "异形")[];
|
|
112
|
-
passive: ("弱化形态" | "吸血唾液" | "进食" | "吐血")[];
|
|
113
|
-
}[];
|
|
114
|
-
}, {
|
|
115
|
-
id: number;
|
|
116
|
-
main: {
|
|
117
|
-
name: string;
|
|
118
|
-
type: "主宰";
|
|
119
|
-
maxHP: number;
|
|
120
|
-
maxEnergy: number;
|
|
121
|
-
tags: ("护盾" | "灵能" | "异形" | "重型")[];
|
|
122
|
-
passive: ("超导体" | "能源虹吸" | "电能立场" | "电能冲击波" | "脉冲" | "能量黑洞")[];
|
|
123
|
-
};
|
|
124
|
-
minions: {
|
|
125
|
-
name: string;
|
|
126
|
-
type: "子代";
|
|
127
|
-
maxHP: number;
|
|
128
|
-
maxEnergy: number;
|
|
129
|
-
tags: ("护盾" | "灵能" | "异形")[];
|
|
130
|
-
passive: ("弱化形态" | "超导体" | "能量虹吸" | "能量黑洞")[];
|
|
131
|
-
}[];
|
|
132
|
-
}, {
|
|
133
|
-
id: number;
|
|
134
|
-
main: {
|
|
135
|
-
name: string;
|
|
136
|
-
type: "主宰";
|
|
137
|
-
maxHP: number;
|
|
138
|
-
maxEnergy: number;
|
|
139
|
-
tags: ("重甲" | "生物" | "惧寒" | "异形" | "重型")[];
|
|
140
|
-
passive: ("火焰异形" | "庞兽狂暴" | "灼烧粘液" | "火焰吐息" | "太阳耀斑" | "炼狱爆弹")[];
|
|
141
|
-
};
|
|
142
|
-
minions: {
|
|
143
|
-
name: string;
|
|
144
|
-
type: "子代";
|
|
145
|
-
maxHP: number;
|
|
146
|
-
maxEnergy: number;
|
|
147
|
-
tags: ("重甲" | "生物" | "惧寒" | "异形")[];
|
|
148
|
-
passive: ("弱化形态" | "火焰异形" | "灼烧粘液" | "腐蚀胆汁" | "燃烧潜地")[];
|
|
149
|
-
}[];
|
|
150
|
-
}, {
|
|
151
|
-
id: number;
|
|
152
|
-
main: {
|
|
153
|
-
name: string;
|
|
154
|
-
type: "主宰";
|
|
155
|
-
maxHP: number;
|
|
156
|
-
maxEnergy: number;
|
|
157
|
-
tags: ("生物" | "异形")[];
|
|
158
|
-
passive: ("猎手异形" | "狂暴" | "伪装" | "致命一击")[];
|
|
159
|
-
};
|
|
160
|
-
minions: {
|
|
161
|
-
name: string;
|
|
162
|
-
type: "子代";
|
|
163
|
-
maxHP: number;
|
|
164
|
-
maxEnergy: number;
|
|
165
|
-
tags: ("生物" | "异形")[];
|
|
166
|
-
passive: ("弱化形态" | "猎手异形" | "狂暴" | "伪装")[];
|
|
167
|
-
}[];
|
|
168
|
-
}, {
|
|
1
|
+
export declare const bossPool: {
|
|
169
2
|
id: number;
|
|
170
3
|
main: {
|
|
171
4
|
name: string;
|
|
172
|
-
type:
|
|
5
|
+
type: string;
|
|
173
6
|
maxHP: number;
|
|
174
7
|
maxEnergy: number;
|
|
175
|
-
tags:
|
|
176
|
-
passive:
|
|
8
|
+
tags: string[];
|
|
9
|
+
passive: string[];
|
|
177
10
|
};
|
|
178
11
|
minions: {
|
|
179
12
|
name: string;
|
|
180
|
-
type:
|
|
13
|
+
type: string;
|
|
181
14
|
maxHP: number;
|
|
182
15
|
maxEnergy: number;
|
|
183
|
-
tags:
|
|
184
|
-
passive:
|
|
16
|
+
tags: string[];
|
|
17
|
+
passive: string[];
|
|
185
18
|
}[];
|
|
186
|
-
}];
|
|
19
|
+
}[];
|