继续修改原神角色数据列表

2024-08-24 08:52

本文主要是介绍继续修改原神角色数据列表,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

 

<!DOCTYPE html>
<html lang="zh-cn">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>原神4.8版本获得角色数据表</title>
</head>
<style>#GenshinRoleTableContainer {display: flex;table {border-collapse: collapse;caption {background-color: #80a4b1;border-radius: 5px 5px 0 0;}th,td {text-align: center;border: 1px solid #ddd;}th {background-color: #9f9e9e;}td {color: hsl(0, 0%, 100%);text-shadow: 1px 1px 1px #030303;}}/* 列表 */#GenshinRoleTable,#cultivateGenshinRole,#haveGenshinRole {margin-top: 45px;}/* 鼠标移入显示图片添加过渡效果 */.zoom-image {transition: transform 0.3s ease-in-out;}/* 按钮√ */.cultivate,.checkButton {background-color: #f9030300;height: 15px;width: 25px;border-top: none;border-right: none;border-radius: 0;transform: rotate(-45deg);transition: all 0.5s ease-in-out;}}
</style>
<body><div id="GenshinRoleTableContainer"><div><table id="GenshinRoleTable"></table></div><div><table id="haveGenshinRole"></table></div><div><table id="cultivateGenshinRole"></table></div></div>
</body>
<!-- 引入(原神角色数据,拥有角色数据,重点培养角色数据)js文件 -->
<script src="D:/data/原神/GenshinRole.js"></script>
<script src="D:/data/原神/haveGenshinRole.js"></script>
<script>/* 元素颜色数据*/// 根据元素名称获取对应的颜色function getElementColor(element) {const colors = {"火": "#FF9933","水": "#3399FF","风": "#66c6ac","雷": "#CC66FF","草": "#66CC66","冰": "#99CCFF","岩": "#FFCC33"};return colors[element];}/* 元素颜色数据 结束*//*根据元素名称获取对应的元素图片*/function getElementImage(element) {const foundElement = GenshinRole.find(e => e.element === element);return foundElement ? foundElement.elementImage : "";}/*根据元素名称获取对应的元素图片 结束*//* 根据角色名称获取对应的角色图片*/function getCharacterImage(role) {for (const element of GenshinRole) {const foundRole = element.role.find(r => r.name === role);if (foundRole) {return foundRole.image;}}return "";}/* 根据角色名称获取对应的角色图片 结束*//*原神角色数据列表 开始*/function GenshinRoleTable() {// 获取表格元素const GenshinRoleTable = document.getElementById("GenshinRoleTable");// 设置表格的初始HTML结构GenshinRoleTable.innerHTML = `
<caption><b>原神4.8版本角色数据</b><a href="https://genshin-builds.com/cn/characters" target="_blank">数据来源:(genshin-builds.com)</a>
</caption>
<tr><th>序号</th><th colspan="2">元素</th><th colspan="2">角色</th><th>获得</th>
</tr>
`;let row = 1; // 初始化行号let lastElement = null; // 用于记录上一个元素,避免重复插入元素图标// 遍历角色数据GenshinRole.forEach((elementData, i) => {let elementIndex = 1; // 重置元素角色序号// 遍历每个元素的角色elementData.role.forEach((character, j) => {const newRow = GenshinRoleTable.insertRow(); // 插入新行newRow.insertCell().textContent = row++; // 插入序号单元格// 如果当前元素与上一个元素不同,插入元素图标if (elementData.element !== lastElement) {const elementCell = newRow.insertCell();elementCell.rowSpan = elementData.role.length; // 设置元素单元格的行跨度const elementImage = document.createElement('img'); // 创建元素图标elementImage.src = getElementImage(elementData.element); // 设置图标路径elementImage.style.width = '24px'; // 设置图标宽度elementImage.onerror = function () {elementCell.textContent = elementData.element; // 如果图标加载失败,显示元素名称};elementImage.title = elementData.element; // 添加title属性显示元素名称elementCell.appendChild(elementImage); // 将图标添加到单元格lastElement = elementData.element; // 更新上一个元素}newRow.insertCell().textContent = elementIndex++; // 显示元素角色序号const characterImageCell = newRow.insertCell(); // 插入角色图标单元格const characterImage = document.createElement('img'); // 创建角色图标characterImage.src = getCharacterImage(character.name); // 设置图标路径characterImage.style.width = '48px'; // 设置图标宽度characterImageCell.appendChild(characterImage); // 将图标添加到单元格const roleCell = newRow.insertCell(); // 插入角色名称单元格roleCell.textContent = character.name; // 设置角色名称roleCell.style.color = character.star === "5" ? "#ac7647" : "#846baa"; // 根据星级设置颜色const addButtonCell = newRow.insertCell(); // 插入“拥有”按钮单元格// 检查角色是否在 haveGenshinRole 中const isInHaveGenshinRole = haveGenshinRole.some(e => e.role.some(r => r.name === character.name));if (!isInHaveGenshinRole) {const addButton1 = document.createElement('button'); // 创建第一个按钮addButton1.textContent = '没有'; // 设置第一个按钮文本addButtonCell.appendChild(addButton1); // 将第一个按钮添加到单元格} else {const addButton2 = document.createElement('button'); // 创建第二个按钮addButton2.textContent = ''; // 设置第二个按钮文本addButton2.className = 'checkButton'; // 设置按钮的类名为 'checkButton'addButtonCell.appendChild(addButton2); // 将第二个按钮添加到单元格}newRow.style.backgroundColor = getElementColor(elementData.element); // 根据元素设置行背景颜色// 打印角色名称到控制台// console.log(character.name);});});}GenshinRoleTable(); // 调用函数渲染表格/*原神角色数据列表 结束*//* 获得角色数据列表*/function renderTable() {const haveGenshinRoleTable = document.getElementById("haveGenshinRole");initializeTable(haveGenshinRoleTable, "获得角色数据", true); // 修改这里,将 isAddButton 设置为 truelet row = 1; // 初始化序号haveGenshinRole.forEach((elementData) => {elementData.role.forEach((character) => {addCharacterRow(haveGenshinRoleTable, character, elementData.element, row++);});});// 新增代码:渲染重点培养角色表格const cultivateGenshinRoleTable = document.getElementById("cultivateGenshinRole");initializeTable(cultivateGenshinRoleTable, "重点培养的角色", false);row = 1; // 重置序号cultivateGenshinRole.forEach((character) => {const elementData = haveGenshinRole.find(e => e.role.some(r => r.name === character.name));if (elementData) {const fullCharacterData = elementData.role.find(r => r.name === character.name);addCharacterRow(cultivateGenshinRoleTable, fullCharacterData, elementData.element, row++);}});}let isSorted = false; // 记录当前是否已经排序// 初始化表格function initializeTable(table, captionText, isAddButton = false) {table.innerHTML = `
<caption><b>${captionText}</b>  
</caption>
<tr><th>序号</th><th>角色</th><th class="hidden-star">星级</th><th>等级</th><th>命座</th><th style="width:100px;">天赋</th><th>备注</th>
</tr>
`;// 为“命座”按钮添加点击事件监听器if (isAddButton) {const sortButton = document.createElement('button');sortButton.id = 'sortButton';sortButton.innerHTML = '品质排序';// 将按钮直接插入到标题行中table.querySelector('caption b').insertAdjacentElement('afterend', sortButton);sortButton.addEventListener('click', () => {isSorted = !isSorted; // 切换排序状态sortTable(table, isSorted);});}// 添加CSS类来隐藏星级列table.querySelectorAll('.hidden-star').forEach(th => th.style.display = 'none');}// 排序表格function sortTable(table, isSorted) {const rows = Array.from(table.rows).slice(1); // 获取所有行,排除表头if (isSorted) {rows.sort((a, b) => {const starA = a.cells[2].textContent;const starB = b.cells[2].textContent;const constellationA = parseInt(a.cells[4].textContent, 10);const constellationB = parseInt(b.cells[4].textContent, 10);if (starA === "5" && starB !== "5") {return -1;} else if (starA !== "5" && starB === "5") {return 1;} else {return constellationB - constellationA;}});} else {// 恢复默认排序,按照添加的顺序rows.sort((a, b) => {const indexA = parseInt(a.cells[0].textContent, 10);const indexB = parseInt(b.cells[0].textContent, 10);return indexA - indexB;});}// 清空表格并重新插入排序后的行while (table.rows.length > 1) {table.deleteRow(1);}rows.forEach(row => {table.appendChild(row);// 检查星级和命座,设置背景颜色const star = row.cells[2].textContent;const constellation = parseInt(row.cells[4].textContent, 10);if (star === "5" || constellation === 6) {row.cells[1].style.backgroundColor = 'yellow'; // 设置显眼的背景颜色row.cells[3].style.backgroundColor = 'yellow'; // 设置显眼的背景颜色row.cells[4].style.backgroundColor = 'yellow'; // 设置显眼的背景颜色row.cells[5].style.backgroundColor = 'yellow'; // 设置显眼的背景颜色} else {row.cells[1].style.backgroundColor = ''; // 恢复默认背景颜色row.cells[3].style.backgroundColor = ''; // 恢复默认背景颜色row.cells[4].style.backgroundColor = ''; // 恢复默认背景颜色row.cells[5].style.backgroundColor = ''; // 恢复默认背景颜色}});}// 添加角色行function addCharacterRow(table, character, element, rowNumber) {const newRow = table.insertRow();newRow.insertCell().textContent = rowNumber; // 使用row变量作为序号const roleCell = newRow.insertCell();roleCell.textContent = character.name;// 检查角色是否在 cultivateGenshinRole 列表中const isCultivateRole = cultivateGenshinRole.some(c => c.name === character.name);if (isCultivateRole && table.id === "haveGenshinRole") {// 添加类名为 .cultivate 的按钮const cultivateButton = document.createElement('button');cultivateButton.className = 'cultivate';roleCell.appendChild(cultivateButton);}const star = getStar(character.name, element);roleCell.style.color = star === "5" ? "#ac7647" : "#846baa";const starCell = newRow.insertCell();starCell.textContent = star; // 显示星级starCell.style.display = 'none'; // 隐藏星级单元格newRow.insertCell().innerHTML = `<span >${character.level}</span>`;newRow.insertCell().innerHTML = `<span >${character.constellation}</span>`;newRow.insertCell().innerHTML = `<span >${character.talent}</span>`;newRow.insertCell().innerHTML = `<span >${character.note}</span>`;newRow.style.backgroundColor = getElementColor(element);// 添加鼠标进入角色名称单元格时显示放大角色图标的功能roleCell.addEventListener('mouseenter', (event) => showZoomImage(character.name, event));// 添加鼠标离开角色名称单元格时移除放大角色图标的功能roleCell.addEventListener('mouseleave', hideZoomImage);}// 获取角色星级function getStar(roleName, element) {const elementData = GenshinRole.find(e => e.element === element);if (elementData) {const role = elementData.role.find(r => r.name === roleName);return role ? role.star : "";}return "";}// 显示放大角色图标function showZoomImage(roleName, event) {const img = createZoomImage(roleName, event);document.body.appendChild(img);}// 创建放大角色图标function createZoomImage(roleName, event) {const img = document.createElement('img');img.src = getCharacterImage(roleName);img.style.transform = 'scale(3)';img.style.position = 'fixed';img.style.zIndex = '1000';img.style.left = `${event.clientX + 10}px`;img.style.top = `${event.clientY + 10}px`;img.classList.add('zoom-image'); // 添加过渡效果类if (event.clientY + img.height + 20 > window.innerHeight) {img.style.top = `${event.clientY - img.height - 10}px`;}return img;}// 隐藏放大角色图标function hideZoomImage() {const img = document.querySelector('img.zoom-image');if (img) {img.remove();}}renderTable();/* 获得角色数据列表 结束*/
</script>
</html>
 /* 原神4.8版本角色数据*/const GenshinRole = [{element: "火", // 元素类型elementImage: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/elements/Pyro.png?strip=all&quality=75&w=48", // 元素图标role: [{ star: "5", name: "阿蕾奇诺", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/arlecchino/image.png?strip=all&quality=100&w=140", },{ star: "5", name: "林尼", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/lyney/image.png?strip=all&quality=100&w=140" },{ star: "5", name: "迪希雅", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/dehya/image.png?strip=all&quality=100&w=140" },{ star: "5", name: "迪卢克", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/diluc/image.png?strip=all&quality=100&w=140" },{ star: "5", name: "胡桃", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/hu_tao/image.png?strip=all&quality=100&w=140", },{ star: "5", name: "可莉", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/klee/image.png?strip=all&quality=100&w=140" },{ star: "5", name: "宵宫", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/yoimiya/image.png?strip=all&amp;quality=100&amp;w=140" },{ star: "4", name: "托马", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/thoma/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "烟绯", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/yanfei/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "香菱", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/xiangling/image.png?strip=all&quality=100&w=140" },{ star: "4", name: "班尼特", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/bennett/image.png?strip=all&quality=100&w=140" },{ star: "4", name: "安柏", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/amber/image.png?strip=all&quality=100&w=140" },{ star: "4", name: "辛焱", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/xinyan/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "嘉明", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/gaming/image.png?strip=all&quality=100&w=140" },{ star: "4", name: "夏沃蕾", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/chevreuse/image.png?strip=all&quality=100&w=140" },{ star: "5", name: "旅行者 (火)", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/traveler_electro/image.png?strip=all&quality=100&w=140" },]},{element: "水", // 元素类型elementImage: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/elements/Hydro.png?strip=all&quality=75&w=48", // 元素图标role: [{ star: "5", name: "妮露", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/nilou/image.png?strip=all&amp;quality=100&amp;w=140" },{ star: "5", name: "莫娜", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/mona/image.png?strip=all&quality=100&w=140" },{ star: "5", name: "达达利亚", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/tartaglia/image.png?strip=all&quality=100&w=140" },{ star: "5", name: "珊瑚宫心海", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/sangonomiya_kokomi/image.png?strip=all&quality=100&w=140", },{ star: "5", name: "希格雯", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/sigewinne/image.png?strip=all&quality=100&w=140" },{ star: "5", name: "夜兰", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/yelan/image.png?strip=all&quality=100&w=140" },{ star: "5", name: "神里绫人", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/kamisato_ayato/image.png?strip=all&quality=100&w=140" },{ star: "5", name: "芙宁娜", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/furina/image.png?strip=all&quality=100&w=140" },{ star: "5", name: "那维莱特", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/neuvillette/image.png?strip=all&quality=100&w=140" },{ star: "4", name: "芭芭拉", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/barbara/image.png?strip=all&quality=100&w=140" },{ star: "4", name: "行秋", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/xingqiu/image.png?strip=all&quality=100&w=140" },{ star: "4", name: "坎蒂丝", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/candace/image.png?strip=all&amp;quality=100&amp;w=140" },{ star: "5", name: "旅行者 (水)", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/traveler_anemo/image.png?strip=all&quality=100&w=140" },]},{element: "风", // 元素类型elementImage: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/elements/Anemo.png?strip=all&quality=75&w=48", // 元素图标role: [{ star: "5", name: "温迪", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/venti/image.png?strip=all&quality=100&w=140" },{ star: "5", name: "琴", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/jean/image.png?strip=all&quality=100&w=140" },{ star: "5", name: "魈", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/xiao/image.png?strip=all&quality=100&w=140" },{ star: "5", name: "闲云", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/xianyun/image.png?strip=all&quality=100&w=140" },{ star: "5", name: "枫原万叶", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/kaedehara_kazuha/image.png?strip=all&quality=100&w=140" },{ star: "5", name: "流浪者", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/wanderer/image.png?strip=all&quality=100&w=140" },{ star: "4", name: "珐露珊", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/faruzan/image.png?strip=all&quality=100&w=140" },{ star: "4", name: "砂糖", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/sucrose/image.png?strip=all&quality=100&w=140" },{ star: "4", name: "鹿野院平藏", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/shikanoin_heizou/image.png?strip=all&quality=100&w=140" },{ star: "4", name: "琳妮特", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/lynette/image.png?strip=all&quality=100&w=140" },{ star: "4", name: "早柚", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/sayu/image.png?strip=all&amp;quality=100&amp;w=140" },{ star: "5", name: "旅行者 (风)", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/traveler_anemo/image.png?strip=all&quality=100&w=140" },]},{element: "雷", // 元素类型elementImage: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/elements/Electro.png?strip=all&quality=75&w=48", // 元素图标role: [{ star: "5", name: "刻晴", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/keqing/image.png?strip=all&quality=100&w=140" },{ star: "5", name: "雷电将军", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/raiden_shogun/image.png?strip=all&quality=100&w=140" },{ star: "5", name: "八重神子", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/yae_miko/image.png?strip=all&quality=100&w=140", },{ star: "5", name: "克洛琳德", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/clorinde/image.png?strip=all&quality=100&w=140", },{ star: "5", name: "赛诺", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/cyno/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "菲谢尔", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/fischl/image.png?strip=all&quality=100&w=140" },{ star: "4", name: "北斗", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/beidou/image.png?strip=all&quality=100&w=140" },{ star: "4", name: "丽莎", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/lisa/image.png?strip=all&quality=100&w=140" },{ star: "4", name: "雷泽", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/razor/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "赛索斯", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/sethos/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "多莉", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/dori/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "久岐忍", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/kuki_shinobu/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "九条裟罗", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/kujou_sara/image.png?strip=all&quality=100&w=140", },{ star: "5", name: "旅行者 (雷)", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/traveler_dendro/image.png?strip=all&quality=100&w=140" }]},{element: "草", // 元素类型elementImage: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/elements/Dendro.png?strip=all&quality=75&w=48", // 元素图标role: [{ star: "5", name: "艾梅莉埃", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/emilie/image.png?strip=all&quality=100&w=140", },{ star: "5", name: "艾尔海森", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/alhaitham/image.png?strip=all&quality=100&w=140", },{ star: "5", name: "白术", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/baizhu/image.png?strip=all&quality=100&w=140", },{ star: "5", name: "纳西妲", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/nahida/image.png?strip=all&quality=100&w=140", },{ star: "5", name: "提纳里", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/tighnari/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "绮良良", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/kirara/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "卡维", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/kaveh/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "瑶瑶", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/yaoyao/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "柯莱", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/collei/image.png?strip=all&quality=100&w=140", },{ star: "5", name: "旅行者 (草)", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/traveler_dendro/image.png?strip=all&quality=100&w=140" }]},{element: "冰", // 元素类型elementImage: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/elements/Cryo.png?strip=all&quality=75&w=48", // 元素图标role: [{ star: "5", name: "莱欧斯利", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/wriothesley/image.png?strip=all&quality=100&w=140", },{ star: "5", name: "七七", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/qiqi/image.png?strip=all&quality=100&w=140", },{ star: "5", name: "甘雨", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/ganyu/image.png?strip=all&quality=100&w=140", },{ star: "5", name: "申鹤", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/shenhe/image.png?strip=all&quality=100&w=140", },{ star: "5", name: "神里绫华", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/kamisato_ayaka/image.png?strip=all&quality=100&w=140", },{ star: "5", name: "埃洛伊", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/aloy/image.png?strip=all&quality=100&w=140", },{ star: "5", name: "优菈", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/eula/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "菲米尼", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/freminet/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "米卡", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/mika/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "莱依拉", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/layla/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "罗莎莉亚", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/rosaria/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "迪奥娜", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/diona/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "重云", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/chongyun/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "凯亚", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/kaeya/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "夏洛蒂", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/charlotte/image.png?strip=all&quality=100&w=140", },{ star: "5", name: "旅行者 (冰)", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/traveler_geo/image.png?strip=all&quality=100&w=140" }]},{element: "岩", // 元素类型elementImage: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/elements/Geo.png?strip=all&quality=75&w=48", // 元素图标role: [{ star: "5", name: "千织", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/chiori/image.png?strip=all&quality=100&w=140", },{ star: "5", name: "娜维娅", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/navia/image.png?strip=all&quality=100&w=140", },{ star: "5", name: "荒泷一斗", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/arataki_itto/image.png?strip=all&quality=100&w=140", },{ star: "5", name: "阿贝多", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/albedo/image.png?strip=all&quality=100&w=140", },{ star: "5", name: "钟离", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/zhongli/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "云堇", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/yun_jin/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "五郎", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/gorou/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "凝光", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/ningguang/image.png?strip=all&quality=100&w=140", },{ star: "4", name: "诺艾尔", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/noelle/image.png?strip=all&quality=100&w=140", },{ star: "5", name: "旅行者 (岩)", image: "https://i2.wp.com/genshinbuilds.aipurrjects.com/genshin/characters/traveler_geo/image.png?strip=all&quality=100&w=140", },]}
];
/* 原神4.8版本角色数据 结束*/
/*培养数据*/
const cultivateGenshinRole = [{ name: "宵宫" },{ name: "夜兰" },{ name: "班尼特" },{ name: "钟离" },{ name: "雷电将军" },{ name: "枫原万叶" },{ name: "行秋" },{ name: "瑶瑶" }
];
/*培养数据* 结束*/
/* 134角色数据*/
const haveGenshinRole = [{element: "火", // 元素类型role: [{ name: "迪卢克", level: 90, constellation: 0, talent: "1/1/1", note: "备注" },{ name: "宵宫", level: 90, constellation: 1, talent: "1/1/1", note: "备注" },{ name: "迪希雅", level: 90, constellation: 1, talent: "1/1/1", note: "备注" },{ name: "托马", level: 20, constellation: 0, talent: "1/1/1", note: "备注" },{ name: "烟绯", level: 80, constellation: 6, talent: "1/1/1", note: "备注" },{ name: "香菱", level: 90, constellation: 3, talent: "1/1/1", note: "备注" },{ name: "班尼特", level: 90, constellation: 5, talent: "1/1/1", note: "备注" },{ name: "安柏", level: 40, constellation: 0, talent: "1/1/1", note: "备注" },// { name: "辛焱", level: 1, constellation: 0, talent: "1/1/1", note: "备注" },{ name: "嘉明", level: 20, constellation: 4, talent: "1/1/1", note: "备注" },{ name: "夏沃蕾", level: 80, constellation: 0, talent: "1/1/1", note: "备注" },]},{element: "水", // 元素类型role: [{ name: "珊瑚宫心海", level: 90, constellation: 0, talent: "1/1/1", note: "备注" },{ name: "夜兰", level: 90, constellation: 2, talent: "1/1/1", note: "备注" },{ name: "芙宁娜", level: 90, constellation: 1, talent: "1/1/1", note: "备注" },// { name: "那维莱特", level: 1, constellation: 0, talent: "1/1/1", note: "备注" },{ name: "芭芭拉", level: 60, constellation: 3, talent: "1/1/1", note: "备注" },{ name: "行秋", level: 90, constellation: 6, talent: "1/1/1", note: "备注" },{ name: "坎蒂丝", level: 19, constellation: 1, talent: "1/1/1", note: "备注" },]},{element: "风", // 元素类型role: [{ name: "琴", level: 60, constellation: 2, talent: "1/1/1", note: "备注" },{ name: "枫原万叶", level: 90, constellation: 1, talent: "1/1/1", note: "备注" },{ name: "流浪者", level: 90, constellation: 0, talent: "1/1/1", note: "备注" },{ name: "珐露珊", level: 90, constellation: 5, talent: "1/1/1", note: "备注" },{ name: "砂糖", level: 90, constellation: 5, talent: "1/1/1", note: "备注" },{ name: "鹿野院平藏", level: 20, constellation: 5, talent: "1/1/1", note: "备注" },{ name: "琳妮特", level: 20, constellation: 0, talent: "1/1/1", note: "备注" },{ name: "早柚", level: 80, constellation: 6, talent: "1/1/1", note: "备注" },]},{element: "雷", // 元素类型role: [{ name: "刻晴", level: 90, constellation: 1, talent: "1/1/1", note: "备注" },{ name: "雷电将军", level: 90, constellation: 3, talent: "1/1/1", note: "备注" },{ name: "菲谢尔", level: 90, constellation: 3, talent: "1/1/1", note: "备注" },{ name: "北斗", level: 20, constellation: 6, talent: "1/1/1", note: "备注" },{ name: "丽莎", level: 60, constellation: 0, talent: "1/1/1", note: "备注" },{ name: "雷泽", level: 50, constellation: 2, talent: "1/1/1", note: "备注" },// { name: "赛索斯", level: 1, constellation: 0, talent: "1/1/1", note: "备注" },{ name: "多莉", level: 20, constellation: 4, talent: "1/1/1", note: "备注" },{ name: "久岐忍", level: 90, constellation: 4, talent: "1/1/1", note: "备注" },{ name: "九条裟罗", level: 90, constellation: 6, talent: "1/1/1", note: "备注" },]},{element: "草", // 元素类型role: [{ name: "纳西妲", level: 90, constellation: 0, talent: "1/1/1", note: "备注" },{ name: "提纳里", level: 70, constellation: 2, talent: "1/1/1", note: "备注" },{ name: "绮良良", level: 40, constellation: 0, talent: "1/1/1", note: "备注" },{ name: "卡维", level: 20, constellation: 1, talent: "1/1/1", note: "备注" },{ name: "瑶瑶", level: 90, constellation: 6, talent: "1/1/1", note: "备注" },{ name: "柯莱", level: 20, constellation: 6, talent: "1/1/1", note: "备注" },// { name: "旅行者 (草)", level: 1, constellation: 0, talent: "1/1/1", note: "备注" }]},{element: "冰", // 元素类型role: [{ name: "七七", level: 90, constellation: 1, talent: "1/1/1", note: "备注" },// { name: "优菈", level: 1, constellation: 0, talent: "1/1/1", note: "备注" },{ name: "菲米尼", level: 20, constellation: 5, talent: "1/1/1", note: "备注" },{ name: "米卡", level: 20, constellation: 1, talent: "1/1/1", note: "备注" },{ name: "莱依拉", level: 40, constellation: 3, talent: "1/1/1", note: "备注" },{ name: "罗莎莉亚", level: 20, constellation: 6, talent: "1/1/1", note: "备注" },{ name: "迪奥娜", level: 90, constellation: 6, talent: "1/1/1", note: "备注" },{ name: "重云", level: 20, constellation: 0, talent: "1/1/1", note: "备注" },{ name: "凯亚", level: 60, constellation: 0, talent: "1/1/1", note: "备注" },{ name: "夏洛蒂", level: 50, constellation: 4, talent: "1/1/1", note: "备注" },]},{element: "岩", // 元素类型role: [{ name: "钟离", level: 90, constellation: 0, talent: "1/1/1", note: "备注" },{ name: "云堇", level: 40, constellation: 0, talent: "1/1/1", note: "备注" },{ name: "五郎", level: 20, constellation: 3, talent: "1/1/1", note: "备注" },{ name: "凝光", level: 70, constellation: 6, talent: "1/1/1", note: "备注" },{ name: "诺艾尔", level: 80, constellation: 6, talent: "1/1/1", note: "备注" },{ name: "旅行者 (岩)", level: 80, constellation: 6, talent: "1/1/1", note: "备注" }]}
];
/* 134角色数据 结束*/

 

 

 

这篇关于继续修改原神角色数据列表的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!


原文地址:
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.chinasem.cn/article/1102018

相关文章

Java如何根据word模板导出数据

《Java如何根据word模板导出数据》这篇文章主要为大家详细介绍了Java如何实现根据word模板导出数据,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... pom.XML文件导入依赖 <dependency> <groupId>cn.afterturn</groupId>

Python实现获取带合并单元格的表格数据

《Python实现获取带合并单元格的表格数据》由于在日常运维中经常出现一些合并单元格的表格,如果要获取数据比较麻烦,所以本文我们就来聊聊如何使用Python实现获取带合并单元格的表格数据吧... 由于在日常运维中经常出现一些合并单元格的表格,如果要获取数据比较麻烦,现将将封装成类,并通过调用list_exc

Mysql数据库中数据的操作CRUD详解

《Mysql数据库中数据的操作CRUD详解》:本文主要介绍Mysql数据库中数据的操作(CRUD),详细描述对Mysql数据库中数据的操作(CRUD),包括插入、修改、删除数据,还有查询数据,包括... 目录一、插入数据(insert)1.插入数据的语法2.注意事项二、修改数据(update)1.语法2.有

SpringBoot实现接口数据加解密的三种实战方案

《SpringBoot实现接口数据加解密的三种实战方案》在金融支付、用户隐私信息传输等场景中,接口数据若以明文传输,极易被中间人攻击窃取,SpringBoot提供了多种优雅的加解密实现方案,本文将从原... 目录一、为什么需要接口数据加解密?二、核心加解密算法选择1. 对称加密(AES)2. 非对称加密(R

详解如何在SpringBoot控制器中处理用户数据

《详解如何在SpringBoot控制器中处理用户数据》在SpringBoot应用开发中,控制器(Controller)扮演着至关重要的角色,它负责接收用户请求、处理数据并返回响应,本文将深入浅出地讲解... 目录一、获取请求参数1.1 获取查询参数1.2 获取路径参数二、处理表单提交2.1 处理表单数据三、

C++类和对象之初始化列表的使用方式

《C++类和对象之初始化列表的使用方式》:本文主要介绍C++类和对象之初始化列表的使用方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录C++初始化列表详解:性能优化与正确实践什么是初始化列表?初始化列表的三大核心作用1. 性能优化:避免不必要的赋值操作2. 强

Spring Validation中9个数据校验工具使用指南

《SpringValidation中9个数据校验工具使用指南》SpringValidation作为Spring生态系统的重要组成部分,提供了一套强大而灵活的数据校验机制,本文给大家介绍了Spring... 目录1. Bean Validation基础注解常用注解示例在控制器中应用2. 自定义约束验证器定义自

C#实现高性能Excel百万数据导出优化实战指南

《C#实现高性能Excel百万数据导出优化实战指南》在日常工作中,Excel数据导出是一个常见的需求,然而,当数据量较大时,性能和内存问题往往会成为限制导出效率的瓶颈,下面我们看看C#如何结合EPPl... 目录一、技术方案核心对比二、各方案选型建议三、性能对比数据四、核心代码实现1. MiniExcel

SQL常用操作精华之复制表、跨库查询、删除重复数据

《SQL常用操作精华之复制表、跨库查询、删除重复数据》:本文主要介绍SQL常用操作精华之复制表、跨库查询、删除重复数据,这些SQL操作涵盖了数据库开发中最常用的技术点,包括表操作、数据查询、数据管... 目录SQL常用操作精华总结表结构与数据操作高级查询技巧SQL常用操作精华总结表结构与数据操作复制表结

Redis中的数据一致性问题以及解决方案

《Redis中的数据一致性问题以及解决方案》:本文主要介绍Redis中的数据一致性问题以及解决方案,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、Redis 数据一致性问题的产生1. 单节点环境的一致性问题2. 网络分区和宕机3. 并发写入导致的脏数据4. 持