Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-deckform-filler
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
MyCard
ygopro-deckform-filler
Commits
d74ce25c
Commit
d74ce25c
authored
Oct 23, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
3d85a8bd
Pipeline
#41220
passed with stages
in 2 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
src/app.service.ts
src/app.service.ts
+10
-1
No files found.
src/app.service.ts
View file @
d74ce25c
...
...
@@ -14,6 +14,7 @@ import {
}
from
'
./draw-text/draw-text-options
'
;
import
{
CardDataService
}
from
'
./card-data/card-data.service
'
;
import
_
from
'
lodash
'
;
import
{
BlankReturnMessageDto
}
from
'
nesties
'
;
@
Injectable
()
export
class
AppService
extends
ConsoleLogger
{
...
...
@@ -142,7 +143,15 @@ export class AppService extends ConsoleLogger {
};
const
filterType
=
(
type
:
number
)
=>
ydk
.
main
.
filter
((
id
)
=>
cardDataMap
[
id
].
type
===
type
);
ydk
.
main
.
filter
((
id
)
=>
{
if
(
!
cardDataMap
[
id
])
{
throw
new
BlankReturnMessageDto
(
404
,
`Card ID
${
id
}
has invalid data`
,
).
toException
();
}
return
cardDataMap
[
id
].
type
===
type
;
});
await
drawCards
(
filterType
(
1
),
Coordinates
.
main
.
monsters
);
this
.
log
(
`Filled monster cards.`
);
await
drawCards
(
filterType
(
2
),
Coordinates
.
main
.
spells
);
...
...
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