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
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
hex
YGOProUnity_V2
Commits
d6eb54c2
You need to sign in or sign up before continuing.
Commit
d6eb54c2
authored
Jun 21, 2025
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update GameMessage.SelectChain
parent
e560f1f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
Assets/SibylSystem/Ocgcore/Ocgcore.cs
Assets/SibylSystem/Ocgcore/Ocgcore.cs
+15
-6
Assets/SibylSystem/coreWrapper.cs
Assets/SibylSystem/coreWrapper.cs
+1
-1
No files found.
Assets/SibylSystem/Ocgcore/Ocgcore.cs
View file @
d6eb54c2
...
@@ -1048,11 +1048,20 @@ public class Ocgcore : ServantWithCardDescription
...
@@ -1048,11 +1048,20 @@ public class Ocgcore : ServantWithCardDescription
r
.
ReadChar
();
r
.
ReadChar
();
int
count
=
r
.
ReadByte
();
int
count
=
r
.
ReadByte
();
int
spcount
=
r
.
ReadByte
();
int
spcount
=
r
.
ReadByte
();
int
forced
=
r
.
ReadByte
();
var
hint0
=
r
.
ReadInt32
();
var
hint0
=
r
.
ReadInt32
();
var
hint1
=
r
.
ReadInt32
();
var
hint1
=
r
.
ReadInt32
();
var
ignore
=
false
;
var
ignore
=
false
;
if
(
forced
==
0
)
bool
forced
=
false
;
for
(
int
i
=
0
;
i
<
count
;
i
++)
{
r
.
ReadByte
();
// flag
int
f
=
r
.
ReadByte
();
// forced
if
(
f
==
1
)
forced
=
true
;
r
.
ReadInt32
();
// card id
r
.
ReadGPS
();
r
.
ReadInt32
();
// desc
}
if
(!
forced
)
{
{
var
condition
=
gameInfo
.
get_condition
();
var
condition
=
gameInfo
.
get_condition
();
if
(
condition
==
gameInfo
.
chainCondition
.
no
)
if
(
condition
==
gameInfo
.
chainCondition
.
no
)
...
@@ -3106,14 +3115,14 @@ public class Ocgcore : ServantWithCardDescription
...
@@ -3106,14 +3115,14 @@ public class Ocgcore : ServantWithCardDescription
player
=
localPlayer
(
r
.
ReadChar
());
player
=
localPlayer
(
r
.
ReadChar
());
count
=
r
.
ReadByte
();
count
=
r
.
ReadByte
();
int
spcount
=
r
.
ReadByte
();
int
spcount
=
r
.
ReadByte
();
int
forced
=
r
.
ReadByte
();
var
hint0
=
r
.
ReadInt32
();
var
hint0
=
r
.
ReadInt32
();
var
hint1
=
r
.
ReadInt32
();
var
hint1
=
r
.
ReadInt32
();
var
chainCards
=
new
List
<
gameCard
>();
var
chainCards
=
new
List
<
gameCard
>();
var
forced
=
0
;
for
(
var
i
=
0
;
i
<
count
;
i
++)
for
(
var
i
=
0
;
i
<
count
;
i
++)
{
{
var
flag
=
0
;
var
flag
=
r
.
ReadChar
()
;
if
(
length_of_message
%
12
!=
0
)
flag
=
r
.
ReadChar
();
forced
+=
r
.
ReadByte
();
code
=
r
.
ReadInt32
()
%
1000000000
;
code
=
r
.
ReadInt32
()
%
1000000000
;
gps
=
r
.
ReadGPS
();
gps
=
r
.
ReadGPS
();
desc
=
GameStringManager
.
get
(
r
.
ReadInt32
());
desc
=
GameStringManager
.
get
(
r
.
ReadInt32
());
...
@@ -3133,7 +3142,7 @@ public class Ocgcore : ServantWithCardDescription
...
@@ -3133,7 +3142,7 @@ public class Ocgcore : ServantWithCardDescription
var
chain_condition
=
gameInfo
.
get_condition
();
var
chain_condition
=
gameInfo
.
get_condition
();
var
handle_flag
=
0
;
var
handle_flag
=
0
;
if
(
forced
==
0
)
if
(
forced
==
0
)
// TODO: 按每张卡的forced处理
{
{
//无强制发动的卡
//无强制发动的卡
if
(
spcount
==
0
)
if
(
spcount
==
0
)
...
...
Assets/SibylSystem/coreWrapper.cs
View file @
d6eb54c2
...
@@ -732,11 +732,11 @@ namespace Percy
...
@@ -732,11 +732,11 @@ namespace Percy
move
(
1
);
move
(
1
);
count
=
move
(
1
);
count
=
move
(
1
);
move
(
1
);
move
(
1
);
move
(
1
);
move
(
4
);
move
(
4
);
move
(
4
);
move
(
4
);
for
(
var
i
=
0
;
i
<
count
;
i
++)
for
(
var
i
=
0
;
i
<
count
;
i
++)
{
{
move
(
1
);
move
(
1
);
move
(
1
);
move
(
4
);
move
(
4
);
move
(
4
);
move
(
4
);
...
...
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