Browse Source

添加妖表

tags/v8.0
枫谷剑仙 7 years ago
parent
commit
14e7a3e512
7 changed files with 79 additions and 6 deletions
  1. BIN
      images/cards/CARDS_054.PNG
  2. +2
    -2
      monsters-info/README.md
  3. +1
    -1
      monsters-info/mon.json
  4. +1
    -0
      monsters-info/official-API/ja-skill.json
  5. +1
    -1
      monsters-info/official-API/ja.json
  6. +4
    -2
      monsters-info/official-API/test-mon.html
  7. +70
    -0
      monsters-info/official-API/test-skill.html

BIN
images/cards/CARDS_054.PNG View File

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

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

@@ -7,8 +7,8 @@ The current acquisition time is
| 语言 | 时间 | API | | 语言 | 时间 | API |
| --- | --- | --- | | --- | --- | --- |
| 日语(ja) | 2019-6-14 17:40 | 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 |
| 英语(en) | 2019-6-21 14:00 | https://api-na-adrv2.padsv.gungho.jp/api.php?action=download_card_data |
| 韩语(ko) | 2019-6-21 14:00 | https://api-kr-adrv2.padsv.gungho.jp/api.php?action=download_card_data |
经研究后得出如下结论,JSON里数字指的数组下标。 经研究后得出如下结论,JSON里数字指的数组下标。
The following conclusions were drawn from the research. The number in JSON refers to the array subscript.(no translate) The following conclusions were drawn from the research. The number in JSON refers to the array subscript.(no translate)


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


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


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


monsters-info/official-API/test.html → monsters-info/official-API/test-mon.html View File

@@ -37,7 +37,7 @@ function g(id)
type.push(tn[m[6]]); type.push(tn[m[6]]);
if (m[m.length-9]!=-1) //第三个type要倒着来 if (m[m.length-9]!=-1) //第三个type要倒着来
type.push(tn[m[m.length-9]]); type.push(tn[m[m.length-9]]);
console.log("%oNo.%d %s [%s/%s],Lv%d,%s究极退化为%d,类型:%s,%d星,COST%d,%s个觉醒,三维%s,110级增长%d%%,%s当二技,1级吃经验%d,1级卖¥%d,%dMP,成长类型%d,升2级经验",
console.log("%oNo.%d %s [%s/%s],Lv%d,%s究极退化为%d,类型:%s,%d星,COST%d,%s个觉醒,三维%s,110级增长%d%%,%s当二技,1级吃经验%d,1级卖¥%d,%dMP,成长类型%d,升2级经验%d,技能编号%d,队长%d",
m, //对象 m, //对象
m[0], //ID m[0], //ID
m[1], //名字 m[1], //名字
@@ -56,7 +56,9 @@ function g(id)
Math.round(m[13]/10), //1级卖钱 Math.round(m[13]/10), //1级卖钱
m[m.length-8], //MP m[m.length-8], //MP
m[23], //成长类型 m[23], //成长类型
Math.round(m[23] * Math.pow((2 - 1) / 98,m[24])) //1级升2级经验
Math.round(m[23] * Math.pow((2 - 1) / 98,m[24])), //1级升2级经验
m[25], //技能编号
m[26] //队长技能编号
); );
} }
GM_xmlhttpRequest({ GM_xmlhttpRequest({

+ 70
- 0
monsters-info/official-API/test-skill.html View File

@@ -0,0 +1,70 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>代码测试</title>
<script type="text/javascript">
var skill;
var mid;
var GM_xmlhttpRequest = function(GM_param) {
var xhr = new XMLHttpRequest(); //创建XMLHttpRequest对象
xhr.open(GM_param.method, GM_param.url, true);
if (GM_param.responseType) xhr.responseType = GM_param.responseType;
if (GM_param.overrideMimeType) xhr.overrideMimeType(GM_param.overrideMimeType);
xhr.onreadystatechange = function() //设置回调函数
{
if (xhr.readyState === xhr.DONE) {
if (xhr.status === 200 && GM_param.onload)
GM_param.onload(xhr);
if (xhr.status !== 200 && GM_param.onerror)
GM_param.onerror(xhr);
}
}
for (var header in GM_param.headers) {
xhr.setRequestHeader(header, GM_param.headers[header]);
}
xhr.send(GM_param.data ? GM_param.data : null);
}
function g(id)
{
var m = skill[id];
console.log("%oCD:%s",
m, //对象
m[4] + "-" + (m[4]-m[3]+1), //技能CD
);
}
GM_xmlhttpRequest({
method: "GET",
url:"ja-skill.json",
onload: function(response) {
skill = JSON.parse(response.response).skill;
/*
var ts = card.filter(function(m){
return [9,10,11,13].indexOf(m[5])>=0;
})
console.log(ts);
*/
/*
console.log(card.sort(function(a,b){
return b[b.length-3] - a[a.length-3];
}));
g(0);
*/
},
onerror: function(response) {
console.error("怪物数据获取错误",response);
}
});
</script>
</head>
<body>
<script type="text/javascript">
window.onload = function()
{
mid = document.querySelector("#mid");
}
</script>
<input type="number" id="mid"><input type="button" value="测试" onclick="g(parseInt(mid.value));">
</body>
</html>

Loading…
Cancel
Save