Browse Source

Merge remote-tracking branch 'remotes/gitee/master' into skillParser

tags/v19.0
枫谷剑仙 4 years ago
parent
commit
1aa67ce340
36 changed files with 72 additions and 28 deletions
  1. BIN
      document/tips-voice.png
  2. +4
    -1
      help.md
  3. BIN
      images/cards_ja/CARDS_075.PNG
  4. BIN
      images/cards_ja/CARDS_076.PNG
  5. BIN
      images/cards_ja/CARDS_077.PNG
  6. +28
    -12
      languages/zh-CN.js
  7. +1
    -1
      monsters-info/ckey.json
  8. +1
    -1
      monsters-info/mon_ja.json
  9. +1
    -1
      monsters-info/official-API/ja-card.json
  10. +1
    -1
      monsters-info/official-API/ja-skill.json
  11. +1
    -1
      monsters-info/skill_ja.json
  12. +35
    -10
      script.js
  13. BIN
      sound/voice/ja/padv295.wav
  14. BIN
      sound/voice/ja/padv296.wav
  15. BIN
      sound/voice/ja/padv297.wav
  16. BIN
      sound/voice/ja/padv298.wav
  17. BIN
      sound/voice/ja/padv299.wav
  18. BIN
      sound/voice/ja/padv300.wav
  19. BIN
      sound/voice/ja/padv301.wav
  20. BIN
      sound/voice/ja/padv302.wav
  21. BIN
      sound/voice/ja/padv303.wav
  22. BIN
      sound/voice/ja/padv304.wav
  23. BIN
      sound/voice/ja/padv305.wav
  24. BIN
      sound/voice/ja/padv306.wav
  25. BIN
      sound/voice/ja/padv307.wav
  26. BIN
      sound/voice/ja/padv308.wav
  27. BIN
      sound/voice/ja/padv309.wav
  28. BIN
      sound/voice/ja/padv310.wav
  29. BIN
      sound/voice/ja/padv311.wav
  30. BIN
      sound/voice/ja/padv312.wav
  31. BIN
      sound/voice/ja/padv313.wav
  32. BIN
      sound/voice/ja/padv314.wav
  33. BIN
      sound/voice/ja/padv315.wav
  34. BIN
      sound/voice/ja/padv316.wav
  35. BIN
      sound/voice/ja/padv317.wav
  36. BIN
      sound/voice/ja/padv318.wav

BIN
document/tips-voice.png View File

Before After
Width: 496  |  Height: 444  |  Size: 47 kB

+ 4
- 1
help.md View File

@@ -79,11 +79,14 @@ Formation Title and Detail can use the `^[Hex Color Code]^Content^p` to change t
![怪物头像](document/tips-advanced-card.png)
## 其他 | Others
* 点击语音觉醒可以试听技能语音。
Click Voice Awakening to try out skill voice.
![语音觉醒](document/tips-voice.png)
* 2人只显示部分共用的觉醒的统计(不包括超觉醒),单人和三人则全部显示。
The 2P Multi Games Mode shows only several common awoken statistics (excluding super-awakening), but the Solo and 3P Mode shows all.
* 内建的截图按钮依靠 [html2canvas](https://github.com/niklasvh/html2canvas/),会有一些绘制错误,浏览器的截图扩展能够更加还原显示的真实样子。
Built-in screenshot button relies on [html2canvas](https://github.com/niklasvh/html2canvas/), there will be some drawing errors, browser screenshot extension can be more restore the real appearance of the display.
* 如果你只是希望将本程序当作简单图鉴使用,可以在参数里加上`guide=1`,如`http://mapaler.gitee.io/paddashformation/solo.html?guide=1`。图鉴模式下进入网页时,会直接打开怪物修改界面,并且背景不透明。
* 如果你只是希望将本程序当作简单图鉴使用,可以在参数里加上`guide=1`,如`https://mapaler.gitee.io/paddashformation/solo.html?guide=1`。图鉴模式下进入网页时,会直接打开怪物修改界面,并且背景不透明。
If you just want to use this program as a simple guide, you can add `guide=1` to the parameters, such as `https://mapaler.github.io/PADDashFormation/solo.html?guide=1`. When you enter the page in guide mode, the monster modification interface opens directly and the background is opaque.
## 报告BUG | Report BUG


BIN
images/cards_ja/CARDS_075.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 839 kB Width: 1024  |  Height: 1024  |  Size: 903 kB

BIN
images/cards_ja/CARDS_076.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 338 kB Width: 1024  |  Height: 1024  |  Size: 646 kB

BIN
images/cards_ja/CARDS_077.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 131 kB

+ 28
- 12
languages/zh-CN.js View File

@@ -255,31 +255,32 @@ function parseSkillDescription(skill) {
let mulArr = null;
if (Array.isArray(values)) {
mulArr = [
1,
values[0] / 100,
values[1] / 100,
100,
values[0],
values[1],
];
} else {
mulArr = [
(values.hp || 100) / 100,
(values.atk || 100) / 100,
(values.rcv || 100) / 100
(values.hp || 100),
(values.atk || 100),
(values.rcv || 100)
];
}
const hasMul = mulArr.filter(m => m != 1); //不是1的数值
let hasMul = new Set(mulArr);
hasMul.delete(100);
hasMul = Array.from(hasMul);
let str = "";
if (hasMul.length > 0) {
const hasDiff = hasMul.filter(m => m != hasMul[0]).length > 0; //存在不一样的值
if (hasDiff) {
str += mulArr.map((m, i) => (m > 0 && m != 1) ? (mulName[i] + (scale ? (m >= 1 ? `×${m}倍` : `变为${m*100}%`) : `增加${m*100}%`)) : null).filter(s => s != null).join(",");
if (hasMul.length > 1) { //存在不一样的值
str += mulArr.map((m, i) => (m > 0 && m != 100) ? (mulName[i] + (scale ? (m >= 1 ? `×${m/100}倍` : `变为${m}%`) : `增加${m}%`)) : null).filter(s => s != null).join(",");
} else {
let hasMulName = mulName.filter((n, i) => mulArr[i] != 1);
let hasMulName = mulName.filter((n, i) => mulArr[i] != 100);
if (hasMulName.length >= 3) {
str += hasMulName.slice(0, hasMulName.length - 1).join("、") + "和" + hasMulName[hasMulName.length - 1];
} else {
str += hasMulName.join("和");
}
str += scale ? (hasMul[0] >= 1 ? `×${hasMul[0]}倍` : `变为${hasMul[0]*100}%`) : `增加${hasMul[0]*100}%`;
str += scale ? (hasMul[0] >= 1 ? `×${hasMul[0]/100}倍` : `变为${hasMul[0]}%`) : `增加${hasMul[0]}%`;
}
} else {
str += "能力值没有变化";
@@ -1550,6 +1551,21 @@ function parseSkillDescription(skill) {
case 224:
str = `${sk[0]}回合内,敌人全体变为${attrN(sk[1])}属性。(不受防护盾的影响)`;
break;
case 225:{
let strArr = [];
if (sk[0]) strArr.push(`大于${sk[0]}%`);
if (sk[1]) strArr.push(`小于${sk[1]}%`);
str = `HP${strArr.join("或")}时才能发动后续效果`;
break;
}
case 226:{
str = `${sk[0]}回合内,${sk[1]}%概率掉落带钉宝珠`;
break;
}
case 227:{
str = `指使当前队长与最后一位队员交换位置,再次使用此技能则换回来(待测试)。`;
break;
}
case 228:
str = `${sk[0]}回合内,队伍中每存在1个${getAttrTypeString(flags(sk[1]), flags(sk[2]))}时,${getFixedHpAtkRcvString({atk:sk[3],rcv:sk[4]}, false)}`;
break;


+ 1
- 1
monsters-info/ckey.json View File

@@ -1 +1 @@
[{"code":"ja","ckey":{"card":"1662af91b3c6c65dcacd7c5f59e3779c","skill":"fbbceb29e8fa54610addce49e5a4c627"},"updateTime":1626437692992},{"code":"en","ckey":{"card":"f968e7c08d9a708a236e956d7050e05a","skill":"fa1024dd36232eb43c030a2499814960"},"updateTime":1626352490457},{"code":"ko","ckey":{"card":"6b1f4e5b5f428ad3303257ac0b118bf2","skill":"17c7e55b774b6fed3eaea6bc5a0c027d"},"updateTime":1626352490457}]
[{"code":"ja","ckey":{"card":"0b3318a6521bafadaf7f1ca43dfd200e","skill":"88598cd8a7056f5f932eb73bad2c7a82"},"updateTime":1626870923025},{"code":"en","ckey":{"card":"f968e7c08d9a708a236e956d7050e05a","skill":"fa1024dd36232eb43c030a2499814960"},"updateTime":1626352490457},{"code":"ko","ckey":{"card":"6b1f4e5b5f428ad3303257ac0b118bf2","skill":"17c7e55b774b6fed3eaea6bc5a0c027d"},"updateTime":1626352490457}]

+ 1
- 1
monsters-info/mon_ja.json
File diff suppressed because it is too large
View File


+ 1
- 1
monsters-info/official-API/ja-card.json
File diff suppressed because it is too large
View File


+ 1
- 1
monsters-info/official-API/ja-skill.json
File diff suppressed because it is too large
View File


+ 1
- 1
monsters-info/skill_ja.json
File diff suppressed because it is too large
View File


+ 35
- 10
script.js View File

@@ -673,7 +673,12 @@ function turnPage(toPage, e = null) {
window.onload = function(event) {
if (!Array.prototype.flat)
{
alert("请更新您的浏览器。\nPlease update your browser.");
alert(`请更新您的浏览器。火狐≥62 或 谷歌≥69
Please update your browser. Firefox≥62 or Chrome≥69

你的浏览器:
Your browser:
${navigator.userAgent}`);
}

qrcodeReader = new ZXing.BrowserQRCodeReader(); //二维码读取
@@ -1706,26 +1711,36 @@ function initialize() {
const headDom = this.parentNode;
const arr = getMemberArrayIndexFromMonHead(headDom);
const team = formation.teams[arr[0]];
const member = team[arr[1]][arr[2]];
const card = Cards[member.id] || Cards[0];
const skills = getCardActiveSkills(card, [93, 227]); //更换队长的技能
if (skills.length < 1) return;
const skill = skills[0];

if (team[3] > 0) //如果队伍已经换了队长
{
if (team[3] == arr[2]) //点的就是换的队长
if (skill.type == 227 //固定与右侧换队长
|| team[3] == arr[2]) //点的就是换的队长
{
team[3] = 0; //还原
}else
{
team[3] = arr[2]; //改变成任何能点的换队长
}
creatNewUrl(); //刷新URL
refreshAll(formation); //刷新全部
}else //如果队伍没有换队长
{
if(arr[2] > 0) //如果点的不是原队长
if (skill.type == 227) //固定与右侧换队长
{
let myTeam = team.slice(0,5);
team[3] = myTeam.length - 1 - team.slice(0,5).reverse().findIndex(m=>m.id>0);
}
else if(arr[2] > 0) //如果点的不是原队长
{
team[3] = arr[2]; //接换成新队长
creatNewUrl(); //刷新URL
refreshAll(formation); //刷新全部
}
}
creatNewUrl(); //刷新URL
refreshAll(formation); //刷新全部

e.stopPropagation();
e.preventDefault();
@@ -3142,7 +3157,7 @@ function changeid(mon, monDom, latentDom) {
const switchLeaderDom = monDom.querySelector(".switch-leader");
if (switchLeaderDom) //如果存在队长交换 DOM
{
const skills = getCardActiveSkills(card, [93]); //更换队长的技能
const skills = getCardActiveSkills(card, [93, 227]); //更换队长的技能
if (skills.length > 0) {
switchLeaderDom.classList.remove(className_displayNone);
@@ -3629,8 +3644,18 @@ function refreshAll(formationData) {
//如果换队长技能
if (leaderIdx == 0 && (ti == 0 || ti == 5))
{
member.querySelector(".switch-leader").classList.add(className_displayNone);
assist.querySelector(".switch-leader").classList.add(className_displayNone);
const card_m = Cards[teamData[0][ti].id] || Cards[0];
const card_a = Cards[teamData[1][ti].id] || Cards[0];
const skills_m = getCardActiveSkills(card_m, [93, 227]); //更换队长的技能
const skills_a = getCardActiveSkills(card_a, [93, 227]); //更换队长的技能
if (skills_m.length == 0 || skills_m[0].type != 227)
{
member.querySelector(".switch-leader").classList.add(className_displayNone);
}
if (skills_a.length == 0 || skills_a[0].type != 227)
{
assist.querySelector(".switch-leader").classList.add(className_displayNone);
}
}
refreshMemberSkillCD(teamBox, teamData, ti); //技能CD
refreshAbility(teamAbilityDom, teamData, ti); //本人能力值


BIN
sound/voice/ja/padv295.wav View File


BIN
sound/voice/ja/padv296.wav View File


BIN
sound/voice/ja/padv297.wav View File


BIN
sound/voice/ja/padv298.wav View File


BIN
sound/voice/ja/padv299.wav View File


BIN
sound/voice/ja/padv300.wav View File


BIN
sound/voice/ja/padv301.wav View File


BIN
sound/voice/ja/padv302.wav View File


BIN
sound/voice/ja/padv303.wav View File


BIN
sound/voice/ja/padv304.wav View File


BIN
sound/voice/ja/padv305.wav View File


BIN
sound/voice/ja/padv306.wav View File


BIN
sound/voice/ja/padv307.wav View File


BIN
sound/voice/ja/padv308.wav View File


BIN
sound/voice/ja/padv309.wav View File


BIN
sound/voice/ja/padv310.wav View File


BIN
sound/voice/ja/padv311.wav View File


BIN
sound/voice/ja/padv312.wav View File


BIN
sound/voice/ja/padv313.wav View File


BIN
sound/voice/ja/padv314.wav View File


BIN
sound/voice/ja/padv315.wav View File


BIN
sound/voice/ja/padv316.wav View File


BIN
sound/voice/ja/padv317.wav View File


BIN
sound/voice/ja/padv318.wav View File


Loading…
Cancel
Save