From 67b45b25870db02ea2cdda13454ae6d4a94ced27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Thu, 13 Jun 2019 20:01:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E6=8F=90=E5=8F=96=E6=80=AA?= =?UTF-8?q?=E7=89=A9=E4=BF=A1=E6=81=AF=E7=9A=84=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- monsters-info/README.md | 29 +++++++++++++++++++++++----- monsters-info/StartextractByNode.bat | 2 -- 2 files changed, 24 insertions(+), 7 deletions(-) delete mode 100644 monsters-info/StartextractByNode.bat diff --git a/monsters-info/README.md b/monsters-info/README.md index 11e224b3..7a58eb39 100644 --- a/monsters-info/README.md +++ b/monsters-info/README.md @@ -1,6 +1,18 @@ -使用Fidder从游戏内抓包获得怪物信息。 -https://api-adrv2.padsv.gungho.jp/api.php?action=download_card_data -经研究后得出如下结论。数字指的数组下标。 +使用Fidder从游戏内抓包获得怪物信息 +Use Fidder to capture monster information from in-game capture +https://api-adrv2.padsv.gungho.jp/api.php?action=download_card_data + +目前的获取时间为 +The current acquisition time is +| 语言 | 时间 | +| --- | --- | +| 日语(ja) | ‎2019‎年‎6‎月‎10‎日,‏‎12:21:51 | +| 英语(en) | 2019‎年‎6‎月‎10‎日,‏‎15:13:13 | +| 韩语(ko) | ‎2019‎年‎6‎月‎12‎日,‏‎19:15:26 | + +经研究后得出如下结论,JSON里数字指的数组下标。 +The following conclusions were drawn from the research. The number in JSON refers to the array subscript.(no translate) + * 0为id,一样的时候是可以获得的,之后的就是敌人怪物了。 * 1为名字 * 2为主属性,3为副属性,为-1的时候表示没有副属性。 @@ -16,7 +28,7 @@ https://api-adrv2.padsv.gungho.jp/api.php?action=download_card_data ```js function g(id) { - var m = gw.card[id]; + var m = data.card[id]; var pn = ["火","水","木","光","暗"]; var p1 = pn[m[2]]||"无",p2 = pn[m[3]]||"无"; var tn = ["0进化","1平衡","2体力","3回复","4龙","5神","6攻击","7恶魔","8机械","9","10","11","12觉醒","13","14强化","15卖钱"]; @@ -33,4 +45,11 @@ function g(id) } ``` -执行`提取信息.bat`,用node来执行`extractByNode.js`,将日文和英文的有用信息提取到一个文件内。 \ No newline at end of file +命令行内执行如下代码 +Execute the following code in CMD +```bat +node.exe extractByNode.js +``` +会将几种语言的信息提取到一个文件内 +Extract information from several languages into one file +`mon.json` \ No newline at end of file diff --git a/monsters-info/StartextractByNode.bat b/monsters-info/StartextractByNode.bat deleted file mode 100644 index fe3f4508..00000000 --- a/monsters-info/StartextractByNode.bat +++ /dev/null @@ -1,2 +0,0 @@ -node.exe extractByNode.js -pause \ No newline at end of file