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
e6139ec7
Commit
e6139ec7
authored
Sep 05, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atk/def
parent
3935b2d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ocgcore/card.cpp
ocgcore/card.cpp
+4
-4
No files found.
ocgcore/card.cpp
View file @
e6139ec7
...
...
@@ -369,7 +369,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
)
if
(
current
.
location
!=
LOCATION_MZONE
||
status
&
STATUS_SUMMONING
)
return
data
.
attack
;
if
(
temp
.
base_attack
!=
-
1
)
return
temp
.
base_attack
;
...
...
@@ -397,7 +397,7 @@ int32 card::get_attack() {
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
||
status
&
STATUS_SUMMONING
)
return
data
.
attack
;
if
(
temp
.
attack
!=
-
1
)
return
temp
.
attack
;
...
...
@@ -408,7 +408,7 @@ int32 card::get_attack() {
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
)
if
(
current
.
location
!=
LOCATION_MZONE
||
status
&
STATUS_SUMMONING
)
return
data
.
defence
;
if
(
temp
.
base_defence
!=
-
1
)
return
temp
.
base_defence
;
...
...
@@ -436,7 +436,7 @@ int32 card::get_defence() {
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
||
status
&
STATUS_SUMMONING
)
return
data
.
defence
;
if
(
temp
.
defence
!=
-
1
)
return
temp
.
defence
;
...
...
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