koishi-plugin-ggcevo-game 1.4.45 → 1.4.47
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 +4 -1
- package/lib/boss/attackhandling.d.ts +7 -0
- package/lib/boss/damagecalculation.d.ts +1 -4
- package/lib/database.d.ts +14 -0
- package/lib/index.js +2870 -2605
- package/lib/utils.d.ts +3 -0
- package/package.json +1 -1
|
@@ -38,7 +38,10 @@ export declare const BattleEffectProcessor: {
|
|
|
38
38
|
buffMultiplier: number;
|
|
39
39
|
messages: string[];
|
|
40
40
|
};
|
|
41
|
-
handleFrostRegeneration: (targetBoss: any, activeBosses: any[]
|
|
41
|
+
handleFrostRegeneration: (targetBoss: any, activeBosses: any[], maxStatsMap: Record<string, {
|
|
42
|
+
maxHP: number;
|
|
43
|
+
maxEnergy: number;
|
|
44
|
+
}>) => {
|
|
42
45
|
messages: string[];
|
|
43
46
|
targetUpdates?: {
|
|
44
47
|
name: string;
|
|
@@ -44,3 +44,10 @@ export declare function updateTaskProgress(ctx: Context, handle: string, taskUpd
|
|
|
44
44
|
taskId: number;
|
|
45
45
|
count: number;
|
|
46
46
|
}[]): Promise<void>;
|
|
47
|
+
export declare function testAttackFunction(ctx: Context, session: any, handle: string, config: Config, equippedWeapon: any, targetBoss: any, activeBosses: any[], weaponName: string): Promise<{
|
|
48
|
+
initialDamage: number;
|
|
49
|
+
hasCrit: boolean;
|
|
50
|
+
effectMessage: string[];
|
|
51
|
+
passiveMessages: string[];
|
|
52
|
+
ignoreMessage: any[];
|
|
53
|
+
}>;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { Context } from 'koishi';
|
|
2
2
|
import { Config } from '../index';
|
|
3
3
|
export declare function calculateTotalDamage(ctx: Context, session: any, config: Config, // 添加配置参数
|
|
4
|
-
equippedWeapon: any, targetBoss: any
|
|
5
|
-
isTest?: boolean;
|
|
6
|
-
customTags?: string[];
|
|
7
|
-
}): Promise<{
|
|
4
|
+
equippedWeapon: any, targetBoss: any): Promise<{
|
|
8
5
|
damage: number;
|
|
9
6
|
hasCrit: boolean;
|
|
10
7
|
effectMessage: string[];
|
package/lib/database.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ declare module 'koishi' {
|
|
|
22
22
|
ggcevo_Mining: MiningRecord;
|
|
23
23
|
ggcevo_task: TaskProgress;
|
|
24
24
|
ggcevo_permissions: Permissions;
|
|
25
|
+
ggcevo_pk_protection: PKProtection;
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
export interface Backpack {
|
|
@@ -186,3 +187,16 @@ export interface Permissions {
|
|
|
186
187
|
legendarypermissions: number;
|
|
187
188
|
explosiondoorauthority: number;
|
|
188
189
|
}
|
|
190
|
+
export interface PKProtection {
|
|
191
|
+
id: number;
|
|
192
|
+
handle: string;
|
|
193
|
+
startTime: Date;
|
|
194
|
+
endTime: Date;
|
|
195
|
+
/**
|
|
196
|
+
* 保护状态(建议添加)
|
|
197
|
+
* active - 保护中
|
|
198
|
+
* expired - 已过期
|
|
199
|
+
* canceled - 手动取消
|
|
200
|
+
*/
|
|
201
|
+
status: 'active' | 'expired' | 'canceled';
|
|
202
|
+
}
|