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
9a627dbb
Commit
9a627dbb
authored
Oct 31, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
78b24970
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
6 deletions
+12
-6
gframe/event_handler.cpp
gframe/event_handler.cpp
+6
-4
gframe/event_handler.h
gframe/event_handler.h
+4
-0
ocgcore
ocgcore
+1
-1
script
script
+1
-1
No files found.
gframe/event_handler.cpp
View file @
9a627dbb
...
...
@@ -819,7 +819,8 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
CardString
cstr
;
CardData
cd
;
if
(
dataManager
.
GetString
(
trycode
,
&
cstr
)
&&
dataManager
.
GetData
(
trycode
,
&
cd
)
&&
(
cd
.
code
==
78734254
||
cd
.
code
==
13857930
||
!
cd
.
alias
&&
!
((
cd
.
type
&
(
TYPE_MONSTER
+
TYPE_TOKEN
))
==
(
TYPE_MONSTER
+
TYPE_TOKEN
))))
{
&&
(
cd
.
code
==
CARD_MARINE_DOLPHIN
||
cd
.
code
==
CARD_TWINKLE_MOSS
||
!
cd
.
alias
&&
!
((
cd
.
type
&
(
TYPE_MONSTER
+
TYPE_TOKEN
))
==
(
TYPE_MONSTER
+
TYPE_TOKEN
))))
{
mainGame
->
lstANCard
->
clear
();
ancard
.
clear
();
mainGame
->
lstANCard
->
addItem
(
cstr
.
name
);
...
...
@@ -834,7 +835,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
if
(
wcsstr
(
cit
->
second
.
name
,
pname
)
!=
0
)
{
auto
cp
=
dataManager
.
GetCodePointer
(
cit
->
first
);
//verified by _strings
//datas.alias can be double card names or alias
if
(
cp
->
second
.
code
==
78734254
||
cp
->
second
.
code
==
13857930
if
(
cp
->
second
.
code
==
CARD_MARINE_DOLPHIN
||
cp
->
second
.
code
==
CARD_TWINKLE_MOSS
||
!
cp
->
second
.
alias
&&
!
((
cp
->
second
.
type
&
(
TYPE_MONSTER
+
TYPE_TOKEN
))
==
(
TYPE_MONSTER
+
TYPE_TOKEN
)))
{
mainGame
->
lstANCard
->
addItem
(
cit
->
second
.
name
);
ancard
.
push_back
(
cit
->
first
);
...
...
@@ -854,7 +855,8 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
CardString
cstr
;
CardData
cd
;
if
(
dataManager
.
GetString
(
trycode
,
&
cstr
)
&&
dataManager
.
GetData
(
trycode
,
&
cd
)
&&
(
cd
.
code
==
78734254
||
cd
.
code
==
13857930
||
!
cd
.
alias
&&
!
((
cd
.
type
&
(
TYPE_MONSTER
+
TYPE_TOKEN
))
==
(
TYPE_MONSTER
+
TYPE_TOKEN
))))
{
&&
(
cd
.
code
==
CARD_MARINE_DOLPHIN
||
cd
.
code
==
CARD_TWINKLE_MOSS
||
!
cd
.
alias
&&
!
((
cd
.
type
&
(
TYPE_MONSTER
+
TYPE_TOKEN
))
==
(
TYPE_MONSTER
+
TYPE_TOKEN
))))
{
mainGame
->
lstANCard
->
clear
();
ancard
.
clear
();
mainGame
->
lstANCard
->
addItem
(
cstr
.
name
);
...
...
@@ -869,7 +871,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
if
(
wcsstr
(
cit
->
second
.
name
,
pname
)
!=
0
)
{
auto
cp
=
dataManager
.
GetCodePointer
(
cit
->
first
);
//verified by _strings
//datas.alias can be double card names or alias
if
(
cp
->
second
.
code
==
78734254
||
cp
->
second
.
code
==
13857930
if
(
cp
->
second
.
code
==
CARD_MARINE_DOLPHIN
||
cp
->
second
.
code
==
CARD_TWINKLE_MOSS
||
!
cp
->
second
.
alias
&&
!
((
cp
->
second
.
type
&
(
TYPE_MONSTER
+
TYPE_TOKEN
))
==
(
TYPE_MONSTER
+
TYPE_TOKEN
)))
{
mainGame
->
lstANCard
->
addItem
(
cit
->
second
.
name
);
ancard
.
push_back
(
cit
->
first
);
...
...
gframe/event_handler.h
View file @
9a627dbb
#ifndef EVENT_HANDLER_H
#define EVENT_HANDLER_H
//special cards
#define CARD_MARINE_DOLPHIN 78734254
#define CARD_TWINKLE_MOSS 13857930
#include "config.h"
#include "game.h"
#include "client_card.h"
...
...
ocgcore
@
fadb2195
Subproject commit
99e817b3d4a38900f855028aac792fcf0e3a2861
Subproject commit
fadb21951107f562766e91d5711222d73f2b71d7
script
@
283c0302
Subproject commit
b1e1b6ad7d608814e4fb83cd9335455adf22fa45
Subproject commit
283c0302fa9aa20e70c38db3fcdefcb13e6618f8
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