Commit 99e9474f authored by mercury233's avatar mercury233 Committed by nanahira

show original data for moster become equip

parent 928dc135
Pipeline #4411 failed with stages
in 1 minute and 44 seconds
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment