mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
add:绝区零攻略查询
This commit is contained in:
parent
af3b551a6a
commit
26fd629d33
3 changed files with 115 additions and 5 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import settings from '../settings.js';
|
||||
import PartnerId2SpriteId from '../../resources/map/PartnerId2SpriteId.json?json';
|
||||
import PartnerId2SpriteId from '../../resources/map/PartnerId2SpriteId.json' assert { type: "json" };
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -63,13 +63,13 @@ export const atlasToName = _atlas => {
|
|||
};
|
||||
|
||||
/**
|
||||
* @param {string} atlas
|
||||
* @param {string} _atlas
|
||||
* @returns string | null
|
||||
*/
|
||||
export const atlasToSprite = atlas => {
|
||||
export const atlasToSprite = _atlas => {
|
||||
const atlas = settings.getConfig('atlas');
|
||||
for (const [_id, data] of Object.entries(atlas)) {
|
||||
if (data.includes(atlas)) return data['sprite'];
|
||||
if (data.includes(_atlas)) return data['sprite'];
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import WeaponId2Sprite from '../../resources/map/WeaponId2Sprite.json?json';
|
||||
import WeaponId2Sprite from '../../resources/map/WeaponId2Sprite.json' assert { type: "json" };
|
||||
|
||||
/**
|
||||
* @param {string} id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue