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
FF
YGOProUnity_V2
Commits
b5d51a28
You need to sign in or sign up before continuing.
Commit
b5d51a28
authored
Dec 30, 2020
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add OT filter by 无名的凝泪
parent
92f049a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
2 deletions
+33
-2
Assets/SibylSystem/deckManager/DeckManager.cs
Assets/SibylSystem/deckManager/DeckManager.cs
+27
-0
Assets/YGOSharp/CardsManager.cs
Assets/YGOSharp/CardsManager.cs
+6
-2
No files found.
Assets/SibylSystem/deckManager/DeckManager.cs
View file @
b5d51a28
...
@@ -101,6 +101,10 @@ public class DeckManager : ServantWithCardDescription
...
@@ -101,6 +101,10 @@ public class DeckManager : ServantWithCardDescription
UIPopupList_ban
.
AddItem
(
GameStringManager
.
get_unsafe
(
1316
));
UIPopupList_ban
.
AddItem
(
GameStringManager
.
get_unsafe
(
1316
));
UIPopupList_ban
.
AddItem
(
GameStringManager
.
get_unsafe
(
1317
));
UIPopupList_ban
.
AddItem
(
GameStringManager
.
get_unsafe
(
1317
));
UIPopupList_ban
.
AddItem
(
GameStringManager
.
get_unsafe
(
1318
));
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
();
clearAll
();
UIHelper
.
registEvent
(
UIPopupList_main
.
gameObject
,
onUIPopupList_main
);
UIHelper
.
registEvent
(
UIPopupList_main
.
gameObject
,
onUIPopupList_main
);
UIHelper
.
registEvent
(
UIPopupList_second
.
gameObject
,
onUIPopupList_second
);
UIHelper
.
registEvent
(
UIPopupList_second
.
gameObject
,
onUIPopupList_second
);
...
@@ -633,6 +637,7 @@ public class DeckManager : ServantWithCardDescription
...
@@ -633,6 +637,7 @@ public class DeckManager : ServantWithCardDescription
getDefence_UP
(),
getDefence_UP
(),
getP_UP
(),
getP_UP
(),
getYear_UP
(),
getYear_UP
(),
getOT
(),
getPack
(),
getPack
(),
getBanFilter
(),
getBanFilter
(),
currentBanlist
,
currentBanlist
,
...
@@ -833,6 +838,28 @@ public class DeckManager : ServantWithCardDescription
...
@@ -833,6 +838,28 @@ public class DeckManager : ServantWithCardDescription
return
returnValue
;
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
getRaceFilter
()
{
{
UInt32
returnValue
=
0
;
UInt32
returnValue
=
0
;
...
...
Assets/YGOSharp/CardsManager.cs
View file @
b5d51a28
...
@@ -100,6 +100,7 @@ namespace YGOSharp
...
@@ -100,6 +100,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
,
...
@@ -142,9 +143,12 @@ namespace YGOSharp
...
@@ -142,9 +143,12 @@ namespace YGOSharp
{
{
if
(
getBAN
==
-
233
||
banlist
==
null
||
banlist
.
GetQuantity
(
card
.
Id
)
==
getBAN
)
if
(
getBAN
==
-
233
||
banlist
==
null
||
banlist
.
GetQuantity
(
card
.
Id
)
==
getBAN
)
{
{
if
(
get
Pack
==
""
||
card
.
packFullName
==
getPack
)
if
(
get
OT
==
-
233
||
getOT
==
card
.
Ot
)
{
{
returnValue
.
Add
(
card
);
if
(
getPack
==
""
||
card
.
packFullName
==
getPack
)
{
returnValue
.
Add
(
card
);
}
}
}
}
}
}
}
...
...
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