mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
更新套装图片map;更新下载节点排序
This commit is contained in:
parent
ec918c8fbc
commit
e9ca415922
10 changed files with 100 additions and 613 deletions
|
|
@ -1,15 +1,15 @@
|
|||
// 节点列表
|
||||
export const URL_LIB = {
|
||||
'[CNJS]': 'http://cn-js-nj-1.lcf.icu:13214',
|
||||
'[TW]': 'http://tw-taipei-1.lcf.icu:20532',
|
||||
'[SG]': 'http://sg-1.lcf.icu:12588',
|
||||
'[US]': 'http://us-lax-2.lcf.icu:12588',
|
||||
'[Chuncheon]': 'https://kr.qxqx.cf',
|
||||
'[Seoul]': 'https://kr-s.qxqx.cf',
|
||||
'[Singapore]': 'https://sg.qxqx.cf',
|
||||
'[MiniGG]': 'http://file.minigg.cn/sayu-bot',
|
||||
'[Lulu]': 'http://lulush.microgg.cn',
|
||||
'[TakeyaYuki]': 'https://gscore.focalors.com',
|
||||
"[Lulu]": "http://lulush.microgg.cn",
|
||||
"[MiniGG]": "http://file.minigg.cn/sayu-bot",
|
||||
"[Singapore]": "https://sg.qxqx.cf",
|
||||
"[Chuncheon]": "https://kr.qxqx.cf",
|
||||
"[CNJS]": "http://cn-js-nj-1.lcf.icu:13214",
|
||||
"[TW]": "http://tw-taipei-1.lcf.icu:20532",
|
||||
"[SG]": "http://sg-1.lcf.icu:12588",
|
||||
"[US]": "http://us-lax-2.lcf.icu:12588",
|
||||
"[Seoul]": "https://kr-s.qxqx.cf",
|
||||
"[TakeyaYuki]": "https://gscore.focalors.com"
|
||||
};
|
||||
|
||||
// 文件类型路径
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import { getMapData } from '../../utils/file.js'
|
||||
|
||||
/** @type {import('../../model/Enka/interface.js').Map.EquipId2Data} */
|
||||
const EquipId2Data = getMapData('EquipId2Data')
|
||||
/** @type {import('../../model/Enka/interface.js').Map.SuitData} */
|
||||
const SuitData = getMapData('SuitData')
|
||||
|
||||
/**
|
||||
* 获取驱动盘装备的图片
|
||||
* 获取驱动盘装备的图片名
|
||||
* @param {string | number} equipId
|
||||
* @returns {string | null}
|
||||
*/
|
||||
|
|
@ -12,17 +12,17 @@ export function equipIdToSprite(equipId) {
|
|||
equipId = equipId.toString()
|
||||
if (equipId.length === 5) {
|
||||
const suitId = equipId.slice(0, 3) + '00'
|
||||
if (EquipId2Data.hasOwnProperty(suitId)) {
|
||||
return EquipId2Data[suitId]['sprite_file'].replace('3D', '')
|
||||
if (SuitData.hasOwnProperty(suitId)) {
|
||||
return SuitData[suitId]['sprite_file']
|
||||
}
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取所有装备的id
|
||||
* 获取所有套装id
|
||||
* @returns {string[]}
|
||||
*/
|
||||
export function getAllEquipID() {
|
||||
return Object.keys(EquipId2Data)
|
||||
export function getAllSuitID() {
|
||||
return Object.keys(SuitData)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue