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
YGOPRO-520DIY
ygopro
Commits
8618fc1a
Commit
8618fc1a
authored
Aug 26, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into server
parents
0c1d0a62
d21e3fd1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
.ci/pack-linux-dlc.sh
.ci/pack-linux-dlc.sh
+1
-1
.ci/pack-macos-dlc.sh
.ci/pack-macos-dlc.sh
+1
-1
.ci/pack-windows-dlc.sh
.ci/pack-windows-dlc.sh
+1
-1
gframe/deck_manager.cpp
gframe/deck_manager.cpp
+1
-1
No files found.
.ci/pack-linux-dlc.sh
View file @
8618fc1a
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
set
-x
set
-x
set
-o
errexit
set
-o
errexit
ARCHIVE_FILES
=(
ygopro lib cards.cdb locales fonts strings.conf system.conf
)
ARCHIVE_FILES
=(
ygopro lib cards.cdb locales fonts s
ound textures s
trings.conf system.conf
)
TARGET_PLATFORM
=
linux
TARGET_PLATFORM
=
linux
...
...
.ci/pack-macos-dlc.sh
View file @
8618fc1a
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
set
-x
set
-x
set
-o
errexit
set
-o
errexit
ARCHIVE_FILES
=(
ygopro.app cards.cdb locales fonts strings.conf system.conf
)
ARCHIVE_FILES
=(
ygopro.app cards.cdb locales fonts s
ound textures s
trings.conf system.conf
)
TARGET_PLATFORM
=
darwin
TARGET_PLATFORM
=
darwin
...
...
.ci/pack-windows-dlc.sh
View file @
8618fc1a
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
set
-x
set
-x
set
-o
errexit
set
-o
errexit
ARCHIVE_FILES
=(
ygopro.exe cards.cdb locales fonts strings.conf system.conf
)
ARCHIVE_FILES
=(
ygopro.exe cards.cdb locales fonts s
ound textures s
trings.conf system.conf
)
TARGET_PLATFORM
=
win32
TARGET_PLATFORM
=
win32
...
...
gframe/deck_manager.cpp
View file @
8618fc1a
...
@@ -73,7 +73,7 @@ const std::unordered_map<int, int>* DeckManager::GetLFListContent(int lfhash) {
...
@@ -73,7 +73,7 @@ const std::unordered_map<int, int>* DeckManager::GetLFListContent(int lfhash) {
return
nullptr
;
return
nullptr
;
}
}
int
DeckManager
::
IsGameRuleDisallowed
(
unsigned
char
hostInfoRule
,
unsigned
int
cardOt
)
{
int
DeckManager
::
IsGameRuleDisallowed
(
unsigned
char
hostInfoRule
,
unsigned
int
cardOt
)
{
bool
allow_ocg
=
hostInfoRule
==
0
||
hostInfoRule
==
2
;
// OCG can be used in OCG and OT duels
bool
allow_ocg
=
hostInfoRule
==
0
||
hostInfoRule
==
4
||
hostInfoRule
==
2
;
// OCG can be used in OCG and OT duels
bool
allow_tcg
=
hostInfoRule
==
1
||
hostInfoRule
==
2
;
// TCG can be used in TCG and OT duels
bool
allow_tcg
=
hostInfoRule
==
1
||
hostInfoRule
==
2
;
// TCG can be used in TCG and OT duels
bool
allow_ccg
=
hostInfoRule
==
0
||
hostInfoRule
==
4
||
hostInfoRule
==
2
;
// CCG can be used in OCG, CCG and OT duels
bool
allow_ccg
=
hostInfoRule
==
0
||
hostInfoRule
==
4
||
hostInfoRule
==
2
;
// CCG can be used in OCG, CCG and OT duels
if
(
!
allow_ocg
&&
((
cardOt
&
0x3
)
==
0x1
))
if
(
!
allow_ocg
&&
((
cardOt
&
0x3
)
==
0x1
))
...
...
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