Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
windbot
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
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
MyCard
windbot
Commits
84fa5b10
Commit
84fa5b10
authored
Sep 09, 2018
by
wind2009
Committed by
mercury233
Sep 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ClientCard.HasSetCode (#99)
parent
b7ed7c75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
Game/ClientCard.cs
Game/ClientCard.cs
+15
-0
No files found.
Game/ClientCard.cs
View file @
84fa5b10
...
...
@@ -247,6 +247,21 @@ namespace WindBot.Game
return
(
Attribute
&
(
int
)
attribute
)
!=
0
;
}
public
bool
HasSetcode
(
int
setcode
)
{
if
(
Data
==
null
)
return
false
;
long
setcodes
=
Data
.
Setcode
;
int
settype
=
setcode
&
0xfff
;
int
setsubtype
=
setcode
&
0xf000
;
while
(
setcodes
>
0
)
{
long
check_setcode
=
setcodes
&
0xffff
;
setcodes
>>=
16
;
if
((
check_setcode
&
0xfff
)
==
settype
&&
(
check_setcode
&
0xf000
&
setsubtype
)
==
setsubtype
)
return
true
;
}
return
false
;
}
public
bool
IsMonster
()
{
return
HasType
(
CardType
.
Monster
);
...
...
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