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
a1cebbd1
Commit
a1cebbd1
authored
Apr 05, 2019
by
mercury233
Committed by
GitHub
Apr 05, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2 from purerosefallen/update_query_mer
Update Query
parents
3e2184b9
eb9fc79f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
16 deletions
+26
-16
Assets/SibylSystem/MonoHelpers/TcpHelper.cs
Assets/SibylSystem/MonoHelpers/TcpHelper.cs
+23
-14
Assets/YGOSharp/Enums/Query.cs
Assets/YGOSharp/Enums/Query.cs
+3
-2
No files found.
Assets/SibylSystem/MonoHelpers/TcpHelper.cs
View file @
a1cebbd1
...
...
@@ -699,17 +699,6 @@ public static class BinaryExtensions
{
l2
=
r
.
ReadInt32
();
}
if
(((
flag
&
(
int
)
Query
.
Level
)
!=
0
)
||
((
flag
&
(
int
)
Query
.
Rank
)
!=
0
))
{
if
(
l1
>
l2
)
{
data
.
Level
=
l1
;
}
else
{
data
.
Level
=
l2
;
}
}
if
((
flag
&
(
int
)
Query
.
Attribute
)
!=
0
)
data
.
Attribute
=
r
.
ReadInt32
();
...
...
@@ -725,8 +714,8 @@ public static class BinaryExtensions
r
.
ReadInt32
();
if
((
flag
&
(
int
)
Query
.
Reason
)
!=
0
)
r
.
ReadInt32
();
//
if ((flag & (int)Query.ReasonCard) != 0)
// r.ReadInt32();
if
((
flag
&
(
int
)
Query
.
ReasonCard
)
!=
0
)
r
.
ReadInt32
();
if
((
flag
&
(
int
)
Query
.
EquipCard
)
!=
0
)
{
cardToRefresh
.
addTarget
(
Program
.
I
().
ocgcore
.
GCS_cardGet
(
r
.
ReadGPS
(),
false
));
...
...
@@ -772,6 +761,26 @@ public static class BinaryExtensions
data
.
LScale
=
r
.
ReadInt32
();
if
((
flag
&
(
int
)
Query
.
RScale
)
!=
0
)
data
.
RScale
=
r
.
ReadInt32
();
int
l3
=
0
;
if
((
flag
&
(
int
)
Query
.
Link
)
!=
0
)
{
l3
=
r
.
ReadInt32
();
//link value
data
.
rDefense
=
r
.
ReadInt32
();
//link marker
}
if
(((
flag
&
(
int
)
Query
.
Level
)
!=
0
)
||
((
flag
&
(
int
)
Query
.
Rank
)
!=
0
)
||
((
flag
&
(
int
)
Query
.
Link
)
!=
0
))
{
if
(
l1
>
l2
)
{
data
.
Level
=
l1
;
}
else
{
data
.
Level
=
l2
;
}
if
(
l3
>
data
.
Level
)
data
.
Level
=
l3
;
}
cardToRefresh
.
set_data
(
data
);
//
}
...
...
@@ -875,4 +884,4 @@ public class TcpClientWithTimeout
exception
=
ex
;
}
}
}
\ No newline at end of file
}
Assets/YGOSharp/Enums/Query.cs
View file @
a1cebbd1
...
...
@@ -23,6 +23,7 @@
Owner
=
0x40000
,
Status
=
0x80000
,
LScale
=
0x200000
,
RScale
=
0x400000
RScale
=
0x400000
,
Link
=
0x800000
}
}
\ No newline at end of file
}
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