Browse Source

加入花嫁

tags/v8.0
枫谷剑仙 7 years ago
parent
commit
e85490ab15
7 changed files with 32 additions and 10 deletions
  1. BIN
      images/cards/CARDS_054.PNG
  2. +1
    -1
      monsters-info/README.md
  3. +1
    -1
      monsters-info/extractByNode.js
  4. +1
    -1
      monsters-info/ja.json
  5. +1
    -1
      monsters-info/mon.json
  6. +23
    -6
      script.js
  7. +5
    -0
      style.css

BIN
images/cards/CARDS_054.PNG View File

Before After
Width: 1024  |  Height: 1024  |  Size: 728 kB Width: 1024  |  Height: 1024  |  Size: 815 kB

+ 1
- 1
monsters-info/README.md View File

@@ -6,7 +6,7 @@ The current acquisition time is
| 语言 | 时间 | API |
| --- | --- | --- |
| 日语(ja) | 2019-6-14 15:20 | https://api-adrv2.padsv.gungho.jp/api.php?action=download_card_data |
| 日语(ja) | 2019-6-14 17:40 | https://api-adrv2.padsv.gungho.jp/api.php?action=download_card_data |
| 英语(en) | 2019-6-14 15:20 | https://api-na-adrv2.padsv.gungho.jp/api.php?action=download_card_data |
| 韩语(ko) | 2019-6-14 15:20 | https://api-kr-adrv2.padsv.gungho.jp/api.php?action=download_card_data |


+ 1
- 1
monsters-info/extractByNode.js View File

@@ -63,7 +63,7 @@ fs.readFile('./ja.json',function(err,data){
rare: m[7],
awoken: awoken,
maxLevel: m[m.length-3]>0?110:m[10],
assist: m[m.length-5]>2?1:0,
assist: (m[m.length-5]>2 && [303,305,307,600,602].indexOf(m[0])<0)?1:0, //但是5种小企鹅是特殊情况
}
mArr.push(mon);
}


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


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


+ 23
- 6
script.js View File

@@ -298,12 +298,18 @@ function initialize()
mD.awoken = monEditAwokens.filter(function(akDom){
return !akDom.classList.contains("unselected-awoken") && !akDom.classList.contains("display-none")
}).length - 1;
mD.plus[0] = parseInt(monEditAddHp.value) || 0;
mD.plus[1] = parseInt(monEditAddAtk.value) || 0;
mD.plus[2] = parseInt(monEditAddRcv.value) || 0;
if (!editBox.assist)
if (ms[mD.id].type.some(function(t){return t == 0 || t == 12 || t == 14 || t == 15;}) && [303,305,307,600,602].indexOf(mD.id)<0)
{ //当4种特殊type的时候是无法297和打觉醒的,但是5种小企鹅可以
mD.plus = [0,0,0];
}else
{
mD.latent = editBox.latent.concat();
mD.plus[0] = parseInt(monEditAddHp.value) || 0;
mD.plus[1] = parseInt(monEditAddAtk.value) || 0;
mD.plus[2] = parseInt(monEditAddRcv.value) || 0;
if (!editBox.assist)
{ //如果不是辅助,则可以设定潜觉
mD.latent = editBox.latent.concat();
}
}

changeid(mD,editBox.monsterBox,editBox.latentBox);
@@ -566,7 +572,18 @@ function editBoxChangeMonId(id)
var monEditLv = settingBox.querySelector(".m-level");
monEditLv.value = md.maxLevel>99?99:md.maxLevel;

var monLatentAllowUl = settingBox.querySelector(".m-latent-allowable-ul");
var rowPlus = settingBox.querySelector(".row-mon-plus");
var rowLatent = settingBox.querySelector(".row-mon-latent");
if (ms[id].type.some(function(t){return t == 0 || t == 12 || t == 14 || t == 15;}) && [303,305,307,600,602].indexOf(id)<0)
{ //当4种特殊type的时候是无法297和打觉醒的,但是5种小企鹅可以
rowPlus.classList.add("disabled");
rowLatent.classList.add("disabled");
}else
{
rowPlus.classList.remove("disabled");
rowLatent.classList.remove("disabled");
}
var monLatentAllowUl = rowLatent.querySelector(".m-latent-allowable-ul");
//该宠Type允许的杀
var allowLatent = uniq(md.type.reduce(function (previous, t, index, array) {
return previous.concat(type_allowable_latent[t]);


+ 5
- 0
style.css View File

@@ -16,6 +16,11 @@ body{
.display-none{
display:none;
}
.disabled{
cursor: not-allowed;
pointer-events: none;
opacity: 0.5;
}
.title{
font-size: 2em;
font-weight: bold;


Loading…
Cancel
Save