Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
srvpro
Commits
fd8a5f21
Commit
fd8a5f21
authored
May 05, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add link deck stat
parent
98c014b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
ygopro-deck-stats.js
ygopro-deck-stats.js
+8
-4
No files found.
ygopro-deck-stats.js
View file @
fd8a5f21
...
...
@@ -26,9 +26,9 @@ function add_to_deck(deck,id) {
}
function
add_to_all_list
(
LIST
,
id
,
use
)
{
if
(
!
ALL_CARD_DATAS
[
id
])
{
return
;
}
if
(
!
ALL_CARD_DATAS
[
id
])
{
return
;
}
if
(
ALL_CARD_DATAS
[
id
].
alias
)
{
id
=
ALL_CARD_DATAS
[
id
].
alias
;
}
...
...
@@ -48,7 +48,7 @@ function add_to_all_list(LIST,id,use) {
function
read_deck_file
(
filename
)
{
console
.
log
(
"
reading
"
+
filename
);
var
deck_text
=
fs
.
readFileSync
(
config
.
deckpath
+
"
\\
"
+
filename
,{
encoding
:
"
ASCII
"
})
var
deck_text
=
fs
.
readFileSync
(
config
.
deckpath
+
"
/
"
+
filename
,{
encoding
:
"
ASCII
"
})
var
deck_array
=
deck_text
.
split
(
"
\n
"
);
var
deck_main
=
{};
var
deck_side
=
{};
...
...
@@ -123,6 +123,7 @@ function load_database(callback) {
if
(
result
.
type
&
constants
.
TYPES
.
TYPE_TOON
)
{
cardTypes
.
push
(
"
卡通
"
);}
if
(
result
.
type
&
constants
.
TYPES
.
TYPE_XYZ
)
{
cardTypes
.
push
(
"
超量
"
);}
if
(
result
.
type
&
constants
.
TYPES
.
TYPE_PENDULUM
)
{
cardTypes
.
push
(
"
灵摆
"
);}
if
(
result
.
type
&
constants
.
TYPES
.
TYPE_LINK
)
{
cardTypes
.
push
(
"
连接
"
);}
card
.
fulltype
=
cardTypes
.
join
(
'
|
'
);
if
(
result
.
type
&
constants
.
TYPES
.
TYPE_MONSTER
)
{
...
...
@@ -167,6 +168,9 @@ function output_csv(list,filename) {
var
file
=
fs
.
openSync
(
filename
,
"
w
"
);
for
(
var
i
in
list
)
{
var
card
=
ALL_CARD_DATAS
[
i
];
if
(
!
card
)
{
continue
;
}
var
card_usage
=
list
[
i
];
console
.
log
(
"
writing
"
+
card
.
name
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment