2023年4月20日 更新日服花草

This commit is contained in:
枫谷剑仙 2023-04-20 20:00:43 +08:00
parent 20eed80b20
commit 4f777555cd
15 changed files with 36 additions and 46 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1013 KiB

After

Width:  |  Height:  |  Size: 1013 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 652 KiB

After

Width:  |  Height:  |  Size: 809 KiB

View File

@ -207,7 +207,7 @@
},
stats: {
unknown: tp`[ 未知状态: ${'type'}]`, //type
maxhp: tp`最大HP`,
maxhp: tp`${'icon'}最大HP`,
hp: tp`HP`,
chp: tp`当前HP`,
atk: tp`攻击力`,

File diff suppressed because one or more lines are too long

View File

@ -2,10 +2,10 @@
{
"code": "ja",
"ckey": {
"card": "dc3f120e0b7ff1798a3fedcafc040818",
"skill": "fde6e1ec72c8a1cc83817428eb579b1b"
"card": "5d6e363aad10d8b058fce93a92d8dd38",
"skill": "c919de8afda42d3a7ed091529507bd1f"
},
"updateTime": 1681501345458
"updateTime": 1681988728562
},
{
"code": "en",

View File

@ -27,7 +27,7 @@ Array.prototype.distinct = function () {
function sameCard(m1, m2) {
if (m1 == undefined || m2 == undefined) return false; //是否存在
if (m1.attrs[0] != m2.attrs[0]) return false; //主属性
if (m1.attrs[1] != m2.attrs[1]) return false; //副属性
//if (m1.attrs[1] != m2.attrs[1]) return false; //副属性
//全部类型有任意不同的时候也返回false但是考虑到上修不要求总数一致
for (let i = 0; i < Math.min(m1.types.length, m2.types.length); i++) {
if (m1.types[i] != m2.types[i]) return false;
@ -168,13 +168,11 @@ for (let li = 0; li < officialAPI.length; li++) {
//名字对象
otherLangs.forEach((otLang) => {
let _m = otLang.cards[mi]; //获得这种其他语言的当前这个怪物数据
let isSame = sameCard(m, _m); //与原语言怪物是否是同一只
let isSame = false; //与原语言怪物是否是同一只
const l1 = lang.code, l2 = otLang.code;
if (!isSame && //如果不同时,判断特殊情况
(
l1 == 'ja' && (l2 == 'en' || l2 == 'ko') ||
l2 == 'ja' && (l1 == 'en' || l1 == 'ko')
)
if (
l1 == 'ja' && (l2 == 'en' || l2 == 'ko') ||
l2 == 'ja' && (l1 == 'en' || l1 == 'ko')
) { //当同id两者不同日服和英韩服比较时的一些人工确认相同的特殊id差异卡片
const langIsJa = l1 == 'ja' ? true : false; //原始语言是否是日语
let diff = 0; //日语和其它语言的id差异
@ -205,6 +203,8 @@ for (let li = 0; li < officialAPI.length; li++) {
isSame = true;
}
}
if (!isSame) isSame = sameCard(m, _m); //不属于特殊指定区间的情况下,判断与原语言怪物是否是同一只
if (_m && isSame) //如果有这个怪物,且与原语言怪物是同一只
{
const otName = _m.name;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,10 +1,11 @@
{
"dependencies": {
"@xmldom/xmldom": "^0.8.6",
"@zxing/library": "^0.19.2",
"@xmldom/xmldom": "^0.8.7",
"@zxing/library": "^0.20.0",
"html2canvas": "^1.4.1",
"mime": "^3.0.0",
"opencc-js": "^1.0.5",
"sharp": "^0.31.3",
"xml-formatter": "^3.2.0"
"sharp": "^0.32.0",
"xml-formatter": "^3.3.2"
}
}

View File

@ -222,7 +222,7 @@ let localTranslating = {
},
stats: {
unknown: tp`[ Unknown: ${'type'}]`, //type
maxhp: tp`Max HP`,
maxhp: tp`${'icon'}Max HP`,
hp: tp`HP`,
chp: tp`current HP`,
atk: tp`ATK`,

View File

@ -2983,7 +2983,7 @@ function renderPowerUp(powerUp) {
if (list.every(([, value]) => value === list[0][1])) {
let value = list[0][1];
//三个值一样
frg.ap(list.map(([name]) => renderStat(name)).nodeJoin(tsp.word.slight_pause()));
frg.ap(list.map(([name]) => renderStat(name,name=='maxhp'?{icon:createSkillIcon("maxhp-locked")}:null)).nodeJoin(tsp.word.slight_pause()));
frg.ap(operator);
frg.ap(renderValue(v.percent(value * 100), option));
} else {

View File

@ -339,7 +339,7 @@ const cachesMap = new Map([
],
[
"images/cards_ja/CARDS_085.PNG",
"577296ddb9b03a66a79e9bdbe0e07eb5"
"962808e99c41205e0f397d8992136d3a"
],
[
"images/cards_ja/CARDS_086.PNG",
@ -399,7 +399,7 @@ const cachesMap = new Map([
],
[
"images/cards_ja/CARDS_100.PNG",
"55386415aa6b3960a82891e6c8e49756"
"d7a6b3de38831d62db6b3b998611093d"
],
[
"sound/voice/ja/padv001.wav",
@ -11963,11 +11963,11 @@ const cachesMap = new Map([
],
[
"script-json_data.js",
"7ef4b4e3b680ba98996cdd516a092a1a"
"0ce7cc8390e59d12b7cada0f801651dc"
],
[
"script-skill-parser.js",
"ef655982b71cf63254fd255014c72e66"
"962642b309288e0553652754d9113c5e"
],
[
"script-universal_function.js",
@ -11987,7 +11987,7 @@ const cachesMap = new Map([
],
[
"style.css",
"a5d1fa612e0e8142aeaf2f32c838f1f2"
"37f65c6aec0e1a274fe2d03e56fc2a9f"
],
[
"temp.js",
@ -12047,7 +12047,7 @@ const cachesMap = new Map([
],
[
"languages/zh.js",
"8aff62c8a5ebe7d6540217adde60b8c7"
"cdbb8578eb0df3e7d14433629e82b2b2"
],
[
"images/attrs.png",
@ -12211,7 +12211,7 @@ const cachesMap = new Map([
],
[
"library/zxing.umd.min.js",
"8d375c0f8d57d8504a91cbcd9e9fe82d"
"46934f662940b020aee6466c1e334c5f"
],
[
"library/jy4340132-aaa/adpcm.js",
@ -12231,7 +12231,7 @@ const cachesMap = new Map([
],
[
"monsters-info/ckey.json",
"d3fcf0ac8c7e19fb8ca297ecc73abe62"
"a74ce386648e648c9734d657ac948291"
],
[
"monsters-info/mon_en.json",
@ -12239,7 +12239,7 @@ const cachesMap = new Map([
],
[
"monsters-info/mon_ja.json",
"dc3f120e0b7ff1798a3fedcafc040818"
"5d6e363aad10d8b058fce93a92d8dd38"
],
[
"monsters-info/mon_ko.json",
@ -12251,7 +12251,7 @@ const cachesMap = new Map([
],
[
"monsters-info/skill_ja.json",
"fde6e1ec72c8a1cc83817428eb579b1b"
"c919de8afda42d3a7ed091529507bd1f"
],
[
"monsters-info/skill_ko.json",

View File

@ -4251,6 +4251,9 @@ body.external-link-support #external-support{
{
background-position-y:calc(-36px * 38);
}
.row-mon-leader-skill .icon-skill[data-icon-type="maxhp-locked"] {
display:none;
}
:where(:lang(en), :lang(ko)) .icon-skill:where(
[data-icon-type="mass-attack"],