Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
ygopro-2pick
Commits
0abc13c3
Commit
0abc13c3
authored
Mar 28, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atk/attr/race
parent
a3d46288
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
ocgcore/card.cpp
ocgcore/card.cpp
+7
-7
No files found.
ocgcore/card.cpp
View file @
0abc13c3
...
...
@@ -302,7 +302,7 @@ uint32 card::get_type() {
int32
card
::
get_base_attack
(
uint8
swap
)
{
if
(
current
.
location
!=
LOCATION_MZONE
&&
!
(
data
.
type
&
TYPE_MONSTER
)
&&
!
(
get_type
()
&
TYPE_MONSTER
))
return
0
;
if
(
current
.
location
!=
LOCATION_MZONE
&&
!
(
get_type
()
&
TYPE_MONSTER
)
)
if
(
current
.
location
!=
LOCATION_MZONE
)
return
data
.
attack
;
if
(
temp
.
base_attack
!=
-
1
)
return
temp
.
base_attack
;
...
...
@@ -330,7 +330,7 @@ int32 card::get_attack(uint8 swap) {
return
assume_value
;
if
(
current
.
location
!=
LOCATION_MZONE
&&
!
(
data
.
type
&
TYPE_MONSTER
)
&&
!
(
get_type
()
&
TYPE_MONSTER
))
return
0
;
if
(
current
.
location
!=
LOCATION_MZONE
&&
!
(
get_type
()
&
TYPE_MONSTER
)
)
if
(
current
.
location
!=
LOCATION_MZONE
)
return
data
.
attack
;
if
(
temp
.
attack
!=
-
1
)
return
temp
.
attack
;
...
...
@@ -402,7 +402,7 @@ int32 card::get_attack(uint8 swap) {
int32
card
::
get_base_defence
(
uint8
swap
)
{
if
(
current
.
location
!=
LOCATION_MZONE
&&
!
(
data
.
type
&
TYPE_MONSTER
)
&&
!
(
get_type
()
&
TYPE_MONSTER
))
return
0
;
if
(
current
.
location
!=
LOCATION_MZONE
&&
!
(
get_type
()
&
TYPE_MONSTER
)
)
if
(
current
.
location
!=
LOCATION_MZONE
)
return
data
.
defence
;
if
(
temp
.
base_defence
!=
-
1
)
return
temp
.
base_defence
;
...
...
@@ -430,7 +430,7 @@ int32 card::get_defence(uint8 swap) {
return
assume_value
;
if
(
current
.
location
!=
LOCATION_MZONE
&&
!
(
data
.
type
&
TYPE_MONSTER
)
&&
!
(
get_type
()
&
TYPE_MONSTER
))
return
0
;
if
(
current
.
location
!=
LOCATION_MZONE
&&
!
(
get_type
()
&
TYPE_MONSTER
)
)
if
(
current
.
location
!=
LOCATION_MZONE
)
return
data
.
defence
;
if
(
temp
.
defence
!=
-
1
)
return
temp
.
defence
;
...
...
@@ -505,7 +505,7 @@ uint32 card::get_level() {
return
0
;
if
(
assume_type
==
ASSUME_LEVEL
)
return
assume_value
;
if
(
!
(
current
.
location
&
(
LOCATION_MZONE
+
LOCATION_HAND
))
&&
!
(
get_type
()
&
TYPE_MONSTER
))
if
(
!
(
current
.
location
&
LOCATION_MZONE
)
&&
!
(
data
.
type
&
TYPE_MONSTER
))
return
data
.
level
;
if
(
temp
.
level
!=
0xffffffff
)
return
temp
.
level
;
...
...
@@ -634,7 +634,7 @@ uint32 card::get_attribute() {
return
assume_value
;
if
(
current
.
location
!=
LOCATION_MZONE
&&
!
(
data
.
type
&
TYPE_MONSTER
)
&&
!
(
get_type
()
&
TYPE_MONSTER
))
return
0
;
if
(
!
(
current
.
location
&
(
LOCATION_MZONE
+
LOCATION_GRAVE
))
&&
!
(
get_type
()
&
TYPE_
MONSTER
))
if
(
!
(
current
.
location
&
(
LOCATION_MZONE
))
&&
!
(
data
.
type
&
TYPE_MONSTER
)
&&
!
(
get_type
()
&
TYPE_TRAP
MONSTER
))
return
data
.
attribute
;
if
(
temp
.
attribute
!=
0xffffffff
)
return
temp
.
attribute
;
...
...
@@ -664,7 +664,7 @@ uint32 card::get_race() {
return
assume_value
;
if
(
current
.
location
!=
LOCATION_MZONE
&&
!
(
data
.
type
&
TYPE_MONSTER
)
&&
!
(
get_type
()
&
TYPE_MONSTER
))
return
0
;
if
(
!
(
current
.
location
&
(
LOCATION_MZONE
+
LOCATION_GRAVE
))
&&
!
(
get_type
()
&
TYPE_
MONSTER
))
if
(
!
(
current
.
location
&
(
LOCATION_MZONE
))
&&
!
(
data
.
type
&
TYPE_MONSTER
)
&&
!
(
get_type
()
&
TYPE_TRAP
MONSTER
))
return
data
.
race
;
if
(
temp
.
race
!=
0xffffffff
)
return
temp
.
race
;
...
...
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