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
20aedee9
Commit
20aedee9
authored
Jun 27, 2025
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix GameMessage.SelectChain
parent
18430657
Pipeline
#38163
failed with stage
in 49 minutes and 28 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
13 deletions
+43
-13
Assets/SibylSystem/Ocgcore/OCGobjects/gameCard.cs
Assets/SibylSystem/Ocgcore/OCGobjects/gameCard.cs
+8
-7
Assets/SibylSystem/Ocgcore/Ocgcore.cs
Assets/SibylSystem/Ocgcore/Ocgcore.cs
+35
-6
No files found.
Assets/SibylSystem/Ocgcore/OCGobjects/gameCard.cs
View file @
20aedee9
...
...
@@ -30,6 +30,7 @@ public class Effect
public
string
desc
;
public
int
flag
;
public
int
ptr
;
public
bool
forced
=
false
;
}
public
class
gameCard
:
OCGobject
...
...
@@ -1431,14 +1432,14 @@ public class gameCard : OCGobject
{
gameObject_face
.
GetComponent
<
Renderer
>().
material
.
mainTexture
=
await
GameTextureManager
.
GetCardPicture
(
data
.
Id
,
p
.
controller
==
0
?
GameTextureManager
.
myBack
:
GameTextureManager
.
opBack
);
if
(
game_object_verticle_drawing
)
{
if
(
Program
.
getVerticalTransparency
()
>
0.5f
)
if
(
game_object_verticle_drawing
)
{
if
(
Program
.
getVerticalTransparency
()
>
0.5f
)
game_object_verticle_drawing
.
GetComponent
<
Renderer
>().
material
.
mainTexture
=
await
GameTextureManager
.
GetCardCloseUp
(
data
.
Id
);
else
game_object_verticle_drawing
.
GetComponent
<
Renderer
>().
material
.
mainTexture
=
await
GameTextureManager
.
GetCardCloseUp
(
data
.
Id
);
else
game_object_verticle_drawing
.
GetComponent
<
Renderer
>().
material
.
mainTexture
=
GameTextureManager
.
N
;
GameTextureManager
.
N
;
}
}
...
...
Assets/SibylSystem/Ocgcore/Ocgcore.cs
View file @
20aedee9
...
...
@@ -59,6 +59,7 @@ public class Ocgcore : ServantWithCardDescription
private
arrow
Arrow
;
private
autoForceChainHandlerType
autoForceChainHandler
=
autoForceChainHandlerType
.
manDoAll
;
private
List
<
gameCard
>
chainCards
=
new
List
<
gameCard
>();
private
float
camera_max
=
-
17.5f
;
...
...
@@ -3118,12 +3119,13 @@ public class Ocgcore : ServantWithCardDescription
int
spcount
=
r
.
ReadByte
();
var
hint0
=
r
.
ReadInt32
();
var
hint1
=
r
.
ReadInt32
();
var
chainCards
=
new
List
<
gameCard
>();
var
force
d
=
0
;
chainCards
=
new
List
<
gameCard
>();
var
force
Count
=
0
;
for
(
var
i
=
0
;
i
<
count
;
i
++)
{
var
flag
=
r
.
ReadChar
();
forced
+=
r
.
ReadByte
();
var
forced
=
r
.
ReadByte
();
forceCount
+=
forced
;
code
=
r
.
ReadInt32
()
%
1000000000
;
gps
=
r
.
ReadGPS
();
desc
=
GameStringManager
.
get
(
r
.
ReadInt32
());
...
...
@@ -3137,13 +3139,14 @@ public class Ocgcore : ServantWithCardDescription
eff
.
flag
=
flag
;
eff
.
ptr
=
i
;
eff
.
desc
=
desc
;
eff
.
forced
=
forced
>
0
;
card
.
effects
.
Add
(
eff
);
}
}
var
chain_condition
=
gameInfo
.
get_condition
();
var
handle_flag
=
0
;
if
(
force
d
==
0
)
// TODO: 按每张卡的forced处理
if
(
force
Count
==
0
)
{
//无强制发动的卡
if
(
spcount
==
0
)
...
...
@@ -3312,8 +3315,21 @@ public class Ocgcore : ServantWithCardDescription
if
(
handle_flag
==
4
)
{
//有一张强制发动的卡 回应--
var
answer
=
-
1
;
foreach
(
var
ccard
in
chainCards
)
{
foreach
(
var
effect
in
ccard
.
effects
)
{
if
(
effect
.
forced
)
{
answer
=
effect
.
ptr
;
break
;
}
}
if
(
answer
>=
0
)
break
;
}
binaryMaster
=
new
BinaryMaster
();
binaryMaster
.
writer
.
Write
(
chainCards
[
0
].
effects
[
0
].
ptr
);
binaryMaster
.
writer
.
Write
(
answer
>=
0
?
answer
:
0
);
sendReturn
(
binaryMaster
.
get
());
}
...
...
@@ -7460,8 +7476,21 @@ public class Ocgcore : ServantWithCardDescription
autoForceChainHandler
=
autoForceChainHandlerType
.
autoHandleAll
;
try
{
var
answer
=
-
1
;
foreach
(
var
card
in
chainCards
)
{
foreach
(
var
effect
in
card
.
effects
)
{
if
(
effect
.
forced
)
{
answer
=
effect
.
ptr
;
break
;
}
}
if
(
answer
>=
0
)
break
;
}
binaryMaster
=
new
BinaryMaster
();
binaryMaster
.
writer
.
Write
(
0
);
binaryMaster
.
writer
.
Write
(
answer
>=
0
?
answer
:
0
);
sendReturn
(
binaryMaster
.
get
());
}
catch
(
Exception
e
)
...
...
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