mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-17 05:37:46 +00:00
fix:gachalog weapon image
This commit is contained in:
parent
1fb7a6ff54
commit
0c7c923a58
2 changed files with 3 additions and 3 deletions
|
|
@ -71,9 +71,9 @@ export const getSquareBangboo = async bangbooId => {
|
||||||
* @returns Promise<string>
|
* @returns Promise<string>
|
||||||
*/
|
*/
|
||||||
export const getWeaponImage = async id => {
|
export const getWeaponImage = async id => {
|
||||||
logger.mark('getWeaponImage', id);
|
logger.debug('getWeaponImage', id);
|
||||||
const name = weapon.IDToWeaponFileName(id);
|
const name = weapon.IDToWeaponFileName(id);
|
||||||
logger.mark('getWeaponImage', name);
|
logger.debug('getWeaponImage', name);
|
||||||
const filename = `${name}.png`;
|
const filename = `${name}.png`;
|
||||||
const weaponPath = path.join(ZZZ_WEAPON_PATH, filename);
|
const weaponPath = path.join(ZZZ_WEAPON_PATH, filename);
|
||||||
if (fs.existsSync(weaponPath)) return weaponPath;
|
if (fs.existsSync(weaponPath)) return weaponPath;
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ export const resourcesPath = path.join(pluginPath, 'resources');
|
||||||
|
|
||||||
export const imageResourcesPath = path.join(resourcesPath, 'images');
|
export const imageResourcesPath = path.join(resourcesPath, 'images');
|
||||||
|
|
||||||
export const mapResourcesPath = path.join(resourcesPath, 'maps');
|
export const mapResourcesPath = path.join(resourcesPath, 'map');
|
||||||
|
|
||||||
// config 路径
|
// config 路径
|
||||||
export const configPath = path.join(pluginPath, 'config');
|
export const configPath = path.join(pluginPath, 'config');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue