koishi-plugin-ggcevo-game 1.3.72 → 1.3.74
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/attackhandling.d.ts +38 -0
- package/lib/boss/boss.d.ts +156 -0
- package/lib/boss/damagecalculation.d.ts +11 -0
- package/lib/boss/passive.d.ts +150 -0
- package/lib/boss/passivehandler.d.ts +181 -0
- package/lib/careersystem/careers.d.ts +20 -0
- package/lib/careersystem/technology.d.ts +12 -0
- package/lib/database.d.ts +180 -0
- package/lib/index.d.ts +3 -184
- package/lib/index.js +3908 -4022
- package/lib/items.d.ts +272 -0
- package/lib/tasks.d.ts +29 -0
- package/lib/utils.d.ts +21 -0
- package/lib/weapons.d.ts +222 -0
- package/lib/wish.d.ts +34 -0
- package/package.json +1 -1
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
declare module 'koishi' {
|
|
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
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export interface backpack {
|
|
27
|
+
handle: string;
|
|
28
|
+
itemId: number;
|
|
29
|
+
quantity: number;
|
|
30
|
+
}
|
|
31
|
+
export interface sign {
|
|
32
|
+
handle: string;
|
|
33
|
+
lastSign: Date;
|
|
34
|
+
monthlyDays: number;
|
|
35
|
+
totalRewards: number;
|
|
36
|
+
}
|
|
37
|
+
export interface record {
|
|
38
|
+
handle: string;
|
|
39
|
+
totalPulls: number;
|
|
40
|
+
pityCounter: number;
|
|
41
|
+
fullPityCount: number;
|
|
42
|
+
hiddenawards: number;
|
|
43
|
+
}
|
|
44
|
+
export interface welfare {
|
|
45
|
+
handle: string;
|
|
46
|
+
activity: number;
|
|
47
|
+
lastdate: Date;
|
|
48
|
+
}
|
|
49
|
+
export interface Activity {
|
|
50
|
+
id: number;
|
|
51
|
+
name: string;
|
|
52
|
+
description: string;
|
|
53
|
+
itemId: number;
|
|
54
|
+
quantity: number;
|
|
55
|
+
startTime: Date;
|
|
56
|
+
endTime: Date;
|
|
57
|
+
creator: string;
|
|
58
|
+
status: '未开始' | '进行中' | '已结束';
|
|
59
|
+
}
|
|
60
|
+
export interface rank {
|
|
61
|
+
handle: string;
|
|
62
|
+
name: string;
|
|
63
|
+
rank: number;
|
|
64
|
+
wins: number;
|
|
65
|
+
matches: number;
|
|
66
|
+
rankseason: string;
|
|
67
|
+
Blacklist: boolean;
|
|
68
|
+
}
|
|
69
|
+
export interface Punishment {
|
|
70
|
+
id: number;
|
|
71
|
+
name: string;
|
|
72
|
+
handle: string;
|
|
73
|
+
level: string;
|
|
74
|
+
reason: string;
|
|
75
|
+
count: string;
|
|
76
|
+
reviewer: string;
|
|
77
|
+
date: string;
|
|
78
|
+
comment?: string;
|
|
79
|
+
}
|
|
80
|
+
export interface exchange {
|
|
81
|
+
userId: string;
|
|
82
|
+
handle: string;
|
|
83
|
+
item: string;
|
|
84
|
+
type: string;
|
|
85
|
+
date: Date;
|
|
86
|
+
GlobalLimit: boolean;
|
|
87
|
+
season: string;
|
|
88
|
+
}
|
|
89
|
+
export interface adminbenefit {
|
|
90
|
+
userId: string;
|
|
91
|
+
handle: string;
|
|
92
|
+
signmonth: number;
|
|
93
|
+
lastSign: Date;
|
|
94
|
+
}
|
|
95
|
+
export interface blacklist {
|
|
96
|
+
handle: string;
|
|
97
|
+
createdAt: Date;
|
|
98
|
+
}
|
|
99
|
+
export interface PKRecord {
|
|
100
|
+
handle: string;
|
|
101
|
+
name: string;
|
|
102
|
+
total: number;
|
|
103
|
+
wins: number;
|
|
104
|
+
todayCount: number;
|
|
105
|
+
lastPK: Date;
|
|
106
|
+
enable: boolean;
|
|
107
|
+
lastToggle: Date;
|
|
108
|
+
}
|
|
109
|
+
export interface PKLog {
|
|
110
|
+
id: number;
|
|
111
|
+
initiator_handle: string;
|
|
112
|
+
target_handle: string;
|
|
113
|
+
date: Date;
|
|
114
|
+
}
|
|
115
|
+
export interface equipment {
|
|
116
|
+
handle: string;
|
|
117
|
+
weaponId: number;
|
|
118
|
+
level: number;
|
|
119
|
+
modificationSlots: number;
|
|
120
|
+
installedMods: string[];
|
|
121
|
+
equipped: boolean;
|
|
122
|
+
}
|
|
123
|
+
export interface Boss {
|
|
124
|
+
name: string;
|
|
125
|
+
type: string;
|
|
126
|
+
HP: number;
|
|
127
|
+
tags: string[];
|
|
128
|
+
skills: string[];
|
|
129
|
+
Skillcountpoints: number;
|
|
130
|
+
Vulnerability: number;
|
|
131
|
+
freezing: number;
|
|
132
|
+
energy: number;
|
|
133
|
+
groupId: number;
|
|
134
|
+
isActive: boolean;
|
|
135
|
+
respawnTime: Date;
|
|
136
|
+
}
|
|
137
|
+
export interface BossDamageRecord {
|
|
138
|
+
handle: string;
|
|
139
|
+
playerName: string;
|
|
140
|
+
totalDamage: number;
|
|
141
|
+
attackCount: number;
|
|
142
|
+
bossGroupId: number;
|
|
143
|
+
lastattackDate: Date;
|
|
144
|
+
}
|
|
145
|
+
export interface WishRecord {
|
|
146
|
+
id: number;
|
|
147
|
+
handle: string;
|
|
148
|
+
wishname: string;
|
|
149
|
+
startTime: Date;
|
|
150
|
+
endTime: Date;
|
|
151
|
+
isused: boolean;
|
|
152
|
+
}
|
|
153
|
+
export interface careers {
|
|
154
|
+
handle: string;
|
|
155
|
+
group: string;
|
|
156
|
+
career: string;
|
|
157
|
+
redcrystal: number;
|
|
158
|
+
date: Date;
|
|
159
|
+
}
|
|
160
|
+
export interface warehouse {
|
|
161
|
+
handle: string;
|
|
162
|
+
itemId: number;
|
|
163
|
+
quantity: number;
|
|
164
|
+
}
|
|
165
|
+
export interface tech {
|
|
166
|
+
handle: string;
|
|
167
|
+
techId: number;
|
|
168
|
+
level: number;
|
|
169
|
+
}
|
|
170
|
+
export interface Mining {
|
|
171
|
+
handle: string;
|
|
172
|
+
startTime: Date;
|
|
173
|
+
totalMined: number;
|
|
174
|
+
}
|
|
175
|
+
export interface task {
|
|
176
|
+
handle: string;
|
|
177
|
+
taskId: number;
|
|
178
|
+
progress: number;
|
|
179
|
+
Completions: number;
|
|
180
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { Context, Schema } from 'koishi';
|
|
2
2
|
import 'koishi-plugin-sc2arcade-search';
|
|
3
3
|
export declare const name = "ggcevo-game";
|
|
4
|
+
export declare const inject: {
|
|
5
|
+
required: string[];
|
|
6
|
+
};
|
|
4
7
|
export interface Config {
|
|
5
8
|
proxyAgent: string;
|
|
6
9
|
rankseason: string;
|
|
7
|
-
signrequire: boolean;
|
|
8
10
|
autorank: boolean;
|
|
9
11
|
ignoreGlobalLimit: boolean;
|
|
10
|
-
admins: string[];
|
|
11
12
|
groupId: string[];
|
|
12
13
|
checkInterval: number;
|
|
13
14
|
dailyPKLimit: number;
|
|
@@ -16,186 +17,4 @@ export interface Config {
|
|
|
16
17
|
unlimitedBossAttack: boolean;
|
|
17
18
|
}
|
|
18
19
|
export declare const Config: Schema<Config>;
|
|
19
|
-
export declare const inject: {
|
|
20
|
-
required: string[];
|
|
21
|
-
};
|
|
22
|
-
declare module 'koishi' {
|
|
23
|
-
interface Tables {
|
|
24
|
-
ggcevo_backpack: backpack;
|
|
25
|
-
ggcevo_sign: sign;
|
|
26
|
-
ggcevo_records: record;
|
|
27
|
-
ggcevo_welfare: welfare;
|
|
28
|
-
ggcevo_activity: Activity;
|
|
29
|
-
ggcevo_rank: rank;
|
|
30
|
-
ggcevo_Punishment: Punishment;
|
|
31
|
-
ggcevo_exchange: exchange;
|
|
32
|
-
ggcevo_adminbenefit: adminbenefit;
|
|
33
|
-
ggcevo_blacklist: blacklist;
|
|
34
|
-
ggcevo_pk: PKRecord;
|
|
35
|
-
ggcevo_pk_logs: PKLog;
|
|
36
|
-
ggcevo_equipment: equipment;
|
|
37
|
-
ggcevo_boss: Boss;
|
|
38
|
-
ggcevo_boss_damage: BossDamageRecord;
|
|
39
|
-
ggcevo_Wish_Record: WishRecord;
|
|
40
|
-
ggcevo_careers: careers;
|
|
41
|
-
ggcevo_warehouse: warehouse;
|
|
42
|
-
ggcevo_tech: tech;
|
|
43
|
-
ggcevo_Mining: Mining;
|
|
44
|
-
ggcevo_task: task;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
export interface backpack {
|
|
48
|
-
handle: string;
|
|
49
|
-
itemId: number;
|
|
50
|
-
quantity: number;
|
|
51
|
-
}
|
|
52
|
-
export interface sign {
|
|
53
|
-
handle: string;
|
|
54
|
-
lastSign: Date;
|
|
55
|
-
monthlyDays: number;
|
|
56
|
-
totalRewards: number;
|
|
57
|
-
}
|
|
58
|
-
export interface record {
|
|
59
|
-
handle: string;
|
|
60
|
-
totalPulls: number;
|
|
61
|
-
pityCounter: number;
|
|
62
|
-
fullPityCount: number;
|
|
63
|
-
hiddenawards: number;
|
|
64
|
-
}
|
|
65
|
-
export interface welfare {
|
|
66
|
-
handle: string;
|
|
67
|
-
activity: number;
|
|
68
|
-
lastdate: Date;
|
|
69
|
-
}
|
|
70
|
-
export interface Activity {
|
|
71
|
-
id: number;
|
|
72
|
-
name: string;
|
|
73
|
-
description: string;
|
|
74
|
-
itemId: number;
|
|
75
|
-
quantity: number;
|
|
76
|
-
startTime: Date;
|
|
77
|
-
endTime: Date;
|
|
78
|
-
creator: string;
|
|
79
|
-
status: '未开始' | '进行中' | '已结束';
|
|
80
|
-
}
|
|
81
|
-
export interface rank {
|
|
82
|
-
handle: string;
|
|
83
|
-
name: string;
|
|
84
|
-
rank: number;
|
|
85
|
-
wins: number;
|
|
86
|
-
matches: number;
|
|
87
|
-
rankseason: string;
|
|
88
|
-
Blacklist: boolean;
|
|
89
|
-
}
|
|
90
|
-
export interface Punishment {
|
|
91
|
-
id: number;
|
|
92
|
-
name: string;
|
|
93
|
-
handle: string;
|
|
94
|
-
level: string;
|
|
95
|
-
reason: string;
|
|
96
|
-
count: string;
|
|
97
|
-
reviewer: string;
|
|
98
|
-
date: string;
|
|
99
|
-
comment?: string;
|
|
100
|
-
}
|
|
101
|
-
export interface exchange {
|
|
102
|
-
userId: string;
|
|
103
|
-
handle: string;
|
|
104
|
-
item: string;
|
|
105
|
-
type: string;
|
|
106
|
-
date: Date;
|
|
107
|
-
GlobalLimit: boolean;
|
|
108
|
-
season: string;
|
|
109
|
-
}
|
|
110
|
-
export interface adminbenefit {
|
|
111
|
-
userId: string;
|
|
112
|
-
handle: string;
|
|
113
|
-
signmonth: number;
|
|
114
|
-
lastSign: Date;
|
|
115
|
-
}
|
|
116
|
-
export interface blacklist {
|
|
117
|
-
handle: string;
|
|
118
|
-
createdAt: Date;
|
|
119
|
-
}
|
|
120
|
-
export interface PKRecord {
|
|
121
|
-
handle: string;
|
|
122
|
-
name: string;
|
|
123
|
-
total: number;
|
|
124
|
-
wins: number;
|
|
125
|
-
todayCount: number;
|
|
126
|
-
lastPK: Date;
|
|
127
|
-
enable: boolean;
|
|
128
|
-
lastToggle: Date;
|
|
129
|
-
}
|
|
130
|
-
export interface PKLog {
|
|
131
|
-
id: number;
|
|
132
|
-
initiator_handle: string;
|
|
133
|
-
target_handle: string;
|
|
134
|
-
date: Date;
|
|
135
|
-
}
|
|
136
|
-
export interface equipment {
|
|
137
|
-
handle: string;
|
|
138
|
-
weaponId: number;
|
|
139
|
-
level: number;
|
|
140
|
-
modificationSlots: number;
|
|
141
|
-
installedMods: string[];
|
|
142
|
-
equipped: boolean;
|
|
143
|
-
}
|
|
144
|
-
export interface Boss {
|
|
145
|
-
name: string;
|
|
146
|
-
type: string;
|
|
147
|
-
HP: number;
|
|
148
|
-
tags: string[];
|
|
149
|
-
skills: string[];
|
|
150
|
-
Skillcountpoints: number;
|
|
151
|
-
Vulnerability: number;
|
|
152
|
-
freezing: number;
|
|
153
|
-
energy: number;
|
|
154
|
-
groupId: number;
|
|
155
|
-
isActive: boolean;
|
|
156
|
-
respawnTime: Date;
|
|
157
|
-
}
|
|
158
|
-
export interface BossDamageRecord {
|
|
159
|
-
handle: string;
|
|
160
|
-
playerName: string;
|
|
161
|
-
totalDamage: number;
|
|
162
|
-
attackCount: number;
|
|
163
|
-
bossGroupId: number;
|
|
164
|
-
lastattackDate: Date;
|
|
165
|
-
}
|
|
166
|
-
export interface WishRecord {
|
|
167
|
-
id: number;
|
|
168
|
-
handle: string;
|
|
169
|
-
wishname: string;
|
|
170
|
-
startTime: Date;
|
|
171
|
-
endTime: Date;
|
|
172
|
-
isused: boolean;
|
|
173
|
-
}
|
|
174
|
-
export interface careers {
|
|
175
|
-
handle: string;
|
|
176
|
-
group: string;
|
|
177
|
-
career: string;
|
|
178
|
-
redcrystal: number;
|
|
179
|
-
date: Date;
|
|
180
|
-
}
|
|
181
|
-
export interface warehouse {
|
|
182
|
-
handle: string;
|
|
183
|
-
itemId: number;
|
|
184
|
-
quantity: number;
|
|
185
|
-
}
|
|
186
|
-
export interface tech {
|
|
187
|
-
handle: string;
|
|
188
|
-
techId: number;
|
|
189
|
-
level: number;
|
|
190
|
-
}
|
|
191
|
-
export interface Mining {
|
|
192
|
-
handle: string;
|
|
193
|
-
startTime: Date;
|
|
194
|
-
}
|
|
195
|
-
export interface task {
|
|
196
|
-
handle: string;
|
|
197
|
-
taskId: number;
|
|
198
|
-
progress: number;
|
|
199
|
-
Completions: number;
|
|
200
|
-
}
|
|
201
20
|
export declare function apply(ctx: Context, config: Config): void;
|