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
nanahira
ygopro
Commits
14444f12
Commit
14444f12
authored
May 31, 2016
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
defence->defense
parent
0f849425
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
36 additions
and
36 deletions
+36
-36
gframe/client_card.cpp
gframe/client_card.cpp
+12
-12
gframe/client_card.h
gframe/client_card.h
+4
-4
gframe/data_manager.cpp
gframe/data_manager.cpp
+1
-1
gframe/deck_con.cpp
gframe/deck_con.cpp
+3
-3
gframe/drawing.cpp
gframe/drawing.cpp
+6
-6
gframe/duelclient.cpp
gframe/duelclient.cpp
+4
-4
gframe/game.cpp
gframe/game.cpp
+4
-4
ocgcore
ocgcore
+1
-1
script
script
+1
-1
No files found.
gframe/client_card.cpp
View file @
14444f12
...
...
@@ -31,9 +31,9 @@ ClientCard::ClientCard() {
race
=
0
;
attribute
=
0
;
attack
=
0
;
defen
c
e
=
0
;
defen
s
e
=
0
;
base_attack
=
0
;
base_defen
c
e
=
0
;
base_defen
s
e
=
0
;
lscale
=
0
;
rscale
=
0
;
cHint
=
0
;
...
...
@@ -101,17 +101,17 @@ void ClientCard::UpdateInfo(char* buf) {
myswprintf
(
atkstring
,
L"%d"
,
attack
);
}
if
(
flag
&
QUERY_DEFENCE
)
{
defen
c
e
=
BufferIO
::
ReadInt32
(
buf
);
if
(
defen
c
e
<
0
)
{
defen
s
e
=
BufferIO
::
ReadInt32
(
buf
);
if
(
defen
s
e
<
0
)
{
defstring
[
0
]
=
'?'
;
defstring
[
1
]
=
0
;
}
else
myswprintf
(
defstring
,
L"%d"
,
defen
c
e
);
myswprintf
(
defstring
,
L"%d"
,
defen
s
e
);
}
if
(
flag
&
QUERY_BASE_ATTACK
)
base_attack
=
BufferIO
::
ReadInt32
(
buf
);
if
(
flag
&
QUERY_BASE_DEFENCE
)
base_defen
c
e
=
BufferIO
::
ReadInt32
(
buf
);
base_defen
s
e
=
BufferIO
::
ReadInt32
(
buf
);
if
(
flag
&
QUERY_REASON
)
reason
=
BufferIO
::
ReadInt32
(
buf
);
if
(
flag
&
QUERY_EQUIP_CARD
)
{
...
...
@@ -214,8 +214,8 @@ bool ClientCard::deck_sort_lv(code_pointer p1, code_pointer p2) {
return
p1
->
second
.
level
>
p2
->
second
.
level
;
if
(
p1
->
second
.
attack
!=
p2
->
second
.
attack
)
return
p1
->
second
.
attack
>
p2
->
second
.
attack
;
if
(
p1
->
second
.
defen
ce
!=
p2
->
second
.
defenc
e
)
return
p1
->
second
.
defen
ce
>
p2
->
second
.
defenc
e
;
if
(
p1
->
second
.
defen
se
!=
p2
->
second
.
defens
e
)
return
p1
->
second
.
defen
se
>
p2
->
second
.
defens
e
;
return
p1
->
first
<
p2
->
first
;
}
if
((
p1
->
second
.
type
&
0xfffffff8
)
!=
(
p2
->
second
.
type
&
0xfffffff8
))
...
...
@@ -228,8 +228,8 @@ bool ClientCard::deck_sort_atk(code_pointer p1, code_pointer p2) {
if
((
p1
->
second
.
type
&
0x7
)
==
1
)
{
if
(
p1
->
second
.
attack
!=
p2
->
second
.
attack
)
return
p1
->
second
.
attack
>
p2
->
second
.
attack
;
if
(
p1
->
second
.
defen
ce
!=
p2
->
second
.
defenc
e
)
return
p1
->
second
.
defen
ce
>
p2
->
second
.
defenc
e
;
if
(
p1
->
second
.
defen
se
!=
p2
->
second
.
defens
e
)
return
p1
->
second
.
defen
se
>
p2
->
second
.
defens
e
;
if
(
p1
->
second
.
level
!=
p2
->
second
.
level
)
return
p1
->
second
.
level
>
p2
->
second
.
level
;
int
type1
=
(
p1
->
second
.
type
&
0x8020c0
)
?
(
p1
->
second
.
type
&
0x8020c1
)
:
(
p1
->
second
.
type
&
0x31
);
...
...
@@ -246,8 +246,8 @@ bool ClientCard::deck_sort_def(code_pointer p1, code_pointer p2) {
if
((
p1
->
second
.
type
&
0x7
)
!=
(
p2
->
second
.
type
&
0x7
))
return
(
p1
->
second
.
type
&
0x7
)
<
(
p2
->
second
.
type
&
0x7
);
if
((
p1
->
second
.
type
&
0x7
)
==
1
)
{
if
(
p1
->
second
.
defen
ce
!=
p2
->
second
.
defenc
e
)
return
p1
->
second
.
defen
ce
>
p2
->
second
.
defenc
e
;
if
(
p1
->
second
.
defen
se
!=
p2
->
second
.
defens
e
)
return
p1
->
second
.
defen
se
>
p2
->
second
.
defens
e
;
if
(
p1
->
second
.
attack
!=
p2
->
second
.
attack
)
return
p1
->
second
.
attack
>
p2
->
second
.
attack
;
if
(
p1
->
second
.
level
!=
p2
->
second
.
level
)
...
...
gframe/client_card.h
View file @
14444f12
...
...
@@ -17,7 +17,7 @@ struct CardData {
unsigned
int
attribute
;
unsigned
int
race
;
int
attack
;
int
defen
c
e
;
int
defen
s
e
;
unsigned
int
lscale
;
unsigned
int
rscale
;
};
...
...
@@ -30,7 +30,7 @@ struct CardDataC {
unsigned
int
attribute
;
unsigned
int
race
;
int
attack
;
int
defen
c
e
;
int
defen
s
e
;
unsigned
int
lscale
;
unsigned
int
rscale
;
unsigned
int
ot
;
...
...
@@ -73,9 +73,9 @@ public:
u32
attribute
;
u32
race
;
s32
attack
;
s32
defen
c
e
;
s32
defen
s
e
;
s32
base_attack
;
s32
base_defen
c
e
;
s32
base_defen
s
e
;
u32
lscale
;
u32
rscale
;
u32
reason
;
...
...
gframe/data_manager.cpp
View file @
14444f12
...
...
@@ -30,7 +30,7 @@ bool DataManager::LoadDB(const char* file) {
cd
.
setcode
=
sqlite3_column_int64
(
pStmt
,
3
);
cd
.
type
=
sqlite3_column_int
(
pStmt
,
4
);
cd
.
attack
=
sqlite3_column_int
(
pStmt
,
5
);
cd
.
defen
c
e
=
sqlite3_column_int
(
pStmt
,
6
);
cd
.
defen
s
e
=
sqlite3_column_int
(
pStmt
,
6
);
unsigned
int
level
=
sqlite3_column_int
(
pStmt
,
7
);
cd
.
level
=
level
&
0xff
;
cd
.
lscale
=
(
level
>>
24
)
&
0xff
;
...
...
gframe/deck_con.cpp
View file @
14444f12
...
...
@@ -699,9 +699,9 @@ void DeckBuilder::FilterCards() {
continue
;
}
if
(
filter_deftype
)
{
if
((
filter_deftype
==
1
&&
data
.
defen
ce
!=
filter_def
)
||
(
filter_deftype
==
2
&&
data
.
defenc
e
<
filter_def
)
||
(
filter_deftype
==
3
&&
data
.
defen
ce
<=
filter_def
)
||
(
filter_deftype
==
4
&&
(
data
.
defence
>
filter_def
||
data
.
defenc
e
<
0
))
||
(
filter_deftype
==
5
&&
(
data
.
defen
ce
>=
filter_def
||
data
.
defence
<
0
))
||
(
filter_deftype
==
6
&&
data
.
defenc
e
!=
-
2
))
if
((
filter_deftype
==
1
&&
data
.
defen
se
!=
filter_def
)
||
(
filter_deftype
==
2
&&
data
.
defens
e
<
filter_def
)
||
(
filter_deftype
==
3
&&
data
.
defen
se
<=
filter_def
)
||
(
filter_deftype
==
4
&&
(
data
.
defense
>
filter_def
||
data
.
defens
e
<
0
))
||
(
filter_deftype
==
5
&&
(
data
.
defen
se
>=
filter_def
||
data
.
defense
<
0
))
||
(
filter_deftype
==
6
&&
data
.
defens
e
!=
-
2
))
continue
;
}
if
(
filter_lvtype
)
{
...
...
gframe/drawing.cpp
View file @
14444f12
...
...
@@ -415,7 +415,7 @@ void Game::DrawMisc() {
w
=
adFont
->
getDimension
(
pcard
->
defstring
).
Width
;
adFont
->
draw
(
pcard
->
defstring
,
recti
(
m
+
4
,
416
,
m
+
4
+
w
,
436
),
0xff000000
,
false
,
false
,
0
);
adFont
->
draw
(
pcard
->
defstring
,
recti
(
m
+
5
,
417
,
m
+
5
+
w
,
437
),
pcard
->
defen
ce
>
pcard
->
base_defence
?
0xffffff00
:
pcard
->
defence
<
pcard
->
base_defenc
e
?
0xffff2090
:
0xffffffff
,
false
,
false
,
0
);
pcard
->
defen
se
>
pcard
->
base_defense
?
0xffffff00
:
pcard
->
defense
<
pcard
->
base_defens
e
?
0xffff2090
:
0xffffffff
,
false
,
false
,
0
);
adFont
->
draw
(
pcard
->
lvstring
,
recti
(
473
+
i
*
80
,
356
,
475
+
i
*
80
,
366
),
0xff000000
,
false
,
false
,
0
);
adFont
->
draw
(
pcard
->
lvstring
,
recti
(
474
+
i
*
80
,
357
,
476
+
i
*
80
,
367
),
(
pcard
->
type
&
TYPE_XYZ
)
?
0xffff80ff
:
(
pcard
->
type
&
TYPE_TUNER
)
?
0xffffff00
:
0xffffffff
,
false
,
false
,
0
);
...
...
@@ -434,7 +434,7 @@ void Game::DrawMisc() {
w
=
adFont
->
getDimension
(
pcard
->
defstring
).
Width
;
adFont
->
draw
(
pcard
->
defstring
,
recti
(
m
+
4
,
235
,
m
+
4
+
w
,
255
),
0xff000000
,
false
,
false
,
0
);
adFont
->
draw
(
pcard
->
defstring
,
recti
(
m
+
5
,
236
,
m
+
5
+
w
,
256
),
pcard
->
defen
ce
>
pcard
->
base_defence
?
0xffffff00
:
pcard
->
defence
<
pcard
->
base_defenc
e
?
0xffff2090
:
0xffffffff
,
false
,
false
,
0
);
pcard
->
defen
se
>
pcard
->
base_defense
?
0xffffff00
:
pcard
->
defense
<
pcard
->
base_defens
e
?
0xffff2090
:
0xffffffff
,
false
,
false
,
0
);
adFont
->
draw
(
pcard
->
lvstring
,
recti
(
779
-
i
*
71
,
272
,
800
-
i
*
71
,
292
),
0xff000000
,
false
,
false
,
0
);
adFont
->
draw
(
pcard
->
lvstring
,
recti
(
780
-
i
*
71
,
273
,
800
-
i
*
71
,
293
),
(
pcard
->
type
&
TYPE_XYZ
)
?
0xffff80ff
:
(
pcard
->
type
&
TYPE_TUNER
)
?
0xffffff00
:
0xffffffff
,
false
,
false
,
0
);
...
...
@@ -967,13 +967,13 @@ void Game::DrawDeckBd() {
myswprintf
(
textBuffer
,
L"%ls/%ls %c%d"
,
dataManager
.
FormatAttribute
(
ptr
->
second
.
attribute
),
dataManager
.
FormatRace
(
ptr
->
second
.
race
),
form
,
ptr
->
second
.
level
);
textFont
->
draw
(
textBuffer
,
recti
(
859
,
186
+
i
*
66
,
955
,
207
+
i
*
66
),
0xff000000
,
false
,
false
);
textFont
->
draw
(
textBuffer
,
recti
(
860
,
187
+
i
*
66
,
955
,
207
+
i
*
66
),
0xffffffff
,
false
,
false
);
if
(
ptr
->
second
.
attack
<
0
&&
ptr
->
second
.
defen
c
e
<
0
)
if
(
ptr
->
second
.
attack
<
0
&&
ptr
->
second
.
defen
s
e
<
0
)
myswprintf
(
textBuffer
,
L"?/?"
);
else
if
(
ptr
->
second
.
attack
<
0
)
myswprintf
(
textBuffer
,
L"?/%d"
,
ptr
->
second
.
defen
c
e
);
else
if
(
ptr
->
second
.
defen
c
e
<
0
)
myswprintf
(
textBuffer
,
L"?/%d"
,
ptr
->
second
.
defen
s
e
);
else
if
(
ptr
->
second
.
defen
s
e
<
0
)
myswprintf
(
textBuffer
,
L"%d/?"
,
ptr
->
second
.
attack
);
else
myswprintf
(
textBuffer
,
L"%d/%d"
,
ptr
->
second
.
attack
,
ptr
->
second
.
defen
c
e
);
else
myswprintf
(
textBuffer
,
L"%d/%d"
,
ptr
->
second
.
attack
,
ptr
->
second
.
defen
s
e
);
if
(
ptr
->
second
.
type
&
TYPE_PENDULUM
)
{
wchar_t
scaleBuffer
[
16
];
myswprintf
(
scaleBuffer
,
L" %d/%d"
,
ptr
->
second
.
lscale
,
ptr
->
second
.
rscale
);
...
...
gframe/duelclient.cpp
View file @
14444f12
...
...
@@ -2754,8 +2754,8 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
pcard
->
attack
=
aatk
;
myswprintf
(
pcard
->
atkstring
,
L"%d"
,
aatk
);
}
if
(
adef
!=
pcard
->
defen
c
e
)
{
pcard
->
defen
c
e
=
adef
;
if
(
adef
!=
pcard
->
defen
s
e
)
{
pcard
->
defen
s
e
=
adef
;
myswprintf
(
pcard
->
defstring
,
L"%d"
,
adef
);
}
if
(
ld
)
{
...
...
@@ -2764,8 +2764,8 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
pcard
->
attack
=
datk
;
myswprintf
(
pcard
->
atkstring
,
L"%d"
,
datk
);
}
if
(
ddef
!=
pcard
->
defen
c
e
)
{
pcard
->
defen
c
e
=
ddef
;
if
(
ddef
!=
pcard
->
defen
s
e
)
{
pcard
->
defen
s
e
=
ddef
;
myswprintf
(
pcard
->
defstring
,
L"%d"
,
ddef
);
}
}
...
...
gframe/game.cpp
View file @
14444f12
...
...
@@ -986,14 +986,14 @@ void Game::ShowCardInfo(int code) {
if
(
cd
.
type
&
TYPE_XYZ
)
++
form
;
myswprintf
(
formatBuffer
,
L"[%c%d] "
,
form
,
cd
.
level
);
wchar_t
adBuffer
[
16
];
if
(
cd
.
attack
<
0
&&
cd
.
defen
c
e
<
0
)
if
(
cd
.
attack
<
0
&&
cd
.
defen
s
e
<
0
)
myswprintf
(
adBuffer
,
L"?/?"
);
else
if
(
cd
.
attack
<
0
)
myswprintf
(
adBuffer
,
L"?/%d"
,
cd
.
defen
c
e
);
else
if
(
cd
.
defen
c
e
<
0
)
myswprintf
(
adBuffer
,
L"?/%d"
,
cd
.
defen
s
e
);
else
if
(
cd
.
defen
s
e
<
0
)
myswprintf
(
adBuffer
,
L"%d/?"
,
cd
.
attack
);
else
myswprintf
(
adBuffer
,
L"%d/%d"
,
cd
.
attack
,
cd
.
defen
c
e
);
myswprintf
(
adBuffer
,
L"%d/%d"
,
cd
.
attack
,
cd
.
defen
s
e
);
wcscat
(
formatBuffer
,
adBuffer
);
if
(
cd
.
type
&
TYPE_PENDULUM
)
{
wchar_t
scaleBuffer
[
16
];
...
...
ocgcore
@
8a34f836
Subproject commit
7059fdaede394163a2f718ce6a50bafb151fe5f4
Subproject commit
8a34f83647a4f32667e7a35a00109d0c1aaeea68
script
@
2f8b6d0b
Subproject commit
9f3a2f3659f31bcb50c188a2e92107980531af75
Subproject commit
2f8b6d0b0779b0cc3499e65ee347b6c5a1e4812b
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