Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
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
fallenstardust
YGOMobile
Commits
c2da870b
Commit
c2da870b
authored
Jul 31, 2018
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加搜索分类[特殊召唤]&[效果]不显示仪式和额外的卡
parent
e9db5e8c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
12 deletions
+15
-12
mobile/src/main/java/cn/garymb/ygomobile/loader/CardSearchInfo.java
.../main/java/cn/garymb/ygomobile/loader/CardSearchInfo.java
+12
-10
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/CardSearcher.java
.../main/java/cn/garymb/ygomobile/ui/cards/CardSearcher.java
+2
-2
mobile/src/main/java/ocgcore/enums/CardType.java
mobile/src/main/java/ocgcore/enums/CardType.java
+1
-0
No files found.
mobile/src/main/java/cn/garymb/ygomobile/loader/CardSearchInfo.java
View file @
c2da870b
...
@@ -126,20 +126,10 @@ class CardSearchInfo {
...
@@ -126,20 +126,10 @@ class CardSearchInfo {
}
}
if
(
types
.
length
>
0
)
{
if
(
types
.
length
>
0
)
{
boolean
st
=
false
;
boolean
st
=
false
;
boolean
effect
=
false
;
for
(
long
cardType
:
types
)
{
for
(
long
cardType
:
types
)
{
if
(
cardType
==
CardType
.
Spell
.
value
()
||
cardType
==
CardType
.
Trap
.
value
())
{
if
(
cardType
==
CardType
.
Spell
.
value
()
||
cardType
==
CardType
.
Trap
.
value
())
{
st
=
true
;
st
=
true
;
break
;
break
;
}
else
if
(
cardType
==
CardType
.
Effect
.
value
()){
effect
=
true
;
break
;
}
}
if
(
effect
){
if
(!
card
.
isType
(
CardType
.
Effect
))
{
return
false
;
}
}
}
}
...
@@ -166,6 +156,18 @@ class CardSearchInfo {
...
@@ -166,6 +156,18 @@ class CardSearchInfo {
if
((
card
.
Type
&
type
)
!=
type
)
{
if
((
card
.
Type
&
type
)
!=
type
)
{
return
false
;
return
false
;
}
}
//如果是效果怪兽
if
((
card
.
Type
&
CardType
.
Effect
.
value
())
==
CardType
.
Effect
.
value
()){
//如果是融合/同调/超量/连接
if
((
card
.
Type
&
CardType
.
Fusion
.
value
())==
CardType
.
Fusion
.
value
()
||(
card
.
Type
&
CardType
.
Ritual
.
value
())
==
CardType
.
Ritual
.
value
()
||(
card
.
Type
&
CardType
.
Synchro
.
value
())
==
CardType
.
Synchro
.
value
()
||(
card
.
Type
&
CardType
.
Xyz
.
value
())
==
CardType
.
Xyz
.
value
()
||(
card
.
Type
&
CardType
.
Link
.
value
())
==
CardType
.
Link
.
value
()
)
return
false
;
}
}
}
}
}
}
}
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/CardSearcher.java
View file @
c2da870b
...
@@ -255,9 +255,9 @@ public class CardSearcher implements View.OnClickListener {
...
@@ -255,9 +255,9 @@ public class CardSearcher implements View.OnClickListener {
initTypeSpinners
(
typeSpinner
,
new
CardType
[]{
CardType
.
None
,
CardType
.
Monster
,
CardType
.
Spell
,
CardType
.
Trap
});
initTypeSpinners
(
typeSpinner
,
new
CardType
[]{
CardType
.
None
,
CardType
.
Monster
,
CardType
.
Spell
,
CardType
.
Trap
});
initTypeSpinners
(
typeMonsterSpinner
,
new
CardType
[]{
CardType
.
None
,
CardType
.
Normal
,
CardType
.
Effect
,
CardType
.
Fusion
,
CardType
.
Ritual
,
initTypeSpinners
(
typeMonsterSpinner
,
new
CardType
[]{
CardType
.
None
,
CardType
.
Normal
,
CardType
.
Effect
,
CardType
.
Fusion
,
CardType
.
Ritual
,
CardType
.
Synchro
,
CardType
.
Pendulum
,
CardType
.
Xyz
,
CardType
.
Link
,
CardType
.
Spirit
,
CardType
.
Union
,
CardType
.
Synchro
,
CardType
.
Pendulum
,
CardType
.
Xyz
,
CardType
.
Link
,
CardType
.
Spirit
,
CardType
.
Union
,
CardType
.
Dual
,
CardType
.
Tuner
,
CardType
.
Flip
,
CardType
.
Toon
,
CardType
.
Token
CardType
.
Dual
,
CardType
.
Tuner
,
CardType
.
Flip
,
CardType
.
Toon
,
CardType
.
Sp_Summon
,
CardType
.
Token
});
});
initTypeSpinners
(
typeMonsterSpinner2
,
new
CardType
[]{
CardType
.
None
,
CardType
.
Pendulum
,
CardType
.
Tuner
,
CardType
.
Effect
,
CardType
.
Normal
initTypeSpinners
(
typeMonsterSpinner2
,
new
CardType
[]{
CardType
.
None
,
CardType
.
Pendulum
,
CardType
.
Tuner
});
});
initTypeSpinners
(
typeSTSpinner
,
new
CardType
[]{
CardType
.
None
,
CardType
.
Normal
,
CardType
.
QuickPlay
,
CardType
.
Ritual
,
initTypeSpinners
(
typeSTSpinner
,
new
CardType
[]{
CardType
.
None
,
CardType
.
Normal
,
CardType
.
QuickPlay
,
CardType
.
Ritual
,
CardType
.
Continuous
,
CardType
.
Equip
,
CardType
.
Field
,
CardType
.
Counter
CardType
.
Continuous
,
CardType
.
Equip
,
CardType
.
Field
,
CardType
.
Counter
...
...
mobile/src/main/java/ocgcore/enums/CardType.java
View file @
c2da870b
...
@@ -17,6 +17,7 @@ public enum CardType {
...
@@ -17,6 +17,7 @@ public enum CardType {
Tuner
(
0x1000
),
Tuner
(
0x1000
),
Flip
(
0x200000
),
Flip
(
0x200000
),
Toon
(
0x400000
),
Toon
(
0x400000
),
Sp_Summon
(
0x2000000
),
QuickPlay
(
0x10000
),
QuickPlay
(
0x10000
),
Continuous
(
0x20000
),
Continuous
(
0x20000
),
...
...
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