koishi-plugin-ggcevo-game 1.4.38 → 1.4.40

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;
package/lib/database.d.ts CHANGED
@@ -1,53 +1,53 @@
1
1
  declare module 'koishi' {
2
2
  interface Tables {
3
- ggcevo_backpack: backpack;
4
- ggcevo_sign: sign;
5
- ggcevo_records: record;
6
- ggcevo_welfare: welfare;
7
- ggcevo_activity: Activity;
8
- ggcevo_rank: rank;
9
- ggcevo_Punishment: Punishment;
10
- ggcevo_exchange: exchange;
11
- ggcevo_adminbenefit: adminbenefit;
12
- ggcevo_blacklist: blacklist;
13
- ggcevo_pk: PKRecord;
14
- ggcevo_pk_logs: PKLog;
15
- ggcevo_equipment: equipment;
16
- ggcevo_boss: Boss;
17
- ggcevo_boss_damage: BossDamageRecord;
18
- ggcevo_Wish_Record: WishRecord;
19
- ggcevo_careers: careers;
20
- ggcevo_warehouse: warehouse;
21
- ggcevo_tech: tech;
22
- ggcevo_Mining: Mining;
23
- ggcevo_task: task;
24
- ggcevo_purchasepermissions: purchasepermissions;
3
+ ggcevo_backpack: Backpack;
4
+ ggcevo_sign: SignRecord;
5
+ ggcevo_records: GachaRecord;
6
+ ggcevo_welfare: WelfareClaim;
7
+ ggcevo_activity: ActivityInfo;
8
+ ggcevo_rank: RankRecord;
9
+ ggcevo_punishment: PunishmentRecord;
10
+ ggcevo_exchange: ExchangeLog;
11
+ ggcevo_adminbenefit: AdminBenefit;
12
+ ggcevo_blacklist: Blacklist;
13
+ ggcevo_pk: PKProfile;
14
+ ggcevo_pk_logs: PKLogs;
15
+ ggcevo_weapons: WeaponInventory;
16
+ ggcevo_boss: BossInfo;
17
+ ggcevo_boss_damage: BossDamage;
18
+ ggcevo_wish: WishRecord;
19
+ ggcevo_careers: CareerInfo;
20
+ ggcevo_warehouse: Warehouse;
21
+ ggcevo_tech: TechProgress;
22
+ ggcevo_Mining: MiningRecord;
23
+ ggcevo_task: TaskProgress;
24
+ ggcevo_permissions: Permissions;
25
25
  }
26
26
  }
27
- export interface backpack {
27
+ export interface Backpack {
28
28
  handle: string;
29
29
  itemId: number;
30
30
  quantity: number;
31
31
  }
32
- export interface sign {
32
+ export interface SignRecord {
33
33
  handle: string;
34
34
  lastSign: Date;
35
35
  monthlyDays: number;
36
36
  totalRewards: number;
37
37
  }
38
- export interface record {
38
+ export interface GachaRecord {
39
39
  handle: string;
40
40
  totalPulls: number;
41
41
  pityCounter: number;
42
42
  fullPityCount: number;
43
43
  hiddenawards: number;
44
44
  }
45
- export interface welfare {
45
+ export interface WelfareClaim {
46
46
  handle: string;
47
47
  activity: number;
48
48
  lastdate: Date;
49
49
  }
50
- export interface Activity {
50
+ export interface ActivityInfo {
51
51
  id: number;
52
52
  name: string;
53
53
  description: string;
@@ -58,7 +58,7 @@ export interface Activity {
58
58
  creator: string;
59
59
  status: '未开始' | '进行中' | '已结束';
60
60
  }
61
- export interface rank {
61
+ export interface RankRecord {
62
62
  handle: string;
63
63
  name: string;
64
64
  rank: number;
@@ -67,7 +67,7 @@ export interface rank {
67
67
  rankseason: string;
68
68
  Blacklist: boolean;
69
69
  }
70
- export interface Punishment {
70
+ export interface PunishmentRecord {
71
71
  id: number;
72
72
  name: string;
73
73
  handle: string;
@@ -78,7 +78,7 @@ export interface Punishment {
78
78
  date: string;
79
79
  comment?: string;
80
80
  }
81
- export interface exchange {
81
+ export interface ExchangeLog {
82
82
  userId: string;
83
83
  handle: string;
84
84
  item: string;
@@ -87,17 +87,17 @@ export interface exchange {
87
87
  GlobalLimit: boolean;
88
88
  season: string;
89
89
  }
90
- export interface adminbenefit {
90
+ export interface AdminBenefit {
91
91
  userId: string;
92
92
  handle: string;
93
93
  signmonth: number;
94
94
  lastSign: Date;
95
95
  }
96
- export interface blacklist {
96
+ export interface Blacklist {
97
97
  handle: string;
98
98
  createdAt: Date;
99
99
  }
100
- export interface PKRecord {
100
+ export interface PKProfile {
101
101
  handle: string;
102
102
  name: string;
103
103
  total: number;
@@ -107,13 +107,13 @@ export interface PKRecord {
107
107
  enable: boolean;
108
108
  lastToggle: Date;
109
109
  }
110
- export interface PKLog {
110
+ export interface PKLogs {
111
111
  id: number;
112
112
  initiator_handle: string;
113
113
  target_handle: string;
114
114
  date: Date;
115
115
  }
116
- export interface equipment {
116
+ export interface WeaponInventory {
117
117
  handle: string;
118
118
  weaponId: number;
119
119
  level: number;
@@ -121,7 +121,7 @@ export interface equipment {
121
121
  installedMods: string[];
122
122
  equipped: boolean;
123
123
  }
124
- export interface Boss {
124
+ export interface BossInfo {
125
125
  name: string;
126
126
  groupId: number;
127
127
  type: string;
@@ -137,7 +137,7 @@ export interface Boss {
137
137
  isActive: boolean;
138
138
  respawnTime: Date;
139
139
  }
140
- export interface BossDamageRecord {
140
+ export interface BossDamage {
141
141
  handle: string;
142
142
  playerName: string;
143
143
  totalDamage: number;
@@ -153,35 +153,35 @@ export interface WishRecord {
153
153
  endTime: Date;
154
154
  isused: boolean;
155
155
  }
156
- export interface careers {
156
+ export interface CareerInfo {
157
157
  handle: string;
158
158
  group: string;
159
159
  career: string;
160
160
  redcrystal: number;
161
161
  date: Date;
162
162
  }
163
- export interface warehouse {
163
+ export interface Warehouse {
164
164
  handle: string;
165
165
  itemId: number;
166
166
  quantity: number;
167
167
  }
168
- export interface tech {
168
+ export interface TechProgress {
169
169
  handle: string;
170
170
  techId: number;
171
171
  level: number;
172
172
  }
173
- export interface Mining {
173
+ export interface MiningRecord {
174
174
  handle: string;
175
175
  startTime: Date;
176
176
  totalMined: number;
177
177
  }
178
- export interface task {
178
+ export interface TaskProgress {
179
179
  handle: string;
180
180
  taskId: number;
181
181
  progress: number;
182
182
  Completions: number;
183
183
  }
184
- export interface purchasepermissions {
184
+ export interface Permissions {
185
185
  handle: string;
186
186
  legendarypermissions: number;
187
187
  explosiondoorauthority: number;