koishi-plugin-ggcevo-game 1.4.37 → 1.4.39

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.
@@ -13,6 +13,18 @@ export interface BattleStatistics {
13
13
  lastWeaponName: string;
14
14
  }
15
15
  export declare const battleStatsMap: Record<string, BattleStatistics>;
16
+ /**
17
+ * 根据Boss名称获取其最大HP(maxHP)
18
+ * @param bossName 要查询的Boss名称(支持主宰或子代)
19
+ * @returns 对应Boss的maxHP(未找到时返回undefined)
20
+ */
21
+ export declare function getMaxHPByName(bossName: string): number | undefined;
22
+ /**
23
+ * 根据Boss名称获取其最大能量(maxEnergy)
24
+ * @param bossName 要查询的Boss名称(支持主宰或子代)
25
+ * @returns 对应Boss的maxEnergy(未找到时返回undefined)
26
+ */
27
+ export declare function getMaxEnergyByName(bossName: string): number | undefined;
16
28
  export declare const BattleEffectProcessor: {
17
29
  handleWeakForm: (targetBoss: any) => {
18
30
  buffMultiplier: number;
@@ -22,7 +34,7 @@ export declare const BattleEffectProcessor: {
22
34
  nerfMultiplier: number;
23
35
  messages: string[];
24
36
  };
25
- handleIsolated: (targetBoss: any, activeBosses: any[]) => {
37
+ handleIsolated: (targetBoss: any, activeBosses: any[], tempMark: boolean) => {
26
38
  buffMultiplier: number;
27
39
  messages: string[];
28
40
  };
@@ -162,7 +174,7 @@ export declare const BattleEffectProcessor: {
162
174
  nerfMultiplier: number;
163
175
  messages: string[];
164
176
  };
165
- handleElectricField: (targetBoss: any) => {
177
+ handleElectricField: (targetBoss: any, weaponData: any) => {
166
178
  isImmune: boolean;
167
179
  messages: string[];
168
180
  };
@@ -226,13 +238,14 @@ export declare const BattleEffectProcessor: {
226
238
  updates: Partial<BattleStatistics>;
227
239
  }>;
228
240
  } | null;
229
- handleSolarFlare: (targetBoss: any, weaponName: string, damage: number, activeBosses: any[]) => {
241
+ handleSolarFlare: (targetBoss: any, weaponName: string, activeBosses: any[]) => {
230
242
  isImmune: boolean;
231
243
  messages: string[];
232
244
  targetUpdates: {
233
245
  name: string;
234
246
  updates: Partial<BattleStatistics>;
235
247
  } | null;
248
+ tempMark: boolean;
236
249
  } | null;
237
250
  handleBurningBurrow: (targetBoss: any) => {
238
251
  messages: string[];
@@ -281,8 +294,7 @@ export declare const BattleEffectProcessor: {
281
294
  doubleAstralWind: boolean;
282
295
  messages: string[];
283
296
  };
284
- /** 宇宙能量处理(伤害值转能量/生命) */
285
- handleCosmicEnergy: (targetBoss: any, activeBosses: any[], damage: number) => {
297
+ handleCosmicEnergy: (targetBoss: any, damage: number) => {
286
298
  messages: string[];
287
299
  targetUpdates: {
288
300
  name: string;
@@ -306,7 +318,7 @@ export declare const BattleEffectProcessor: {
306
318
  } | null;
307
319
  } | null;
308
320
  /** 远古预兆处理(概率免疫能量伤害)- 增加boost参数 */
309
- handleAncientOmen: (targetBoss: any, weaponData: any, boost?: number) => {
321
+ handleAncientOmen: (targetBoss: any, weaponData: any, boost: number) => {
310
322
  isImmune: boolean;
311
323
  messages: string[];
312
324
  targetUpdates: {
@@ -355,6 +367,7 @@ export declare const BattleEffectProcessor: {
355
367
  handleCarpetBombing: (targetBoss: any) => {
356
368
  nerfMultiplier: number;
357
369
  messages: string[];
370
+ tempMark: boolean;
358
371
  };
359
372
  /** 轰炸引导处理(层数相关能量回复) */
360
373
  handleBombardmentGuide: (targetBoss: any) => {
@@ -16,7 +16,6 @@ export declare function handlePrimaryAttack(ctx: Context, session: any, handle:
16
16
  }>;
17
17
  export declare function handleScatterAttack(ctx: Context, session: any, handle: string, config: Config, equippedWeapon: any, targetBoss: any, weaponName: string, activeBosses: any[]): Promise<{
18
18
  scatterEffectMessages: string[];
19
- ignoreMessage: string[];
20
19
  extraDamages: {
21
20
  name: string;
22
21
  damage: number;