Commit b5d51a28 authored by mercury233's avatar mercury233

add OT filter by 无名的凝泪

parent 92f049a1
......@@ -101,6 +101,10 @@ public class DeckManager : ServantWithCardDescription
UIPopupList_ban.AddItem(GameStringManager.get_unsafe(1316));
UIPopupList_ban.AddItem(GameStringManager.get_unsafe(1317));
UIPopupList_ban.AddItem(GameStringManager.get_unsafe(1318));
UIPopupList_ban.AddItem(GameStringManager.get_unsafe(1240));
UIPopupList_ban.AddItem(GameStringManager.get_unsafe(1241));
UIPopupList_ban.AddItem(GameStringManager.get_unsafe(1242));
UIPopupList_ban.AddItem(GameStringManager.get_unsafe(1243));
clearAll();
UIHelper.registEvent(UIPopupList_main.gameObject, onUIPopupList_main);
UIHelper.registEvent(UIPopupList_second.gameObject, onUIPopupList_second);
......@@ -633,6 +637,7 @@ public class DeckManager : ServantWithCardDescription
getDefence_UP(),
getP_UP(),
getYear_UP(),
getOT(),
getPack(),
getBanFilter(),
currentBanlist,
......@@ -833,6 +838,28 @@ public class DeckManager : ServantWithCardDescription
return returnValue;
}
int getOT()
{
int returnValue = -233;
if (UIPopupList_ban.value == GameStringManager.get_unsafe(1240))
{
returnValue = 1;
}
if (UIPopupList_ban.value == GameStringManager.get_unsafe(1241))
{
returnValue = 2;
}
if (UIPopupList_ban.value == GameStringManager.get_unsafe(1242))
{
returnValue = 3;
}
if (UIPopupList_ban.value == GameStringManager.get_unsafe(1243))
{
returnValue = 4;
}
return returnValue;
}
UInt32 getRaceFilter()
{
UInt32 returnValue = 0;
......
......@@ -100,6 +100,7 @@ namespace YGOSharp
int getDefence_UP,
int getP_UP,
int getYear_UP,
int getOT,
string getPack,
int getBAN,
Banlist banlist,
......@@ -142,9 +143,12 @@ namespace YGOSharp
{
if (getBAN == -233 || banlist == null || banlist.GetQuantity(card.Id) == getBAN)
{
if (getPack == "" || card.packFullName == getPack)
if (getOT == -233 || getOT == card.Ot)
{
returnValue.Add(card);
if (getPack == "" || card.packFullName == getPack)
{
returnValue.Add(card);
}
}
}
}
......
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