Skip to content

Commit

Permalink
增加PDC的新潜觉编号
Browse files Browse the repository at this point in the history
  • Loading branch information
Mapaler committed Sep 2, 2024
1 parent d34989e commit b3d977e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions monsters-info/ckey.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
{
"code": "ja",
"ckey": {
"card": "d79277370c92b64a967fb22fc2869d18",
"card": "1831314a39b73c00b616c02f09546b94",
"skill": "b80f35449f8944bce5aa4da63f507cc8"
},
"updateTime": 1725010459970
"updateTime": 1725247858313
},
{
"code": "en",
Expand Down
2 changes: 1 addition & 1 deletion monsters-info/mon_ja.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion monsters-info/official-API/ja-card.json

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,9 @@ Formation.pdcLatentMap = [
{pdf:13,pdc:35}, //不被换队长
{pdf:13,pdc:47}, //不被换队长 ×1.5
{pdf:14,pdc:37}, //不掉废
{pdf:14,pdc:59}, //不掉废 ×1.5
{pdf:15,pdc:36}, //不掉毒
{pdf:15,pdc:58}, //不掉毒 ×1.5
{pdf:16,pdc:24}, //进化杀
{pdf:17,pdc:25}, //觉醒杀
{pdf:18,pdc:26}, //强化杀
Expand Down Expand Up @@ -1155,7 +1157,7 @@ Formation.prototype.getPdcQrStr = function()
const o = new Map();
o.set(0, m.id);
if (m.latent.length)
o.set(2, m.latent.map(pdfLtent=> Formation.pdcLatentMap.find(latent=>latent.pdf === pdfLtent).pdc.toString(36).padStart(2,'0')).join('')); //潜觉
o.set(2, m.latent.map(pdfLtent=> (Formation.pdcLatentMap.find(latent=>latent.pdf === pdfLtent)?.pdc ?? pdfLtent).toString(36).padStart(2,'0')).join('')); //潜觉
o.set(3, m.level);
o.set(4, m.plus[0]);
o.set(5, m.plus[1]);
Expand Down Expand Up @@ -2462,7 +2464,7 @@ function pdcFotmationToPdfFotmation(inputString)
a.id = member.get(9) || 0; //延迟是-1刚好一样
if (member.get(2))
{
m.latent = member.get(2).map(pdcLatent=> Formation.pdcLatentMap.find(latent=>latent.pdc === pdcLatent)?.pdf ?? 0);
m.latent = member.get(2).map(pdcLatent=> Formation.pdcLatentMap.find(latent=>latent.pdc === pdcLatent)?.pdf ?? pdcLatent);
}
m.level = member.get(3) || 1;
a.level = member.get(10) || 1;
Expand Down
2 changes: 1 addition & 1 deletion service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -33603,7 +33603,7 @@ const cachesMap = new Map([
],
[
"script.js",
"1e3a96d32b5140964a2c77b4ca747cf6"
"02f8223a0134085b07145bd680d2db9c"
],
[
"solo.html",
Expand Down

0 comments on commit b3d977e

Please sign in to comment.