Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
YGOPRO-520DIY
ygopro
Commits
986b1e9b
Commit
986b1e9b
authored
Mar 06, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atk/attr/race
parent
55a5ac91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
ocgcore/card.cpp
ocgcore/card.cpp
+9
-9
No files found.
ocgcore/card.cpp
View file @
986b1e9b
...
...
@@ -300,9 +300,9 @@ uint32 card::get_type() {
return
type
;
}
int32
card
::
get_base_attack
(
uint8
swap
)
{
if
(
current
.
location
!=
LOCATION_MZONE
&&
!
(
data
.
type
&
TYPE_MONSTER
))
if
(
current
.
location
!=
LOCATION_MZONE
&&
!
(
data
.
type
&
TYPE_MONSTER
)
&&
!
(
get_type
()
&
TYPE_MONSTER
)
)
return
0
;
if
(
current
.
location
!=
LOCATION_MZONE
)
if
(
current
.
location
!=
LOCATION_MZONE
&&
!
(
get_type
()
&
TYPE_MONSTER
)
)
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
)
if
(
current
.
location
!=
LOCATION_MZONE
&&
!
(
get_type
()
&
TYPE_MONSTER
)
)
return
data
.
attack
;
if
(
temp
.
attack
!=
-
1
)
return
temp
.
attack
;
...
...
@@ -400,9 +400,9 @@ int32 card::get_attack(uint8 swap) {
return
atk
;
}
int32
card
::
get_base_defence
(
uint8
swap
)
{
if
(
current
.
location
!=
LOCATION_MZONE
&&
!
(
data
.
type
&
TYPE_MONSTER
))
if
(
current
.
location
!=
LOCATION_MZONE
&&
!
(
data
.
type
&
TYPE_MONSTER
)
&&
!
(
get_type
()
&
TYPE_MONSTER
)
)
return
0
;
if
(
current
.
location
!=
LOCATION_MZONE
)
if
(
current
.
location
!=
LOCATION_MZONE
&&
!
(
get_type
()
&
TYPE_MONSTER
)
)
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
)
if
(
current
.
location
!=
LOCATION_MZONE
&&
!
(
get_type
()
&
TYPE_MONSTER
)
)
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
)))
if
(
!
(
current
.
location
&
(
LOCATION_MZONE
+
LOCATION_HAND
))
&&
!
(
get_type
()
&
TYPE_MONSTER
)
)
return
data
.
level
;
if
(
temp
.
level
!=
0xffffffff
)
return
temp
.
level
;
...
...
@@ -639,7 +639,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
)))
if
(
!
(
current
.
location
&
(
LOCATION_MZONE
+
LOCATION_GRAVE
))
&&
!
(
get_type
()
&
TYPE_MONSTER
)
)
return
data
.
attribute
;
if
(
temp
.
attribute
!=
0xffffffff
)
return
temp
.
attribute
;
...
...
@@ -677,7 +677,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
)))
if
(
!
(
current
.
location
&
(
LOCATION_MZONE
+
LOCATION_GRAVE
))
&&
!
(
get_type
()
&
TYPE_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