增加提纳里、柯莱、多莉的角色图片

使用临时图标代替暂缺的天赋命座等资源
This commit is contained in:
yoimiya-kokomi 2022-07-14 01:39:24 +08:00
parent fc2a704238
commit 56bbc72362
53 changed files with 22 additions and 11 deletions

View File

@ -17,9 +17,12 @@ export const customCharacters = {
// roleid请参见Yunzai roleId.js // roleid请参见Yunzai roleId.js
10000026: ["魈", "风夜叉"], 10000026: ["魈", "风夜叉"],
10000059: ["鹿野院平藏", "小鹿"], 10000059: ["鹿野院平藏", "小鹿"],
10000100: ["提纳里", "驴"], // ID暂无
10000101: ["柯莱", "柯来", "科莱", "科来"], // ID暂无使用临时ID代替
10000100: ["提纳里", "提那里", "驴"],
10000101: ["柯莱", "柯来", "科莱", "科来", "小天使"],
10000102: ["多莉", "多利", "多力"], 10000102: ["多莉", "多利", "多力"],
// 以下为新增自定义角色角色id请以小写英文定义 // 以下为新增自定义角色角色id请以小写英文定义
paimon: ["派蒙", "应急食物", "应急食品", "吉祥物", "宠物", "外置器官", "会说话的动物", "矮堇瓜", "飞行矮堇瓜", "最好的伙伴"], paimon: ["派蒙", "应急食物", "应急食品", "吉祥物", "宠物", "外置器官", "会说话的动物", "矮堇瓜", "飞行矮堇瓜", "最好的伙伴"],
sb: ["散兵", "国崩", "雷电国崩", "大炮", "雷电大炮", "雷大炮", "伞兵"], sb: ["散兵", "国崩", "雷电国崩", "大炮", "雷电大炮", "雷大炮", "伞兵"],

Binary file not shown.

After

Width:  |  Height:  |  Size: 462 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 575 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 636 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 475 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 262 KiB

After

Width:  |  Height:  |  Size: 230 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 262 KiB

After

Width:  |  Height:  |  Size: 395 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 0 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 262 KiB

After

Width:  |  Height:  |  Size: 272 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -2,7 +2,7 @@ import fs from "fs";
import cheerio from "cheerio"; import cheerio from "cheerio";
import lodash from "lodash"; import lodash from "lodash";
import fetch from "node-fetch"; import fetch from "node-fetch";
import {roleId, abbr} from "../../../config/genshin/roleId.js"; import { roleId, abbr } from "../../../config/genshin/roleId.js";
const _path = process.cwd(); const _path = process.cwd();
let roleIdMap = {}; let roleIdMap = {};
@ -220,9 +220,9 @@ async function saveCharData(url, key, name) {
name = name || data.name; name = name || data.name;
if(!name){ if (!name) {
console.log("角色名不存在"+url); console.log("角色名不存在" + url);
return ; return;
} }
let charPath = `${_path}/plugins/miao-plugin/resources/meta/character/${data.name}/` let charPath = `${_path}/plugins/miao-plugin/resources/meta/character/${data.name}/`
@ -235,7 +235,7 @@ async function saveCharData(url, key, name) {
} }
async function down() { async function down() {
// const url = "https://genshin.honeyhunterworld.com/db/char/characters/?lang=CHS"; //const url = "https://genshin.honeyhunterworld.com/db/char/characters/?lang=CHS";
const url = "https://genshin.honeyhunterworld.com/db/char/unreleased-and-upcoming-characters/?lang=CHS"; const url = "https://genshin.honeyhunterworld.com/db/char/unreleased-and-upcoming-characters/?lang=CHS";
let req = await fetch(url); let req = await fetch(url);
let txt = await req.text(); let txt = await req.text();
@ -254,15 +254,17 @@ async function down() {
if (tRet) { if (tRet) {
if (tRet[1] === "girl") { if (tRet[1] === "girl") {
name = {anemo: "风", geo: "岩", electro: "雷"}[tRet[2]] + "主"; name = { anemo: "风", geo: "岩", electro: "雷" }[tRet[2]] + "主";
} else { } else {
return return
} }
} }
if (key === "heizo") { let nameMap = { dori: "多莉", tighnari: "提纳里", collei: "柯莱" }
name = "鹿野院平藏" if (nameMap[key]) {
name = nameMap[key];
} }
await saveCharData(url, key, name); await saveCharData(url, key, name);
} }
}); });

View File

@ -1,4 +1,4 @@
import {Data} from "../components/index.js"; import { Data } from "../components/index.js";
import lodash from "lodash"; import lodash from "lodash";
import fs from "fs"; import fs from "fs";
import request from "request"; import request from "request";
@ -31,6 +31,12 @@ lodash.forEach(readDir, (c) => {
let char = Data.readJSON(`${_cRoot}/${c}/`, 'data.json'); let char = Data.readJSON(`${_cRoot}/${c}/`, 'data.json');
if (char.name) { if (char.name) {
let nameMap = { dori: "多莉", tighnari: "提纳里", collei: "柯莱" }
if (!lodash.values(nameMap).includes(char.name)) {
return;
}
// 正面 // 正面
// 角色条 // 角色条