koishi-plugin-noah 1.3.0 → 1.3.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/games/sdvx/types/index.d.ts +1 -1
- package/lib/index.cjs +14 -9
- package/package.json +73 -73
|
@@ -35,7 +35,7 @@ export type SDVXGrade = 'S' | 'AAA+' | 'AAA' | 'AA+' | 'AA' | 'A+' | 'A' | 'B' |
|
|
|
35
35
|
/**
|
|
36
36
|
* SDVX 通关类型
|
|
37
37
|
*/
|
|
38
|
-
export type SDVXClearType = 'S-PUC' | 'PUC' | 'UC' | 'HC' | 'NC' | 'PLAYED' | 'NO PLAY';
|
|
38
|
+
export type SDVXClearType = 'S-PUC' | 'PUC' | 'UC' | 'MC' | 'HC' | 'NC' | 'PLAYED' | 'NO PLAY';
|
|
39
39
|
/**
|
|
40
40
|
* SDVX 音乐难度数据接口
|
|
41
41
|
*/
|
package/lib/index.cjs
CHANGED
|
@@ -2407,24 +2407,27 @@ var SDVXDrawer = class extends BaseDrawer {
|
|
|
2407
2407
|
const clearType = score.music.clear_type || "PLAYED";
|
|
2408
2408
|
const clearColors = {
|
|
2409
2409
|
PUC: "#F2C027",
|
|
2410
|
-
// Perfect Ultimate Chain
|
|
2410
|
+
// Perfect Ultimate Chain
|
|
2411
2411
|
"S-PUC": "#F2E127",
|
|
2412
|
-
// S-Perfect Ultimate Chain
|
|
2412
|
+
// S-Perfect Ultimate Chain
|
|
2413
2413
|
UC: "#C539AB",
|
|
2414
|
-
// Ultimate Chain
|
|
2414
|
+
// Ultimate Chain
|
|
2415
|
+
MC: "#B3B3B3",
|
|
2416
|
+
// Maxxim Clear
|
|
2415
2417
|
HC: "#C5393B",
|
|
2416
|
-
// Hard Clear
|
|
2418
|
+
// Hard Clear
|
|
2417
2419
|
NC: "#39C539",
|
|
2418
|
-
// Normal Clear
|
|
2420
|
+
// Normal Clear
|
|
2419
2421
|
PLAYED: "#AF970A",
|
|
2420
|
-
// Played
|
|
2422
|
+
// Played
|
|
2421
2423
|
"NO PLAY": "#8F8E8B"
|
|
2422
|
-
// No Play
|
|
2424
|
+
// No Play
|
|
2423
2425
|
};
|
|
2424
2426
|
const clearDisplayText = {
|
|
2425
2427
|
PUC: "PUC",
|
|
2426
2428
|
"S-PUC": "S-PUC",
|
|
2427
2429
|
UC: "UC",
|
|
2430
|
+
MC: "COMP",
|
|
2428
2431
|
HC: "COMP",
|
|
2429
2432
|
NC: "COMP",
|
|
2430
2433
|
PLAYED: "PLAYED",
|
|
@@ -3207,6 +3210,7 @@ var CLEAR_FACTORS = {
|
|
|
3207
3210
|
"S-PUC": 1.1,
|
|
3208
3211
|
PUC: 1.1,
|
|
3209
3212
|
UC: 1.05,
|
|
3213
|
+
MC: 1.04,
|
|
3210
3214
|
HC: 1.02,
|
|
3211
3215
|
NC: 1,
|
|
3212
3216
|
PLAYED: 0.5,
|
|
@@ -3239,7 +3243,7 @@ function getSDVXGrade(score) {
|
|
|
3239
3243
|
}
|
|
3240
3244
|
__name(getSDVXGrade, "getSDVXGrade");
|
|
3241
3245
|
function getSDVXClearType(clearType) {
|
|
3242
|
-
return clearType === 5 ? "PUC" : clearType === 4 ? "UC" : clearType === 3 ? "HC" : clearType === 2 ? "NC" : clearType === 1 ? "PLAYED" : "NO PLAY";
|
|
3246
|
+
return clearType === 6 ? "MC" : clearType === 5 ? "PUC" : clearType === 4 ? "UC" : clearType === 3 ? "HC" : clearType === 2 ? "NC" : clearType === 1 ? "PLAYED" : "NO PLAY";
|
|
3243
3247
|
}
|
|
3244
3248
|
__name(getSDVXClearType, "getSDVXClearType");
|
|
3245
3249
|
|
|
@@ -3961,11 +3965,12 @@ var ScoreService = class _ScoreService {
|
|
|
3961
3965
|
|
|
3962
3966
|
// src/games/sdvx/utils/filter.ts
|
|
3963
3967
|
function parseFilterQuery(query) {
|
|
3964
|
-
const clearTypeList = ["S-PUC", "PUC", "UC", "HC", "NC", "PLAYED", "NO PLAY"];
|
|
3968
|
+
const clearTypeList = ["S-PUC", "PUC", "UC", "MC", "HC", "NC", "PLAYED", "NO PLAY"];
|
|
3965
3969
|
const clearTypeMap = {
|
|
3966
3970
|
spuc: "S-PUC",
|
|
3967
3971
|
puc: "PUC",
|
|
3968
3972
|
uc: "UC",
|
|
3973
|
+
mc: "MC",
|
|
3969
3974
|
hc: "HC",
|
|
3970
3975
|
nc: "NC",
|
|
3971
3976
|
played: "PLAYED",
|
package/package.json
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
"koishi": {
|
|
33
|
-
"description": {
|
|
34
|
-
"en": "A tool bot for arcade music games",
|
|
35
|
-
"zh": "街机音游工具机器人"
|
|
2
|
+
"name": "koishi-plugin-noah",
|
|
3
|
+
"version": "1.3.2",
|
|
4
|
+
"contributors": [
|
|
5
|
+
"Logthm <logthm@outlook.com>"
|
|
6
|
+
],
|
|
7
|
+
"homepage": "https://docs.logthm.cn/noah",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "lib/index.cjs",
|
|
10
|
+
"typings": "lib/index.d.ts",
|
|
11
|
+
"files": [
|
|
12
|
+
"lib",
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"keywords": [
|
|
17
|
+
"chatbot",
|
|
18
|
+
"koishi",
|
|
19
|
+
"plugin"
|
|
20
|
+
],
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"koishi": "^4.18.8"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"adm-zip": "^0.5.16",
|
|
26
|
+
"bwip-js": "^4.6.0",
|
|
27
|
+
"javascript-barcode-reader": "^0.6.9",
|
|
28
|
+
"koishi-plugin-adapter-onebot": "^6.8.0",
|
|
29
|
+
"sharp": "^0.33.5",
|
|
30
|
+
"xml2js": "^0.6.2"
|
|
36
31
|
},
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
"koishi": {
|
|
33
|
+
"description": {
|
|
34
|
+
"en": "A tool bot for arcade music games",
|
|
35
|
+
"zh": "街机音游工具机器人"
|
|
36
|
+
},
|
|
37
|
+
"service": {
|
|
38
|
+
"required": [
|
|
39
|
+
"database",
|
|
40
|
+
"skia"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"locales": [
|
|
44
|
+
"en",
|
|
45
|
+
"zh"
|
|
46
|
+
]
|
|
42
47
|
},
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@haixee/eslint-config": "^2.1.11",
|
|
50
|
+
"@ltxhhz/koishi-plugin-skia-canvas": "^0.0.8",
|
|
51
|
+
"@types/adm-zip": "^0",
|
|
52
|
+
"@types/xml2js": "^0",
|
|
53
|
+
"eslint": "^9.29.0",
|
|
54
|
+
"eslint-config-prettier": "^10.1.5",
|
|
55
|
+
"eslint-plugin-prettier": "^5.5.0",
|
|
56
|
+
"husky": "^9.1.7",
|
|
57
|
+
"lint-staged": "^16.1.2",
|
|
58
|
+
"prettier": "^3.5.3"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"lint": "eslint --ext .js,.ts,.tsx src/",
|
|
62
|
+
"format": "prettier --write \"src/**/*.{js,ts,tsx,json,css,md}\""
|
|
63
|
+
},
|
|
64
|
+
"husky": {
|
|
65
|
+
"hooks": {
|
|
66
|
+
"pre-commit": "lint-staged"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"lint-staged": {
|
|
70
|
+
"*.{js,ts,tsx}": [
|
|
71
|
+
"eslint --fix",
|
|
72
|
+
"prettier --write"
|
|
73
|
+
],
|
|
74
|
+
"*.{css,md,json}": [
|
|
75
|
+
"prettier --write"
|
|
76
|
+
]
|
|
67
77
|
}
|
|
68
|
-
},
|
|
69
|
-
"lint-staged": {
|
|
70
|
-
"*.{js,ts,tsx}": [
|
|
71
|
-
"eslint --fix",
|
|
72
|
-
"prettier --write"
|
|
73
|
-
],
|
|
74
|
-
"*.{css,md,json}": [
|
|
75
|
-
"prettier --write"
|
|
76
|
-
]
|
|
77
|
-
}
|
|
78
78
|
}
|