Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro2
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
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
nanahira
ygopro2
Commits
99e9474f
Commit
99e9474f
authored
May 25, 2021
by
mercury233
Committed by
nanahira
Aug 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show original data for moster become equip
parent
928dc135
Pipeline
#4411
failed with stages
in 1 minute and 44 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
8 deletions
+55
-8
Assets/SibylSystem/ResourceManagers/GameStringHelper.cs
Assets/SibylSystem/ResourceManagers/GameStringHelper.cs
+55
-8
No files found.
Assets/SibylSystem/ResourceManagers/GameStringHelper.cs
View file @
99e9474f
...
...
@@ -257,7 +257,7 @@ public class GameStringHelper
try
{
if
((
data
.
Type
&
0x1
)
>
0
)
if
((
data
.
Type
&
(
int
)
CardType
.
Monster
)
>
0
)
{
re
+=
"[ff8000]"
;
re
+=
"["
+
secondType
(
data
.
Type
)+
"]"
;
...
...
@@ -342,16 +342,63 @@ public class GameStringHelper
re
+=
"[sup]LINK[/sup]"
+
data
.
Level
.
ToString
();
}
}
else
if
((
data
.
Type
&
0x2
)
>
0
)
else
if
((
data
.
Type
&
((
int
)
CardType
.
Spell
+
(
int
)
CardType
.
Trap
)
)
>
0
)
{
re
+=
"[7FFF00
]"
;
re
+=
(
data
.
Type
&
(
int
)
CardType
.
Spell
)
>
0
?
"[7FFF00]"
:
"[DDA0DD
]"
;
re
+=
secondType
(
data
.
Type
);
if
(
data
.
LScale
>
0
)
re
+=
fen
+
data
.
LScale
.
ToString
()
+
"[sup]P[/sup]"
;
YGOSharp
.
Card
original
=
YGOSharp
.
CardsManager
.
GetCard
(
data
.
Id
);
if
((
original
.
Type
&
(
int
)
CardType
.
Monster
)
>
0
)
{
re
+=
"\n"
;
re
+=
"[999999]"
;
re
+=
"["
+
secondType
(
original
.
Type
)
+
"]"
;
if
((
original
.
Type
&
(
int
)
CardType
.
Link
)
==
0
)
{
if
((
original
.
Type
&
(
int
)
CardType
.
Xyz
)
>
0
)
{
re
+=
" "
+
race
(
original
.
Race
)
+
fen
+
attribute
(
original
.
Attribute
)
+
fen
+
original
.
Level
.
ToString
()
+
"[sup]☆[/sup]"
;
}
else
if
((
data
.
Type
&
0x4
)
>
0
)
else
{
re
+=
"[dda0dd]"
;
re
+=
secondType
(
data
.
Type
);
re
+=
" "
+
race
(
original
.
Race
)
+
fen
+
attribute
(
original
.
Attribute
)
+
fen
+
original
.
Level
.
ToString
()
+
"[sup]★[/sup]"
;
}
}
else
{
re
+=
" "
+
race
(
original
.
Race
)
+
fen
+
attribute
(
original
.
Attribute
);
}
if
(
original
.
LScale
>
0
)
re
+=
fen
+
original
.
LScale
.
ToString
()
+
"[sup]P[/sup]"
;
re
+=
"\n"
;
if
(
original
.
Attack
<
0
)
{
re
+=
"[sup]ATK[/sup]? "
;
}
else
{
re
+=
"[sup]ATK[/sup]"
+
original
.
Attack
.
ToString
()
+
" "
;
}
if
((
original
.
Type
&
(
int
)
CardType
.
Link
)
==
0
)
{
if
(
original
.
Defense
<
0
)
{
re
+=
"[sup]DEF[/sup]?"
;
}
else
{
re
+=
"[sup]DEF[/sup]"
+
original
.
Defense
.
ToString
();
}
}
else
{
re
+=
"[sup]LINK[/sup]"
+
original
.
Level
.
ToString
();
}
re
+=
"[-]"
;
}
}
else
{
...
...
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