poi-plugin-quest-info-2 0.5.9 → 0.5.10
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/build/kcQuestsData/DATA_VERSION +1 -1
- package/build/kcQuestsData/index.ts +1 -1
- package/build/kcQuestsData/quests-scn.json +1 -37
- package/build/kcanotifyGamedata/DATA_VERSION +1 -1
- package/build/kcanotifyGamedata/index.ts +1 -1
- package/package.json +1 -1
- package/scripts/convertAssets.ts +2 -7
- package/scripts/downloadKcQuestsData.ts +7 -8
- package/scripts/downloadKcanotifyGamedata.ts +4 -9
- package/scripts/downloadSprites.ts +2 -7
- package/scripts/utils.ts +8 -0
- package/src/__tests__/kcanotifyData.spec.ts +1 -1
- package/src/__tests__/kcwikiData.spec.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
4a879abd57262c9a0e9acfce90b69be049a71266
|
|
@@ -1753,7 +1753,7 @@
|
|
|
1753
1753
|
"297": {
|
|
1754
1754
|
"code": "B57",
|
|
1755
1755
|
"desc": "精锐 “水上反击部队” 突入 2-5 | 冲之岛近海(2-5), 消灭该海域的敌人战力!",
|
|
1756
|
-
"memo": "2-5BOSS击破(S
|
|
1756
|
+
"memo": "霞(旗艦)+足柄+大淀+朝霜+清霜+1任意2-5BOSS击破(S胜利) 奖励:改修资材 *3礼物箱 *1",
|
|
1757
1757
|
"name": "“礼号作战” 实施!",
|
|
1758
1758
|
"pre": [
|
|
1759
1759
|
"A65",
|
|
@@ -3961,42 +3961,6 @@
|
|
|
3961
3961
|
"B8"
|
|
3962
3962
|
]
|
|
3963
3963
|
},
|
|
3964
|
-
"840": {
|
|
3965
|
-
"code": "2101LQ6",
|
|
3966
|
-
"desc": "节分任务:以轻空母或轻巡级为旗舰,包含 3 艘以上驱逐舰或海防舰的舰队,在节分时期的西南群岛近海 2-1、巴士海峡 2-2、东部奥廖尔海 2-3 进行哨戒,捕捉敌舰队并击破吧!",
|
|
3967
|
-
"memo": "周常任务CL/CVL旗舰,并包含3DD/DE的舰队,分别出击2-1、2-2、2-3并取得A胜或以上。 奖励:節分の豆×2以下奖励三选一:高速修复材 ×3洋上补给 紧急修理资材",
|
|
3968
|
-
"name": "【节分任务】令和三年节分作战",
|
|
3969
|
-
"pre": [
|
|
3970
|
-
"LQ5"
|
|
3971
|
-
]
|
|
3972
|
-
},
|
|
3973
|
-
"841": {
|
|
3974
|
-
"code": "2101LQ7",
|
|
3975
|
-
"desc": "节分任务:以水上机母舰、航空巡洋舰或重巡洋舰为旗舰、与旗舰同舰种的至少 1 艘伴随舰,前往西方爪姆岛近海 4-1、西方咖喱洋海域 4-2、里兰卡岛 4-3,捕捉敌舰队主力,并击灭它们!",
|
|
3976
|
-
"memo": "周常任务AV/CAV/CA旗舰,且再携带一只与旗舰相同舰种的舰船所组成的舰队,分别出击4-1、4-2、4-3并取得S胜。 奖励:節分の豆×2以下奖励三选一:开发资材 ×5伊良湖 改修资材",
|
|
3977
|
-
"name": "【节分任务】令和三年西方海域节分作战",
|
|
3978
|
-
"pre": [
|
|
3979
|
-
"LQ6"
|
|
3980
|
-
]
|
|
3981
|
-
},
|
|
3982
|
-
"842": {
|
|
3983
|
-
"code": "B89",
|
|
3984
|
-
"desc": "以两艘以上的战舰及航空战舰为核心组成的强力战舰战队向冲之岛海域展开,捕捉并歼灭入侵的敌方舰队!",
|
|
3985
|
-
"memo": "2低速战舰/航空战舰+4任意,2-4BOSS取得S胜利 奖励:伊良湖从下列奖励中选择:改良型舰本式叶轮机*1强化型舰本式缶*1",
|
|
3986
|
-
"name": "主力战舰战队,拔锚!",
|
|
3987
|
-
"pre": [
|
|
3988
|
-
"B19"
|
|
3989
|
-
]
|
|
3990
|
-
},
|
|
3991
|
-
"843": {
|
|
3992
|
-
"code": "2101LQ8",
|
|
3993
|
-
"desc": "节分扩张作战:以战舰或航空母舰为旗舰,包含 2 艘以上驱逐舰的舰队,在节分期间的南方海域珊瑚诸岛近海 5-2、沙门海域北方 5-5,以及中部北海域孔雀岛海域 6-4,捕捉敌舰队并将其击灭!(可获取额外战果)!",
|
|
3994
|
-
"memo": "周常任务BB/CV旗舰,并包含2DD的舰队,分别出击5-2、5-5、6-4并取得S胜。 奖励:節分の豆×3战果+203",
|
|
3995
|
-
"name": "【节分扩张任务】令和三年节分作战,全力出击!",
|
|
3996
|
-
"pre": [
|
|
3997
|
-
"LQ7"
|
|
3998
|
-
]
|
|
3999
|
-
},
|
|
4000
3964
|
"844": {
|
|
4001
3965
|
"code": "B90",
|
|
4002
3966
|
"desc": "编成以荒潮改二为旗舰,僚舰中包含另一「第八驱逐队」成员的精锐第一舰队,突入 5-5 | 沙门海域北方(5-5),捕捉接近该方面的强力敌舰队,尽力削弱敌方战力!",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
2022012101
|
package/package.json
CHANGED
package/scripts/convertAssets.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import fs from 'fs'
|
|
2
2
|
import path from 'path'
|
|
3
|
+
import { prepareDir } from './utils'
|
|
3
4
|
|
|
4
5
|
const ASSETS_PATH = path.resolve('assets')
|
|
5
6
|
const OUTPUT_PATH = path.resolve('build')
|
|
@@ -15,19 +16,13 @@ const HEADER = `/**
|
|
|
15
16
|
* Do not edit!
|
|
16
17
|
*/` as const
|
|
17
18
|
|
|
18
|
-
const prepare = () => {
|
|
19
|
-
if (!fs.existsSync(OUTPUT_PATH)) {
|
|
20
|
-
fs.mkdirSync(OUTPUT_PATH, { recursive: true })
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
19
|
function base64Encode(file: string) {
|
|
25
20
|
const bitmap = fs.readFileSync(file)
|
|
26
21
|
return bitmap.toString('base64')
|
|
27
22
|
}
|
|
28
23
|
|
|
29
24
|
function main() {
|
|
30
|
-
|
|
25
|
+
prepareDir(OUTPUT_PATH)
|
|
31
26
|
const imageData = fs
|
|
32
27
|
.readdirSync(ASSETS_PATH)
|
|
33
28
|
// exclusive ignored ext
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
|
-
import
|
|
3
|
-
import { readFileSync, existsSync, writeFileSync, mkdirSync } from 'fs'
|
|
2
|
+
import { existsSync, readFileSync, writeFileSync } from 'fs'
|
|
4
3
|
import pangu from 'pangu'
|
|
4
|
+
import path from 'path'
|
|
5
5
|
import { fetch } from './proxyFetch'
|
|
6
|
+
import { prepareDir } from './utils'
|
|
6
7
|
|
|
7
8
|
// See https://github.com/kcwikizh/kcQuests
|
|
8
9
|
|
|
@@ -12,11 +13,8 @@ const URL = `https://kcwikizh.github.io/kcQuests/${FILE_NAME}`
|
|
|
12
13
|
const VERSION_URL =
|
|
13
14
|
'https://api.github.com/repos/kcwikizh/kcQuests/branches/main'
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
mkdirSync(OUTPUT_PATH, { recursive: true })
|
|
18
|
-
}
|
|
19
|
-
}
|
|
16
|
+
// expired quest: 2021 节分任务
|
|
17
|
+
const IGNORE_DATA = [840, 841, 842, 843] as const
|
|
20
18
|
|
|
21
19
|
const getRemoteVersion = async () => {
|
|
22
20
|
const resp = await fetch(VERSION_URL)
|
|
@@ -60,7 +58,7 @@ const genTS = (version: string) => {
|
|
|
60
58
|
const main = async () => {
|
|
61
59
|
const args = process.argv.slice(2)
|
|
62
60
|
|
|
63
|
-
|
|
61
|
+
prepareDir(OUTPUT_PATH)
|
|
64
62
|
const remoteVersion = await getRemoteVersion()
|
|
65
63
|
const localVersion = getLocalVersion()
|
|
66
64
|
if (remoteVersion === localVersion) {
|
|
@@ -90,6 +88,7 @@ const main = async () => {
|
|
|
90
88
|
json[gameId].desc = pangu.spacing(desc)
|
|
91
89
|
}
|
|
92
90
|
|
|
91
|
+
IGNORE_DATA.forEach((gameId) => delete json[gameId])
|
|
93
92
|
const data = JSON.stringify(json, undefined, 2)
|
|
94
93
|
writeFileSync(`${OUTPUT_PATH}/${FILE_NAME}`, data)
|
|
95
94
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
|
-
import
|
|
3
|
-
import { readFileSync, existsSync, writeFileSync, mkdirSync } from 'fs'
|
|
2
|
+
import { existsSync, readFileSync, writeFileSync } from 'fs'
|
|
4
3
|
import pangu from 'pangu'
|
|
4
|
+
import path from 'path'
|
|
5
5
|
import { fetch } from './proxyFetch'
|
|
6
|
+
import { prepareDir } from './utils'
|
|
6
7
|
|
|
7
8
|
// See https://github.com/antest1/kcanotify-gamedata
|
|
8
9
|
|
|
@@ -14,12 +15,6 @@ const DATA_URL = `${URL_PREFIX}/files`
|
|
|
14
15
|
const LANGS = ['scn', 'tcn', 'jp', 'en', 'ko'] as const
|
|
15
16
|
const LOCALES = ['zh-CN', 'zh-TW', 'ja-JP', 'en-US', 'ko-KR'] as const
|
|
16
17
|
|
|
17
|
-
const prepare = () => {
|
|
18
|
-
if (!existsSync(OUTPUT_PATH)) {
|
|
19
|
-
mkdirSync(OUTPUT_PATH, { recursive: true })
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
18
|
const getRemoteVersion = async () => {
|
|
24
19
|
const resp = await fetch(VERSION_URL)
|
|
25
20
|
if (!resp.ok) {
|
|
@@ -73,7 +68,7 @@ const genTS = (version: string) => {
|
|
|
73
68
|
const main = async () => {
|
|
74
69
|
const args = process.argv.slice(2)
|
|
75
70
|
|
|
76
|
-
|
|
71
|
+
prepareDir(OUTPUT_PATH)
|
|
77
72
|
const remoteVersion = await getRemoteVersion()
|
|
78
73
|
const localVersion = getLocalVersion()
|
|
79
74
|
if (remoteVersion === localVersion) {
|
|
@@ -5,6 +5,7 @@ import crypto from 'crypto'
|
|
|
5
5
|
// See https://sharp.pixelplumbing.com/
|
|
6
6
|
import sharp from 'sharp'
|
|
7
7
|
import { fetch } from './proxyFetch'
|
|
8
|
+
import { prepareDir } from './utils'
|
|
8
9
|
|
|
9
10
|
const OUTPUT_PATH = path.resolve('build', 'dutySprites')
|
|
10
11
|
|
|
@@ -15,12 +16,6 @@ const VERSION = '5.1.2.0'
|
|
|
15
16
|
const SPRITES_URL = `${SERVER_URL}${SPRITES_PATH}?version=${VERSION}`
|
|
16
17
|
const META_URL = `${SERVER_URL}${JSON_PATH}?version=${VERSION}`
|
|
17
18
|
|
|
18
|
-
const prepare = () => {
|
|
19
|
-
if (!fs.existsSync(OUTPUT_PATH)) {
|
|
20
|
-
fs.mkdirSync(OUTPUT_PATH, { recursive: true })
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
19
|
const getFilename = (url: string) => {
|
|
25
20
|
const pathname = new URL(url).pathname
|
|
26
21
|
const index = pathname.lastIndexOf('/')
|
|
@@ -109,7 +104,7 @@ const parseSprites = (sprites: Buffer, meta: KCS2Meta) => {
|
|
|
109
104
|
}
|
|
110
105
|
|
|
111
106
|
const main = async () => {
|
|
112
|
-
|
|
107
|
+
prepareDir(OUTPUT_PATH)
|
|
113
108
|
const [
|
|
114
109
|
{ buffer: metaBuffer },
|
|
115
110
|
{ filePath: spritesPath, buffer: spritesBuffer },
|
package/scripts/utils.ts
ADDED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { version, QuestData } from '../../build/kcanotifyGamedata'
|
|
2
2
|
|
|
3
3
|
test('should Kcanotify Game data version correct', () => {
|
|
4
|
-
expect(version).toMatchInlineSnapshot(`"
|
|
4
|
+
expect(version).toMatchInlineSnapshot(`"2022012101"`)
|
|
5
5
|
})
|
|
6
6
|
|
|
7
7
|
test('should Kcanotify Game data keys correct', () => {
|
|
@@ -2,7 +2,7 @@ import { version, KcwikiQuestData } from '../../build/kcQuestsData'
|
|
|
2
2
|
|
|
3
3
|
test('should KcwikiQuestData Game data version correct', () => {
|
|
4
4
|
expect(version).toMatchInlineSnapshot(
|
|
5
|
-
`"
|
|
5
|
+
`"4a879abd57262c9a0e9acfce90b69be049a71266"`
|
|
6
6
|
)
|
|
7
7
|
})
|
|
8
8
|
|