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
perfectdicky
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
Changes
1
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
...
@@ -461,16 +461,19 @@ public class GameStringHelper
public
static
string
getSetName
(
long
Setcode
)
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
returnValue
=
new
List
<
string
>();
var
lastBaseType
=
0xfff
;
for
(
var
i
=
0
;
i
<
GameStringManager
.
xilies
.
Count
;
i
++)
for
(
var
i
=
0
;
i
<
GameStringManager
.
xilies
.
Count
;
i
++)
{
{
var
currentHash
=
GameStringManager
.
xilies
[
i
].
hashCode
;
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
setArray
=
GameStringManager
.
xilies
[
i
].
content
.
Split
(
'\t'
);
var
setString
=
setArray
[
0
];
var
setString
=
setArray
[
0
];
//if (setArray.Length > 1)
//if (setArray.Length > 1)
...
@@ -480,7 +483,7 @@ public class GameStringHelper
...
@@ -480,7 +483,7 @@ public class GameStringHelper
returnValue
.
Add
(
setString
);
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