Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOProUnity_V2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
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
YGOProUnity_V2
Commits
b98dc68d
Commit
b98dc68d
authored
Jun 26, 2025
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix new setcode in CardData of ocgcore
parent
f0626a36
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
8 deletions
+12
-8
.gitignore
.gitignore
+1
-0
Assets/SibylSystem/ResourceManagers/GameStringHelper.cs
Assets/SibylSystem/ResourceManagers/GameStringHelper.cs
+1
-1
Assets/SibylSystem/coreWrapper.cs
Assets/SibylSystem/coreWrapper.cs
+4
-1
Assets/YGOSharp/Card.cs
Assets/YGOSharp/Card.cs
+2
-2
Assets/YGOSharp/CardsManager.cs
Assets/YGOSharp/CardsManager.cs
+4
-4
No files found.
.gitignore
View file @
b98dc68d
...
@@ -11,6 +11,7 @@ Assets/AssetStoreTools*
...
@@ -11,6 +11,7 @@ Assets/AssetStoreTools*
/.vs/
/.vs/
.idea
.idea
.vsconfig
.vsconfig
/.vscode/
# Autogenerated VS/MD/Consulo solution and project files
# Autogenerated VS/MD/Consulo solution and project files
ExportedObj/
ExportedObj/
...
...
Assets/SibylSystem/ResourceManagers/GameStringHelper.cs
View file @
b98dc68d
...
@@ -459,7 +459,7 @@ public class GameStringHelper
...
@@ -459,7 +459,7 @@ public class GameStringHelper
return
re
;
return
re
;
}
}
public
static
string
getSetName
(
long
Setcode
)
public
static
string
getSetName
(
u
long
Setcode
)
{
{
var
setcodes
=
new
int
[
4
];
var
setcodes
=
new
int
[
4
];
for
(
var
j
=
0
;
j
<
4
;
j
++)
for
(
var
j
=
0
;
j
<
4
;
j
++)
...
...
Assets/SibylSystem/coreWrapper.cs
View file @
b98dc68d
...
@@ -213,7 +213,10 @@ namespace Percy
...
@@ -213,7 +213,10 @@ namespace Percy
{
{
public
int
Code
;
public
int
Code
;
public
int
Alias
;
public
int
Alias
;
public
long
Setcode
;
public
UInt64
Setcode
;
public
UInt64
_Setcode1
;
public
UInt64
_Setcode2
;
public
UInt64
_Setcode3
;
public
int
Type
;
public
int
Type
;
public
int
Level
;
public
int
Level
;
public
int
Attribute
;
public
int
Attribute
;
...
...
Assets/YGOSharp/Card.cs
View file @
b98dc68d
...
@@ -9,7 +9,7 @@ namespace YGOSharp
...
@@ -9,7 +9,7 @@ namespace YGOSharp
public
int
Id
;
public
int
Id
;
public
int
Ot
;
public
int
Ot
;
public
int
Alias
;
public
int
Alias
;
public
long
Setcode
;
public
u
long
Setcode
;
public
int
Type
;
public
int
Type
;
public
int
Level
;
public
int
Level
;
...
@@ -118,7 +118,7 @@ namespace YGOSharp
...
@@ -118,7 +118,7 @@ namespace YGOSharp
this
.
Id
=
(
int
)
reader
.
GetInt64
(
0
);
this
.
Id
=
(
int
)
reader
.
GetInt64
(
0
);
this
.
Ot
=
reader
.
GetInt32
(
1
);
this
.
Ot
=
reader
.
GetInt32
(
1
);
this
.
Alias
=
(
int
)
reader
.
GetInt64
(
2
);
this
.
Alias
=
(
int
)
reader
.
GetInt64
(
2
);
this
.
Setcode
=
reader
.
GetInt64
(
3
);
this
.
Setcode
=
(
ulong
)
reader
.
GetInt64
(
3
);
this
.
Type
=
(
int
)
reader
.
GetInt64
(
4
);
this
.
Type
=
(
int
)
reader
.
GetInt64
(
4
);
this
.
Attack
=
reader
.
GetInt32
(
5
);
this
.
Attack
=
reader
.
GetInt32
(
5
);
this
.
Defense
=
reader
.
GetInt32
(
6
);
this
.
Defense
=
reader
.
GetInt32
(
6
);
...
...
Assets/YGOSharp/CardsManager.cs
View file @
b98dc68d
...
@@ -438,12 +438,12 @@ namespace YGOSharp
...
@@ -438,12 +438,12 @@ namespace YGOSharp
!=
((
int
)
CardType
.
Monster
+
(
int
)
CardType
.
Token
));
!=
((
int
)
CardType
.
Monster
+
(
int
)
CardType
.
Token
));
}
}
public
static
bool
IfSetCard
(
int
setCodeToAnalyse
,
long
setCodeFromCard
)
public
static
bool
IfSetCard
(
int
setCodeToAnalyse
,
u
long
setCodeFromCard
)
{
{
bool
res
=
false
;
bool
res
=
false
;
int
settype
=
setCodeToAnalyse
&
0xfff
;
uint
settype
=
(
uint
)
setCodeToAnalyse
&
0xfff
;
int
setsubtype
=
setCodeToAnalyse
&
0xf000
;
uint
setsubtype
=
(
uint
)
setCodeToAnalyse
&
0xf000
;
long
sc
=
setCodeFromCard
;
u
long
sc
=
setCodeFromCard
;
while
(
sc
!=
0
)
while
(
sc
!=
0
)
{
{
if
((
sc
&
0xfff
)
==
settype
&&
(
sc
&
0xf000
&
setsubtype
)
==
setsubtype
)
if
((
sc
&
0xfff
)
==
settype
&&
(
sc
&
0xf000
&
setsubtype
)
==
setsubtype
)
...
...
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