Commit b1d1b754 authored by 無名の凝泪's avatar 無名の凝泪 Committed by Unicorn369

Update OCG/TCG/Custom mark

parent c7a2bd22
...@@ -123,16 +123,16 @@ public class GameStringHelper ...@@ -123,16 +123,16 @@ public class GameStringHelper
switch(card.Ot) switch(card.Ot)
{ {
case 1: case 1:
limitot = "[OCG] "; limitot = GameStringManager.get_unsafe(1240);
break; break;
case 2: case 2:
limitot = "[TCG] "; limitot = GameStringManager.get_unsafe(1241);
break; break;
case 3: case 3:
limitot = "[OCG/TCG] "; limitot = GameStringManager.get_unsafe(1242);
break; break;
case 4: case 4:
limitot = "[Anime] "; limitot = GameStringManager.get_unsafe(1243);
break; break;
} }
string re = ""; string re = "";
...@@ -140,7 +140,7 @@ public class GameStringHelper ...@@ -140,7 +140,7 @@ public class GameStringHelper
{ {
re += "[b]" + card.Name + "[/b]"; re += "[b]" + card.Name + "[/b]";
re += "\n"; re += "\n";
re += "[sup]" + limitot + "[/sup]"; re += "[sup][" + limitot + "] [/sup]";
re += "\r"; re += "\r";
re += "[sup]" + card.Id.ToString() + "[/sup]"; re += "[sup]" + card.Id.ToString() + "[/sup]";
re += "\n"; re += "\n";
......
...@@ -103,6 +103,7 @@ namespace YGOSharp ...@@ -103,6 +103,7 @@ namespace YGOSharp
int getDefence_UP, int getDefence_UP,
int getP_UP, int getP_UP,
int getYear_UP, int getYear_UP,
int getOT,
string getPack, string getPack,
int getBAN, int getBAN,
Banlist banlist, Banlist banlist,
...@@ -127,7 +128,7 @@ namespace YGOSharp ...@@ -127,7 +128,7 @@ namespace YGOSharp
{ {
if (((card.Type & getTypeFilter)) == getTypeFilter || getTypeFilter == 0) if (((card.Type & getTypeFilter)) == getTypeFilter || getTypeFilter == 0)
{ {
if ((card.Race & getRaceFilter) >0 || getRaceFilter == 0) if ((card.Race & getRaceFilter) > 0 || getRaceFilter == 0)
{ {
if ((card.Attribute & getAttributeFilter) > 0 || getAttributeFilter == 0) if ((card.Attribute & getAttributeFilter) > 0 || getAttributeFilter == 0)
{ {
...@@ -144,6 +145,8 @@ namespace YGOSharp ...@@ -144,6 +145,8 @@ namespace YGOSharp
if (judgeint(getYear, getYear_UP, card.year)) if (judgeint(getYear, getYear_UP, card.year))
{ {
if (getBAN == -233 || banlist == null || banlist.GetQuantity(card.Id) == getBAN) if (getBAN == -233 || banlist == null || banlist.GetQuantity(card.Id) == getBAN)
{
if (getOT == 0 || getOT == card.Ot)
{ {
if (getPack == "" || card.packFullName == getPack) if (getPack == "" || card.packFullName == getPack)
{ {
...@@ -162,6 +165,7 @@ namespace YGOSharp ...@@ -162,6 +165,7 @@ namespace YGOSharp
} }
} }
} }
}
nameInSearch = getName; nameInSearch = getName;
returnValue.Sort(comparisonOfCard()); returnValue.Sort(comparisonOfCard());
nameInSearch = ""; nameInSearch = "";
......
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