koishi-plugin-ggcevo-game 1.4.61 → 1.4.63
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 +22 -10
- package/lib/boss/boss.d.ts +6 -0
- package/lib/boss/damagecalculation.d.ts +1 -2
- package/lib/index.js +399 -278
- package/lib/tasks.d.ts +6 -11
- package/lib/weapons.d.ts +60 -15
- package/package.json +1 -1
|
@@ -27,6 +27,24 @@ export declare function getMaxHPByName(bossName: string): number | undefined;
|
|
|
27
27
|
*/
|
|
28
28
|
export declare function getMaxEnergyByName(bossName: string): number | undefined;
|
|
29
29
|
export declare function getMaxStacksByName(bossName: string): number | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* 根据Boss名称获取其最大护盾值(maxShield)
|
|
32
|
+
* @param bossName 要查询的Boss名称(支持主宰或子代)
|
|
33
|
+
* @returns 对应Boss的maxShield(未找到时返回undefined)
|
|
34
|
+
*/
|
|
35
|
+
export declare function getMaxShieldByName(bossName: string): number | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* 根据Boss名称获取其护甲值(armor)
|
|
38
|
+
* @param bossName 要查询的Boss名称(支持主宰或子代)
|
|
39
|
+
* @returns 对应Boss的armor值(未找到时返回undefined)
|
|
40
|
+
*/
|
|
41
|
+
export declare function getArmorByName(bossName: string): number | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* 根据Boss名称获取其护盾护甲值(shieldArmor)
|
|
44
|
+
* @param bossName 要查询的Boss名称(支持主宰或子代)
|
|
45
|
+
* @returns 对应Boss的shieldArmor值(未找到时返回undefined)
|
|
46
|
+
*/
|
|
47
|
+
export declare function getShieldArmorByName(bossName: string): number | undefined;
|
|
30
48
|
export declare const BattleEffectProcessor: {
|
|
31
49
|
handleWeakForm: (targetBoss: any) => {
|
|
32
50
|
buffMultiplier: number;
|
|
@@ -40,10 +58,7 @@ export declare const BattleEffectProcessor: {
|
|
|
40
58
|
buffMultiplier: number;
|
|
41
59
|
messages: string[];
|
|
42
60
|
};
|
|
43
|
-
handleFrostRegeneration: (targetBoss: any, activeBosses: any[],
|
|
44
|
-
maxHP: number;
|
|
45
|
-
maxEnergy: number;
|
|
46
|
-
}>) => {
|
|
61
|
+
handleFrostRegeneration: (targetBoss: any, activeBosses: any[], maxStatsForTarget: any) => {
|
|
47
62
|
messages: string[];
|
|
48
63
|
targetUpdates?: {
|
|
49
64
|
name: string;
|
|
@@ -395,10 +410,7 @@ export declare const BattleEffectProcessor: {
|
|
|
395
410
|
buffMultiplier: number;
|
|
396
411
|
layerAdded: boolean;
|
|
397
412
|
} | null;
|
|
398
|
-
handleWeaponEnergyDrain: (targetBoss: any, weaponName: string,
|
|
399
|
-
maxHP: number;
|
|
400
|
-
maxEnergy: number;
|
|
401
|
-
}>) => {
|
|
413
|
+
handleWeaponEnergyDrain: (targetBoss: any, weaponName: string, maxStatsForTarget: any) => {
|
|
402
414
|
messages: string[];
|
|
403
415
|
targetUpdates: {
|
|
404
416
|
name: string;
|
|
@@ -406,7 +418,7 @@ export declare const BattleEffectProcessor: {
|
|
|
406
418
|
} | null;
|
|
407
419
|
success: boolean;
|
|
408
420
|
} | null;
|
|
409
|
-
handleWeaponLayerReduction: (targetBoss: any, weaponName: string) => {
|
|
421
|
+
handleWeaponLayerReduction: (targetBoss: any, weaponName: string, maxStatsForTarget: any) => {
|
|
410
422
|
messages: string[];
|
|
411
423
|
targetUpdates: {
|
|
412
424
|
name: string;
|
|
@@ -489,7 +501,7 @@ export declare const BattleEffectProcessor: {
|
|
|
489
501
|
* @param activeBosses 当前所有活跃Boss列表
|
|
490
502
|
* @returns 包含最终伤害值和所有效果消息的对象
|
|
491
503
|
*/
|
|
492
|
-
export declare function applyPassiveEffects(targetBoss: any, activeBosses: any[], weaponName: string, damage: number, ignoreRate: number): {
|
|
504
|
+
export declare function applyPassiveEffects(targetBoss: any, activeBosses: any[], weaponName: string, damage: number, hasCrit: boolean, ignoreRate: number): {
|
|
493
505
|
finalDamage: number;
|
|
494
506
|
messages: string[];
|
|
495
507
|
radiationLayerAdded: boolean;
|
package/lib/boss/boss.d.ts
CHANGED
|
@@ -4,7 +4,10 @@ export declare const bossPool: {
|
|
|
4
4
|
name: string;
|
|
5
5
|
type: string;
|
|
6
6
|
maxHP: number;
|
|
7
|
+
maxShield: number;
|
|
7
8
|
maxEnergy: number;
|
|
9
|
+
armor: number;
|
|
10
|
+
shieldArmor: number;
|
|
8
11
|
maxStacks: number;
|
|
9
12
|
tags: string[];
|
|
10
13
|
passive: string[];
|
|
@@ -13,7 +16,10 @@ export declare const bossPool: {
|
|
|
13
16
|
name: string;
|
|
14
17
|
type: string;
|
|
15
18
|
maxHP: number;
|
|
19
|
+
maxShield: number;
|
|
16
20
|
maxEnergy: number;
|
|
21
|
+
armor: number;
|
|
22
|
+
shieldArmor: number;
|
|
17
23
|
maxStacks: number;
|
|
18
24
|
tags: string[];
|
|
19
25
|
passive: string[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Context } from 'koishi';
|
|
2
2
|
import { Config } from '../index';
|
|
3
|
-
export declare function calculateTotalDamage(ctx: Context, session: any, config: Config,
|
|
4
|
-
equippedWeapon: any, targetBoss: any): Promise<{
|
|
3
|
+
export declare function calculateTotalDamage(ctx: Context, session: any, config: Config, equippedWeapon: any, targetBoss: any): Promise<{
|
|
5
4
|
damage: number;
|
|
6
5
|
hasCrit: boolean;
|
|
7
6
|
effectMessage: string[];
|