koishi-plugin-toram 0.7.1 → 0.7.2
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/index.js +3 -6
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -31,7 +31,7 @@ async function apply(ctx, config) {
|
|
|
31
31
|
Value: 'number'
|
|
32
32
|
}, // 对象的值
|
|
33
33
|
{ primary: 'id' });
|
|
34
|
-
const ver = '0.7.
|
|
34
|
+
const ver = '0.7.2'; //当前版本
|
|
35
35
|
const 等级_经验倍率数组 = [11, 11, 11, 11, 11, 10, 9, 7, 3];
|
|
36
36
|
const 简中_数字转化 = { '一': '1', '二': '2', '三': '3', '四': '4', '五': '5', '六': '6', '七': '7', '八': '8', '九': '9', '十': '10' };
|
|
37
37
|
// 随手用到的变量
|
|
@@ -235,8 +235,8 @@ async function apply(ctx, config) {
|
|
|
235
235
|
id: row[0],
|
|
236
236
|
BaseExp: row[1],
|
|
237
237
|
Database: row[2],
|
|
238
|
-
|
|
239
|
-
|
|
238
|
+
Element: row[3],
|
|
239
|
+
Effect: row[4],
|
|
240
240
|
Event: row[5],
|
|
241
241
|
Level: row[6],
|
|
242
242
|
Map: row[7],
|
|
@@ -820,7 +820,6 @@ async function apply(ctx, config) {
|
|
|
820
820
|
FirstLists.push(ReturnFirst2);
|
|
821
821
|
}
|
|
822
822
|
a = 0, b = 0;
|
|
823
|
-
session.send(`FirstLists = ${JSON.stringify(FirstLists)}`);
|
|
824
823
|
for (const ReturnList of FirstLists) {
|
|
825
824
|
for (var i = 0; i < ReturnList?.length ?? 0; i++) {
|
|
826
825
|
if (ReturnList[i] != 0) {
|
|
@@ -891,9 +890,7 @@ async function apply(ctx, config) {
|
|
|
891
890
|
}
|
|
892
891
|
}
|
|
893
892
|
// 第一步消耗潜力
|
|
894
|
-
session.send(`FirstList = ${JSON.stringify(FirstList)}`);
|
|
895
893
|
EquipmentBefore = CopyObject(Equipment);
|
|
896
|
-
session.send(`a = ${a}`);
|
|
897
894
|
if (a == 1) {
|
|
898
895
|
var addFirst = [];
|
|
899
896
|
for (const Enchant of RatioCountList3) {
|