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
赤子奈落
YGOProUnity_V2
Commits
dcb0b354
Commit
dcb0b354
authored
Feb 20, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix search Normal Spell
parent
7c0b2ddc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
3 deletions
+23
-3
Assets/SibylSystem/deckManager/DeckManager.cs
Assets/SibylSystem/deckManager/DeckManager.cs
+18
-2
Assets/YGOSharp/CardsManager.cs
Assets/YGOSharp/CardsManager.cs
+5
-1
No files found.
Assets/SibylSystem/deckManager/DeckManager.cs
View file @
dcb0b354
...
...
@@ -642,6 +642,7 @@ public class DeckManager : ServantWithCardDescription
getBanFilter
(),
currentBanlist
,
getTypeFilter
(),
getTypeFilter2
(),
getRaceFilter
(),
getAttributeFilter
(),
getCatagoryFilter
()
...
...
@@ -712,6 +713,23 @@ public class DeckManager : ServantWithCardDescription
if
(
UIPopupList_main
.
value
==
GameStringManager
.
get_unsafe
(
1312
))
{
returnValue
=
(
UInt32
)
CardType
.
Monster
;
}
if
(
UIPopupList_main
.
value
==
GameStringManager
.
get_unsafe
(
1313
))
{
returnValue
=
(
UInt32
)
CardType
.
Spell
;
}
if
(
UIPopupList_main
.
value
==
GameStringManager
.
get_unsafe
(
1314
))
{
returnValue
=
(
UInt32
)
CardType
.
Trap
;
}
return
returnValue
;
}
UInt32
getTypeFilter2
()
{
UInt32
returnValue
=
0
;
if
(
UIPopupList_main
.
value
==
GameStringManager
.
get_unsafe
(
1312
))
{
if
(
ifType
(
GameStringManager
.
get_unsafe
(
1054
)))
{
returnValue
|=
(
UInt32
)
CardType
.
Monster
+
(
UInt32
)
CardType
.
Normal
;
...
...
@@ -775,7 +793,6 @@ public class DeckManager : ServantWithCardDescription
}
if
(
UIPopupList_main
.
value
==
GameStringManager
.
get_unsafe
(
1313
))
{
returnValue
=
(
UInt32
)
CardType
.
Spell
;
if
(
ifType
(
GameStringManager
.
get_unsafe
(
1054
)))
{
returnValue
|=
(
UInt32
)
CardType
.
Spell
;
...
...
@@ -803,7 +820,6 @@ public class DeckManager : ServantWithCardDescription
}
if
(
UIPopupList_main
.
value
==
GameStringManager
.
get_unsafe
(
1314
))
{
returnValue
=
(
UInt32
)
CardType
.
Trap
;
if
(
ifType
(
GameStringManager
.
get_unsafe
(
1054
)))
{
returnValue
|=
(
UInt32
)
CardType
.
Trap
;
...
...
Assets/YGOSharp/CardsManager.cs
View file @
dcb0b354
...
...
@@ -105,6 +105,7 @@ namespace YGOSharp
int
getBAN
,
Banlist
banlist
,
uint
getTypeFilter
,
uint
getTypeFilter2
,
uint
getRaceFilter
,
uint
getAttributeFilter
,
uint
getCatagoryFilter
...
...
@@ -123,7 +124,10 @@ namespace YGOSharp
||
card
.
Id
.
ToString
()
==
getName
)
{
if
(((
card
.
Type
&
getTypeFilter
))
==
getTypeFilter
||
getTypeFilter
==
0
)
if
(((
card
.
Type
&
getTypeFilter
)
==
getTypeFilter
||
getTypeFilter
==
0
)
&&
((
card
.
Type
==
getTypeFilter2
||
getTypeFilter
==
(
UInt32
)
CardType
.
Monster
)
&&
(
card
.
Type
&
getTypeFilter2
)
==
getTypeFilter2
||
getTypeFilter2
==
0
))
{
if
((
card
.
Race
&
getRaceFilter
)
>
0
||
getRaceFilter
==
0
)
{
...
...
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