koishi-plugin-toram 0.5.1 → 0.5.3
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/data/terminology.json +21 -1
- package/lib/data/terminology_name.json +69 -14
- package/lib/index.js +7 -6
- package/package.json +1 -1
- package/readme.md +12 -0
|
@@ -40,12 +40,32 @@
|
|
|
40
40
|
[
|
|
41
41
|
1,
|
|
42
42
|
"伤害惯性",
|
|
43
|
-
"
|
|
43
|
+
"伤害惯性简单说明:https:\/\/www.taptap.cn\/moment\/309981906491932956 伤害惯性机制【墙】:https:\/\/wiki2.gamer.com.tw\/wiki.php?n=72740:%E6%85%A3%E6%80%A7%E9%98%B2%E7%A6%A6%EF%BC%88%E7%96%8A%E5%82%B7%EF%BC%89&ss=72740&f=M"
|
|
44
44
|
],
|
|
45
45
|
[
|
|
46
46
|
2,
|
|
47
47
|
"地图宝箱",
|
|
48
48
|
"地图宝箱:https:\/\/www.taptap.cn\/moment\/15203645561769970"
|
|
49
|
+
],
|
|
50
|
+
[
|
|
51
|
+
3,
|
|
52
|
+
"部位破坏",
|
|
53
|
+
"部位破坏机制:https:\/\/www.taptap.cn\/moment\/15212561058234639 破位伤害相关机制:https:\/\/www.taptap.cn\/moment\/119925768305250245"
|
|
54
|
+
],
|
|
55
|
+
[
|
|
56
|
+
4,
|
|
57
|
+
"连击",
|
|
58
|
+
"tap暂无令我满意的连击介绍——by灯 连击机制【墙】:https:\/\/wiki2.gamer.com.tw\/wiki.php?n=72740:%E9%80%A3%E6%93%8A&ss=72740&f=M"
|
|
59
|
+
],
|
|
60
|
+
[
|
|
61
|
+
5,
|
|
62
|
+
"料理",
|
|
63
|
+
"料理简介:https:\/\/www.taptap.cn\/moment\/384528659152635162 栽培与料理制作:https:\/\/www.taptap.cn\/moment\/15212009125579185"
|
|
64
|
+
],
|
|
65
|
+
[
|
|
66
|
+
6,
|
|
67
|
+
"宠物",
|
|
68
|
+
"宠物攻略1:https:\/\/www.taptap.cn\/moment\/15204652349916635 宠物攻略2【墙】:https:\/\/forum.gamer.com.tw\/C.php?bsn=28271&snA=9602"
|
|
49
69
|
]
|
|
50
70
|
]
|
|
51
71
|
}
|
|
@@ -53,22 +53,22 @@
|
|
|
53
53
|
"伤害惯性"
|
|
54
54
|
],
|
|
55
55
|
[
|
|
56
|
-
|
|
56
|
+
4,
|
|
57
57
|
"伤害惯性机制",
|
|
58
58
|
"伤害惯性"
|
|
59
59
|
],
|
|
60
60
|
[
|
|
61
|
-
|
|
61
|
+
5,
|
|
62
62
|
"伤害惯性",
|
|
63
63
|
"伤害惯性"
|
|
64
64
|
],
|
|
65
65
|
[
|
|
66
|
-
|
|
66
|
+
6,
|
|
67
67
|
"叠伤惯性",
|
|
68
68
|
"伤害惯性"
|
|
69
69
|
],
|
|
70
70
|
[
|
|
71
|
-
|
|
71
|
+
7,
|
|
72
72
|
"惯性机制",
|
|
73
73
|
"伤害惯性"
|
|
74
74
|
],
|
|
@@ -78,54 +78,109 @@
|
|
|
78
78
|
"伤害惯性"
|
|
79
79
|
],
|
|
80
80
|
[
|
|
81
|
-
|
|
81
|
+
9,
|
|
82
82
|
"组队开箱子",
|
|
83
83
|
"地图宝箱"
|
|
84
84
|
],
|
|
85
85
|
[
|
|
86
|
-
|
|
86
|
+
10,
|
|
87
87
|
"开箱子",
|
|
88
88
|
"地图宝箱"
|
|
89
89
|
],
|
|
90
90
|
[
|
|
91
|
-
|
|
91
|
+
11,
|
|
92
92
|
"组队开箱",
|
|
93
93
|
"地图宝箱"
|
|
94
94
|
],
|
|
95
95
|
[
|
|
96
|
-
|
|
96
|
+
12,
|
|
97
97
|
"地图箱子",
|
|
98
98
|
"地图宝箱"
|
|
99
99
|
],
|
|
100
100
|
[
|
|
101
|
-
|
|
101
|
+
13,
|
|
102
102
|
"野外秘宝",
|
|
103
103
|
"地图宝箱"
|
|
104
104
|
],
|
|
105
105
|
[
|
|
106
|
-
|
|
106
|
+
14,
|
|
107
107
|
"野外宝箱",
|
|
108
108
|
"地图宝箱"
|
|
109
109
|
],
|
|
110
110
|
[
|
|
111
|
-
|
|
111
|
+
15,
|
|
112
112
|
"野外箱子",
|
|
113
113
|
"地图宝箱"
|
|
114
114
|
],
|
|
115
115
|
[
|
|
116
|
-
|
|
116
|
+
16,
|
|
117
117
|
"地图秘宝",
|
|
118
118
|
"地图宝箱"
|
|
119
119
|
],
|
|
120
120
|
[
|
|
121
|
-
|
|
121
|
+
17,
|
|
122
122
|
"地图宝箱",
|
|
123
123
|
"地图宝箱"
|
|
124
124
|
],
|
|
125
125
|
[
|
|
126
|
-
|
|
126
|
+
18,
|
|
127
127
|
"开箱",
|
|
128
128
|
"地图宝箱"
|
|
129
|
+
],
|
|
130
|
+
[
|
|
131
|
+
19,
|
|
132
|
+
"破坏部位",
|
|
133
|
+
"部位破坏"
|
|
134
|
+
],
|
|
135
|
+
[
|
|
136
|
+
20,
|
|
137
|
+
"部位破坏",
|
|
138
|
+
"部位破坏"
|
|
139
|
+
],
|
|
140
|
+
[
|
|
141
|
+
21,
|
|
142
|
+
"白圈",
|
|
143
|
+
"部位破坏"
|
|
144
|
+
],
|
|
145
|
+
[
|
|
146
|
+
22,
|
|
147
|
+
"破位",
|
|
148
|
+
"部位破坏"
|
|
149
|
+
],
|
|
150
|
+
[
|
|
151
|
+
23,
|
|
152
|
+
"连击",
|
|
153
|
+
"连击"
|
|
154
|
+
],
|
|
155
|
+
[
|
|
156
|
+
24,
|
|
157
|
+
"连击系统",
|
|
158
|
+
"连击"
|
|
159
|
+
],
|
|
160
|
+
[
|
|
161
|
+
25,
|
|
162
|
+
"连击效果",
|
|
163
|
+
"连击"
|
|
164
|
+
],
|
|
165
|
+
[
|
|
166
|
+
26,
|
|
167
|
+
"料理",
|
|
168
|
+
"料理"
|
|
169
|
+
],
|
|
170
|
+
[
|
|
171
|
+
27,
|
|
172
|
+
"宠物",
|
|
173
|
+
"宠物"
|
|
174
|
+
],
|
|
175
|
+
[
|
|
176
|
+
28,
|
|
177
|
+
"练宠",
|
|
178
|
+
"宠物"
|
|
179
|
+
],
|
|
180
|
+
[
|
|
181
|
+
29,
|
|
182
|
+
"宠物系统",
|
|
183
|
+
"宠物"
|
|
129
184
|
]
|
|
130
185
|
]
|
|
131
186
|
}
|
package/lib/index.js
CHANGED
|
@@ -4,8 +4,8 @@ exports.apply = exports.Config = exports.name = void 0;
|
|
|
4
4
|
const koishi_1 = require("koishi");
|
|
5
5
|
exports.name = 'toram';
|
|
6
6
|
exports.Config = koishi_1.Schema.object({
|
|
7
|
-
机器人qq: koishi_1.Schema.string().default('
|
|
8
|
-
版本等级: koishi_1.Schema.number().default(
|
|
7
|
+
机器人qq: koishi_1.Schema.string().default('请在此处填写机器人使用的QQ号').description('机器人的使用的QQ号'),
|
|
8
|
+
版本等级: koishi_1.Schema.number().default(250).description('当前游戏等级版本'),
|
|
9
9
|
升级_定点王数量: koishi_1.Schema.number().default(6).description('使用升级指令时返回的定点王数量'),
|
|
10
10
|
升级_野王数量: koishi_1.Schema.number().default(4).description('使用升级指令时返回的野王数量'),
|
|
11
11
|
料理_最低返回数量要求: koishi_1.Schema.number().default(15).description('使用料理指令且不指定等级时最少返回的玩家昵称数量(如果数据库数量满足)')
|
|
@@ -69,7 +69,7 @@ async function apply(ctx, config) {
|
|
|
69
69
|
const databasesToUpsert = [
|
|
70
70
|
{ tableName: 'toram_boss',
|
|
71
71
|
fileName: './data/boss',
|
|
72
|
-
version: '0.5.
|
|
72
|
+
version: '0.5.3' },
|
|
73
73
|
{ tableName: 'toram_dishes',
|
|
74
74
|
fileName: './data/dishes',
|
|
75
75
|
version: '0.5.1' },
|
|
@@ -78,10 +78,10 @@ async function apply(ctx, config) {
|
|
|
78
78
|
version: '0.5.1' },
|
|
79
79
|
{ tableName: 'toram_terminology',
|
|
80
80
|
fileName: './data/terminology',
|
|
81
|
-
version: '0.5.
|
|
81
|
+
version: '0.5.2' },
|
|
82
82
|
{ tableName: 'toram_terminology_name',
|
|
83
83
|
fileName: './data/terminology_name',
|
|
84
|
-
version: '0.5.
|
|
84
|
+
version: '0.5.2' }
|
|
85
85
|
];
|
|
86
86
|
// 玩家等级差经验倍率
|
|
87
87
|
const PlayerExpRate = [11, 11, 11, 11, 11, 10, 9, 7, 3];
|
|
@@ -418,12 +418,13 @@ async function apply(ctx, config) {
|
|
|
418
418
|
if (TerminologyName == undefined) {
|
|
419
419
|
const GetTerminologyList = await ctx.database.get('toram_terminology', { id: { $gte: 1, $lte: 100 } });
|
|
420
420
|
const TerminologyList = GetTerminologyList.map((Terminology) => {
|
|
421
|
-
return `${Terminology?.
|
|
421
|
+
return `${Terminology?.type}`;
|
|
422
422
|
})
|
|
423
423
|
.sort(function compareFunction(item1, item2) {
|
|
424
424
|
return item1.localeCompare(item2);
|
|
425
425
|
});
|
|
426
426
|
text = '当前可查询的游戏术语如下:\n' + TerminologyList;
|
|
427
|
+
text = text.replace(/,/g, ',');
|
|
427
428
|
return text;
|
|
428
429
|
}
|
|
429
430
|
const GetTerminologyType = await ctx.database.get('toram_terminology_name', { name: TerminologyName });
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -18,6 +18,18 @@ QQ:1874053520
|
|
|
18
18
|
|
|
19
19
|
————————————
|
|
20
20
|
|
|
21
|
+
0.5.3
|
|
22
|
+
|
|
23
|
+
等级上限预载至250,相关boss数据更新
|
|
24
|
+
|
|
25
|
+
————————————
|
|
26
|
+
|
|
27
|
+
0.5.2
|
|
28
|
+
|
|
29
|
+
初步填充数据表toram_terminology及toram_terminology_name
|
|
30
|
+
|
|
31
|
+
————————————
|
|
32
|
+
|
|
21
33
|
0.5.1
|
|
22
34
|
|
|
23
35
|
新增游戏术语查询功能【需要数据表toram_terminology及toram_terminology_name】
|