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
1
Merge Requests
1
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
74e1072e
Commit
74e1072e
authored
May 03, 2022
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix getSetName
parent
2b482758
Pipeline
#12395
passed with stages
in 16 minutes and 29 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
14 deletions
+17
-14
Assets/SibylSystem/ResourceManagers/GameStringHelper.cs
Assets/SibylSystem/ResourceManagers/GameStringHelper.cs
+17
-14
No files found.
Assets/SibylSystem/ResourceManagers/GameStringHelper.cs
View file @
74e1072e
...
...
@@ -461,16 +461,19 @@ public class GameStringHelper
public
static
string
getSetName
(
long
Setcode
)
{
var
setcodes
=
new
int
[
4
];
for
(
var
j
=
0
;
j
<
4
;
j
++)
{
setcodes
[
j
]
=
(
int
)((
Setcode
>>
j
*
16
)
&
0xffff
);
}
var
returnValue
=
new
List
<
string
>();
var
lastBaseType
=
0xfff
;
for
(
var
i
=
0
;
i
<
GameStringManager
.
xilies
.
Count
;
i
++)
{
var
currentHash
=
GameStringManager
.
xilies
[
i
].
hashCode
;
if
(
CardsManager
.
IfSetCard
(
currentHash
,
Setcode
))
for
(
var
j
=
0
;
j
<
4
;
j
++)
{
if
(
currentHash
==
setcodes
[
j
])
{
if
((
lastBaseType
&
currentHash
)
==
lastBaseType
)
returnValue
.
RemoveAt
(
returnValue
.
Count
-
1
);
lastBaseType
=
currentHash
&
0xfff
;
var
setArray
=
GameStringManager
.
xilies
[
i
].
content
.
Split
(
'\t'
);
var
setString
=
setArray
[
0
];
//if (setArray.Length > 1)
...
...
@@ -480,7 +483,7 @@ public class GameStringHelper
returnValue
.
Add
(
setString
);
}
}
return
s
tring
.
Join
(
"|"
,
returnValue
.
ToArray
());
}
return
S
tring
.
Join
(
"|"
,
returnValue
.
ToArray
());
}
}
\ 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