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
赤子奈落
YGOProUnity_V2
Commits
b6ede482
Commit
b6ede482
authored
Apr 08, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Card.LinkMarker
parent
a3cac10c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
Assets/SibylSystem/MonoHelpers/TcpHelper.cs
Assets/SibylSystem/MonoHelpers/TcpHelper.cs
+1
-1
Assets/SibylSystem/Ocgcore/OCGobjects/gameCard.cs
Assets/SibylSystem/Ocgcore/OCGobjects/gameCard.cs
+1
-1
Assets/YGOSharp/Card.cs
Assets/YGOSharp/Card.cs
+4
-1
No files found.
Assets/SibylSystem/MonoHelpers/TcpHelper.cs
View file @
b6ede482
...
...
@@ -765,7 +765,7 @@ public static class BinaryExtensions
if
((
flag
&
(
int
)
Query
.
Link
)
!=
0
)
{
l3
=
r
.
ReadInt32
();
//link value
data
.
rDefense
=
r
.
ReadInt32
();
//link marker
data
.
LinkMarker
=
r
.
ReadInt32
();
}
if
(((
flag
&
(
int
)
Query
.
Level
)
!=
0
)
||
((
flag
&
(
int
)
Query
.
Rank
)
!=
0
)
||
((
flag
&
(
int
)
Query
.
Link
)
!=
0
))
{
...
...
Assets/SibylSystem/Ocgcore/OCGobjects/gameCard.cs
View file @
b6ede482
...
...
@@ -1290,7 +1290,7 @@ public class gameCard : OCGobject
data
.
Level
=
0
;
for
(
int
i
=
0
;
i
<
32
;
i
++)
{
if
((
data
.
rDefense
&
1
<<
i
)
>
0
)
if
((
data
.
LinkMarker
&
1
<<
i
)
>
0
)
{
data
.
Level
++;
}
...
...
Assets/YGOSharp/Card.cs
View file @
b6ede482
...
...
@@ -15,6 +15,7 @@ namespace YGOSharp
public
int
Level
;
public
int
LScale
;
public
int
RScale
;
public
int
LinkMarker
;
public
int
Attribute
;
public
int
Race
;
...
...
@@ -47,6 +48,7 @@ namespace YGOSharp
r
.
Level
=
Level
;
r
.
LScale
=
LScale
;
r
.
RScale
=
RScale
;
r
.
LinkMarker
=
LinkMarker
;
r
.
Attribute
=
Attribute
;
r
.
Race
=
Race
;
r
.
Attack
=
Attack
;
...
...
@@ -102,7 +104,7 @@ namespace YGOSharp
public
bool
HasLinkMarker
(
CardLinkMarker
dir
)
{
return
(
rDefense
&
(
int
)
dir
)
!=
0
;
return
(
LinkMarker
&
(
int
)
dir
)
!=
0
;
}
public
bool
IsExtraCard
()
...
...
@@ -126,6 +128,7 @@ namespace YGOSharp
this
.
Level
=
(
int
)
Level_raw
&
0xff
;
this
.
LScale
=
(
int
)((
Level_raw
>>
0x18
)
&
0xff
);
this
.
RScale
=
(
int
)((
Level_raw
>>
0x10
)
&
0xff
);
this
.
LinkMarker
=
this
.
Defense
;
this
.
Race
=
reader
.
GetInt32
(
8
);
this
.
Attribute
=
reader
.
GetInt32
(
9
);
this
.
Category
=
reader
.
GetInt64
(
10
);
...
...
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