koishi-plugin-ggcevo-game 1.3.73 → 1.4.0

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/items.d.ts ADDED
@@ -0,0 +1,272 @@
1
+ export declare const SyndicatedItems: {
2
+ 'E-2\u80FD\u91CF\u70B8\u5F39': {
3
+ id: number;
4
+ type: string;
5
+ description: string;
6
+ price: number;
7
+ redCrystalCost: number;
8
+ effects: string;
9
+ };
10
+ 闪光弹: {
11
+ id: number;
12
+ type: string;
13
+ description: string;
14
+ price: number;
15
+ redCrystalCost: number;
16
+ effects: string;
17
+ };
18
+ 'CRED-17': {
19
+ id: number;
20
+ type: string;
21
+ description: string;
22
+ price: number;
23
+ redCrystalCost: number;
24
+ effects: string;
25
+ };
26
+ 脉冲手雷: {
27
+ id: number;
28
+ type: string;
29
+ description: string;
30
+ price: number;
31
+ redCrystalCost: number;
32
+ effects: string;
33
+ };
34
+ MP3播放器: {
35
+ id: number;
36
+ type: string;
37
+ description: string;
38
+ price: number;
39
+ redCrystalCost: number;
40
+ effects: string;
41
+ };
42
+ };
43
+ export declare const initDefaultItems: {
44
+ 咕咕币: {
45
+ id: number;
46
+ type: string;
47
+ description: string;
48
+ };
49
+ 兑换券: {
50
+ id: number;
51
+ type: string;
52
+ description: string;
53
+ };
54
+ 扭蛋币: {
55
+ id: number;
56
+ type: string;
57
+ description: string;
58
+ };
59
+ t3级宠物扭蛋: {
60
+ id: number;
61
+ type: string;
62
+ description: string;
63
+ };
64
+ t2级宠物扭蛋: {
65
+ id: number;
66
+ type: string;
67
+ description: string;
68
+ };
69
+ t1级宠物扭蛋: {
70
+ id: number;
71
+ type: string;
72
+ description: string;
73
+ };
74
+ t0级宠物扭蛋: {
75
+ id: number;
76
+ type: string;
77
+ description: string;
78
+ };
79
+ '\uD83E\uDD47\u5148\u884C\u8005\u8D5B\u5B63\u51A0\u519B\u52CB\u7AE0': {
80
+ id: number;
81
+ type: string;
82
+ description: string;
83
+ };
84
+ '\uD83E\uDD48\u5148\u884C\u8005\u8D5B\u5B63\u4E9A\u519B\u52CB\u7AE0': {
85
+ id: number;
86
+ type: string;
87
+ description: string;
88
+ };
89
+ '\uD83E\uDD49\u5148\u884C\u8005\u8D5B\u5B63\u5B63\u519B\u52CB\u7AE0': {
90
+ id: number;
91
+ type: string;
92
+ description: string;
93
+ };
94
+ '\uD83C\uDFC5\u5148\u884C\u8005\u8D5B\u5B63\u524D\u5341\u52CB\u7AE0': {
95
+ id: number;
96
+ type: string;
97
+ description: string;
98
+ };
99
+ '\uD83C\uDF96\u5148\u884C\u8005\u8D5B\u5B63\u524D\u4E8C\u5341\u52CB\u7AE0': {
100
+ id: number;
101
+ type: string;
102
+ description: string;
103
+ };
104
+ '\uD83E\uDD47S1\u8D5B\u5B63\u51A0\u519B\u52CB\u7AE0': {
105
+ id: number;
106
+ type: string;
107
+ description: string;
108
+ };
109
+ '\uD83E\uDD48S1\u8D5B\u5B63\u4E9A\u519B\u52CB\u7AE0': {
110
+ id: number;
111
+ type: string;
112
+ description: string;
113
+ };
114
+ '\uD83E\uDD49S1\u8D5B\u5B63\u5B63\u519B\u52CB\u7AE0': {
115
+ id: number;
116
+ type: string;
117
+ description: string;
118
+ };
119
+ '\uD83C\uDFC5S1\u8D5B\u5B63\u524D\u5341\u52CB\u7AE0': {
120
+ id: number;
121
+ type: string;
122
+ description: string;
123
+ };
124
+ '\uD83C\uDF96S1\u8D5B\u5B63\u524D\u4E8C\u5341\u52CB\u7AE0': {
125
+ id: number;
126
+ type: string;
127
+ description: string;
128
+ };
129
+ };
130
+ export declare const itemConfig: {
131
+ 拾荒者: {
132
+ quality: string;
133
+ type: string;
134
+ cost: number;
135
+ isLimited: boolean;
136
+ };
137
+ 劳工: {
138
+ quality: string;
139
+ type: string;
140
+ cost: number;
141
+ isLimited: boolean;
142
+ };
143
+ 老兵: {
144
+ quality: string;
145
+ type: string;
146
+ cost: number;
147
+ isLimited: boolean;
148
+ };
149
+ 合成人: {
150
+ quality: string;
151
+ type: string;
152
+ cost: number;
153
+ isLimited: boolean;
154
+ };
155
+ 阿斯塔特: {
156
+ quality: string;
157
+ type: string;
158
+ cost: number;
159
+ isLimited: boolean;
160
+ };
161
+ 皇家指挥官: {
162
+ quality: string;
163
+ type: string;
164
+ cost: number;
165
+ isLimited: boolean;
166
+ };
167
+ 个性开场白: {
168
+ quality: string;
169
+ type: string;
170
+ cost: number;
171
+ quantity: number;
172
+ isLimited: boolean;
173
+ };
174
+ 史蒂夫: {
175
+ quality: string;
176
+ type: string;
177
+ cost: number;
178
+ quantity: number;
179
+ isLimited: boolean;
180
+ };
181
+ ep4: {
182
+ quality: string;
183
+ type: string;
184
+ cost: number;
185
+ quantity: number;
186
+ isLimited: boolean;
187
+ };
188
+ 小狗: {
189
+ quality: string;
190
+ type: string;
191
+ cost: number;
192
+ quantity: number;
193
+ isLimited: boolean;
194
+ };
195
+ 小猫: {
196
+ quality: string;
197
+ type: string;
198
+ cost: number;
199
+ quantity: number;
200
+ isLimited: boolean;
201
+ };
202
+ 小黄鸭: {
203
+ quality: string;
204
+ type: string;
205
+ cost: number;
206
+ quantity: number;
207
+ isLimited: boolean;
208
+ };
209
+ 萌萌熊: {
210
+ quality: string;
211
+ type: string;
212
+ cost: number;
213
+ quantity: number;
214
+ isLimited: boolean;
215
+ };
216
+ 荆棘蜥蜴: {
217
+ quality: string;
218
+ type: string;
219
+ cost: number;
220
+ quantity: number;
221
+ isLimited: boolean;
222
+ };
223
+ 萌宠小狗: {
224
+ quality: string;
225
+ type: string;
226
+ cost: number;
227
+ quantity: number;
228
+ isLimited: boolean;
229
+ };
230
+ 熔岩虫: {
231
+ quality: string;
232
+ type: string;
233
+ cost: number;
234
+ quantity: number;
235
+ isLimited: boolean;
236
+ };
237
+ 尸甲虫: {
238
+ quality: string;
239
+ type: string;
240
+ cost: number;
241
+ quantity: number;
242
+ isLimited: boolean;
243
+ };
244
+ 绿毛虫: {
245
+ quality: string;
246
+ type: string;
247
+ cost: number;
248
+ quantity: number;
249
+ isLimited: boolean;
250
+ };
251
+ 妙蛙种子: {
252
+ quality: string;
253
+ type: string;
254
+ cost: number;
255
+ quantity: number;
256
+ isLimited: boolean;
257
+ };
258
+ 皮卡丘: {
259
+ quality: string;
260
+ type: string;
261
+ cost: number;
262
+ quantity: number;
263
+ isLimited: boolean;
264
+ };
265
+ 哆啦A梦: {
266
+ quality: string;
267
+ type: string;
268
+ cost: number;
269
+ quantity: number;
270
+ isLimited: boolean;
271
+ };
272
+ };
package/lib/tasks.d.ts ADDED
@@ -0,0 +1,29 @@
1
+ export declare const Tasklist: {
2
+ 伽马辐射: {
3
+ id: number;
4
+ type: string;
5
+ description: string;
6
+ target: number;
7
+ price: number;
8
+ redCrystalCost: number;
9
+ condition: string;
10
+ };
11
+ 绝对零度: {
12
+ id: number;
13
+ type: string;
14
+ description: string;
15
+ target: number;
16
+ price: number;
17
+ redCrystalCost: number;
18
+ condition: string;
19
+ };
20
+ 胆汁引爆: {
21
+ id: number;
22
+ type: string;
23
+ description: string;
24
+ target: number;
25
+ price: number;
26
+ redCrystalCost: number;
27
+ condition: string;
28
+ };
29
+ };
package/lib/utils.d.ts ADDED
@@ -0,0 +1,21 @@
1
+ import { Context } from 'koishi';
2
+ import { Config } from './index';
3
+ export declare function gachaWithPity(ctx: Context, handle: string): Promise<boolean>;
4
+ export declare function gachaWithHiddenAward(ctx: Context, handle: string): Promise<boolean>;
5
+ export declare function checkSensitiveWord(ctx: Context, content: string): Promise<boolean>;
6
+ export declare function getRandomInt(min: number, max: number): number;
7
+ export declare function PetCapsuleToy(): "t3级宠物扭蛋" | "t2级宠物扭蛋" | "t1级宠物扭蛋" | "t0级宠物扭蛋";
8
+ export declare function isSameDate(a: Date, b: Date): boolean;
9
+ export declare function isSameHalfDay(a: Date, b: Date): boolean;
10
+ export declare function convertUTCtoChinaTime(input: Date | string | number): Date;
11
+ export declare function formatDate(d: Date): string;
12
+ export declare function createHpBar(current: number, max: number): string;
13
+ export declare function activateNextBossGroup(ctx: Context, currentBossId?: any): Promise<import("./database").Boss>;
14
+ export declare function calculateTotalPower(ctx: Context, config: Config, handle: string): Promise<number>;
15
+ export declare function applyItemEffect(ctx: Context, session: any, handle: string, itemConfig: any, target?: string): Promise<{
16
+ success: boolean;
17
+ message: string;
18
+ }>;
19
+ export declare function handleTechUpgrade(ctx: Context, handle: string, target: string): Promise<string>;
20
+ export declare function handleWeaponUpgrade(ctx: Context, handle: string, target: string): Promise<string>;
21
+ export declare function generateUpgradePriceList(ctx: Context, handle: string): Promise<string>;
@@ -0,0 +1,222 @@
1
+ export declare const weaponConfig: {
2
+ 高斯步枪: {
3
+ id: number;
4
+ type: string;
5
+ damage: number;
6
+ description: string;
7
+ specialeffect: string;
8
+ price: number;
9
+ redCrystalCost: number;
10
+ isantiair: boolean;
11
+ tagEffects: {
12
+ 轻甲: number;
13
+ };
14
+ };
15
+ 激光步枪: {
16
+ id: number;
17
+ type: string;
18
+ damage: number;
19
+ description: string;
20
+ specialeffect: string;
21
+ price: number;
22
+ redCrystalCost: number;
23
+ isantiair: boolean;
24
+ tagEffects: {
25
+ 重甲: number;
26
+ 护盾: number;
27
+ };
28
+ };
29
+ 焚烧枪: {
30
+ id: number;
31
+ type: string;
32
+ damage: number;
33
+ description: string;
34
+ specialeffect: string;
35
+ price: number;
36
+ redCrystalCost: number;
37
+ isantiair: boolean;
38
+ tagEffects: {
39
+ 惧热: number;
40
+ 生物: number;
41
+ 护盾: number;
42
+ };
43
+ };
44
+ 碎骨步枪: {
45
+ id: number;
46
+ type: string;
47
+ damage: number;
48
+ description: string;
49
+ specialeffect: string;
50
+ price: number;
51
+ redCrystalCost: number;
52
+ isantiair: boolean;
53
+ tagEffects: {
54
+ 重甲: number;
55
+ 机械: number;
56
+ 护盾: number;
57
+ };
58
+ };
59
+ 等离子切割机: {
60
+ id: number;
61
+ type: string;
62
+ damage: number;
63
+ description: string;
64
+ specialeffect: string;
65
+ price: number;
66
+ redCrystalCost: number;
67
+ isantiair: boolean;
68
+ tagEffects: {
69
+ 建筑: number;
70
+ 重甲: number;
71
+ 机械: number;
72
+ };
73
+ };
74
+ 突击霰弹枪: {
75
+ id: number;
76
+ type: string;
77
+ damage: number;
78
+ description: string;
79
+ specialeffect: string;
80
+ price: number;
81
+ redCrystalCost: number;
82
+ isantiair: boolean;
83
+ tagEffects: {
84
+ 轻甲: number;
85
+ 重甲: number;
86
+ };
87
+ };
88
+ 侦察步枪: {
89
+ id: number;
90
+ type: string;
91
+ damage: number;
92
+ description: string;
93
+ specialeffect: string;
94
+ price: number;
95
+ redCrystalCost: number;
96
+ isantiair: boolean;
97
+ tagEffects: {
98
+ 轻甲: number;
99
+ 重甲: number;
100
+ };
101
+ };
102
+ 零度之下: {
103
+ id: number;
104
+ type: string;
105
+ damage: number;
106
+ description: string;
107
+ specialeffect: string;
108
+ price: number;
109
+ redCrystalCost: number;
110
+ isantiair: boolean;
111
+ tagEffects: {
112
+ 惧寒: number;
113
+ 灵能: number;
114
+ };
115
+ };
116
+ 弧焊枪: {
117
+ id: number;
118
+ type: string;
119
+ damage: number;
120
+ description: string;
121
+ specialeffect: string;
122
+ price: number;
123
+ redCrystalCost: number;
124
+ isantiair: boolean;
125
+ tagEffects: {
126
+ 机械: number;
127
+ 建筑: number;
128
+ };
129
+ };
130
+ 伽马枪: {
131
+ id: number;
132
+ type: string;
133
+ damage: number;
134
+ description: string;
135
+ specialeffect: string;
136
+ price: number;
137
+ redCrystalCost: number;
138
+ isantiair: boolean;
139
+ tagEffects: {
140
+ 生物: number;
141
+ 机械: number;
142
+ };
143
+ };
144
+ 中子步枪: {
145
+ id: number;
146
+ type: string;
147
+ damage: number;
148
+ description: string;
149
+ specialeffect: string;
150
+ price: number;
151
+ redCrystalCost: number;
152
+ isantiair: boolean;
153
+ tagEffects: {
154
+ 灵能: number;
155
+ };
156
+ };
157
+ 粒子相位枪: {
158
+ id: number;
159
+ type: string;
160
+ damage: number;
161
+ description: string;
162
+ specialeffect: string;
163
+ price: number;
164
+ redCrystalCost: number;
165
+ isantiair: boolean;
166
+ tagEffects: {
167
+ 护盾: number;
168
+ 轻甲: number;
169
+ 重甲: number;
170
+ };
171
+ };
172
+ };
173
+ export declare const modConfig: {
174
+ 动能增幅: {
175
+ cost: number;
176
+ effect: string;
177
+ exclusiveTo: string;
178
+ isExclusive: boolean;
179
+ };
180
+ 棱镜水晶: {
181
+ cost: number;
182
+ effect: string;
183
+ exclusiveTo: string;
184
+ isExclusive: boolean;
185
+ };
186
+ 裂甲核心: {
187
+ cost: number;
188
+ effect: string;
189
+ exclusiveTo: string;
190
+ isExclusive: boolean;
191
+ };
192
+ 棱镜超载核心: {
193
+ cost: number;
194
+ effect: string;
195
+ exclusiveTo: string;
196
+ isExclusive: boolean;
197
+ };
198
+ 助燃核心: {
199
+ cost: number;
200
+ effect: string;
201
+ exclusiveTo: string;
202
+ isExclusive: boolean;
203
+ };
204
+ 光束曲射晶片: {
205
+ cost: number;
206
+ effect: string;
207
+ exclusiveTo: string;
208
+ isExclusive: boolean;
209
+ };
210
+ 护盾崩解核心: {
211
+ cost: number;
212
+ effect: string;
213
+ exclusiveTo: string;
214
+ isExclusive: boolean;
215
+ };
216
+ 金刚石瞄准镜: {
217
+ cost: number;
218
+ effect: string;
219
+ exclusiveTo: string;
220
+ isExclusive: boolean;
221
+ };
222
+ };
package/lib/wish.d.ts ADDED
@@ -0,0 +1,34 @@
1
+ export declare const wishConfig: {
2
+ readonly common: readonly [{
3
+ readonly name: "蚱蜢优购";
4
+ readonly effect: "下一次购买武器享有20%的折扣";
5
+ }, {
6
+ readonly name: "灵狐升运";
7
+ readonly effect: "下一次升级武器享有20%的折扣";
8
+ }, {
9
+ readonly name: "王权增幅";
10
+ readonly effect: "攻击伤害+5%";
11
+ }, {
12
+ readonly name: "金柚赐福";
13
+ readonly effect: "立即获得250枚金币";
14
+ }, {
15
+ readonly name: "夜市赠礼";
16
+ readonly effect: "立即获得5枚咕咕币";
17
+ }];
18
+ readonly rare: readonly [{
19
+ readonly name: "悲鸣之锋";
20
+ readonly effect: "获得基于武器等级的伤害加成(0级为10%,每等级增加10%)";
21
+ }, {
22
+ readonly name: "精灵双倍";
23
+ readonly effect: "下一次击败首领时可获得双倍的金币和咕咕币奖励";
24
+ }, {
25
+ readonly name: "喵喵财源";
26
+ readonly effect: "签到获得双倍的金币和咕咕币";
27
+ }, {
28
+ readonly name: "暴击韵律";
29
+ readonly effect: "攻击暴击率+20%";
30
+ }, {
31
+ readonly name: "酥手空空";
32
+ readonly effect: "立即失去50枚金币";
33
+ }];
34
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-ggcevo-game",
3
3
  "description": "《星际争霸2》咕咕虫-evolved地图的专属游戏助手插件,集成天梯排行、抽奖系统、签到福利、兑换商城等丰富功能。",
4
- "version": "1.3.73",
4
+ "version": "1.4.0",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [