Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
REIKAI
ygopro
Commits
ca31a4e7
Commit
ca31a4e7
authored
Aug 17, 2023
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test oversize thing
parent
216aa519
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
7 deletions
+20
-7
gframe/deck_manager.cpp
gframe/deck_manager.cpp
+19
-6
ocgcore
ocgcore
+1
-1
No files found.
gframe/deck_manager.cpp
View file @
ca31a4e7
...
...
@@ -98,6 +98,7 @@ int DeckManager::CheckDeck(Deck& deck, int lfhash, int rule) {
return
(
DECKERROR_SIDECOUNT
<<
28
)
+
deck
.
side
.
size
();
const
int
rule_map
[
6
]
=
{
AVAIL_OCG
,
AVAIL_TCG
,
AVAIL_SC
,
AVAIL_CUSTOM
,
AVAIL_OCGTCG
,
0
};
int
avail
=
rule_map
[
rule
];
int
spareCount
=
5
;
for
(
size_t
i
=
0
;
i
<
deck
.
main
.
size
();
++
i
)
{
code_pointer
cit
=
deck
.
main
[
i
];
int
gameruleDeckError
=
checkAvail
(
cit
->
second
.
ot
,
avail
);
...
...
@@ -111,8 +112,12 @@ int DeckManager::CheckDeck(Deck& deck, int lfhash, int rule) {
if
(
dc
>
3
)
return
(
DECKERROR_CARDCOUNT
<<
28
)
+
cit
->
first
;
auto
it
=
list
->
find
(
code
);
if
(
it
!=
list
->
end
()
&&
dc
>
it
->
second
)
return
(
DECKERROR_LFLIST
<<
28
)
+
cit
->
first
;
if
(
it
!=
list
->
end
()
&&
dc
>
it
->
second
)
{
if
(
!
spareCount
)
return
(
DECKERROR_LFLIST
<<
28
)
+
cit
->
first
;
else
--
spareCount
;
}
}
for
(
size_t
i
=
0
;
i
<
deck
.
extra
.
size
();
++
i
)
{
code_pointer
cit
=
deck
.
extra
[
i
];
...
...
@@ -125,8 +130,12 @@ int DeckManager::CheckDeck(Deck& deck, int lfhash, int rule) {
if
(
dc
>
3
)
return
(
DECKERROR_CARDCOUNT
<<
28
)
+
cit
->
first
;
auto
it
=
list
->
find
(
code
);
if
(
it
!=
list
->
end
()
&&
dc
>
it
->
second
)
return
(
DECKERROR_LFLIST
<<
28
)
+
cit
->
first
;
if
(
it
!=
list
->
end
()
&&
dc
>
it
->
second
)
{
if
(
!
spareCount
)
return
(
DECKERROR_LFLIST
<<
28
)
+
cit
->
first
;
else
--
spareCount
;
}
}
for
(
size_t
i
=
0
;
i
<
deck
.
side
.
size
();
++
i
)
{
code_pointer
cit
=
deck
.
side
[
i
];
...
...
@@ -139,8 +148,12 @@ int DeckManager::CheckDeck(Deck& deck, int lfhash, int rule) {
if
(
dc
>
3
)
return
(
DECKERROR_CARDCOUNT
<<
28
)
+
cit
->
first
;
auto
it
=
list
->
find
(
code
);
if
(
it
!=
list
->
end
()
&&
dc
>
it
->
second
)
return
(
DECKERROR_LFLIST
<<
28
)
+
cit
->
first
;
if
(
it
!=
list
->
end
()
&&
dc
>
it
->
second
)
{
if
(
!
spareCount
)
return
(
DECKERROR_LFLIST
<<
28
)
+
cit
->
first
;
else
--
spareCount
;
}
}
return
0
;
}
...
...
ocgcore
@
edf78c89
Subproject commit
712bb529afb1e50a800aff8f5b65530302f209f1
Subproject commit
edf78c89e896b62df9d0e7ff0117598bdf8fdae0
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