Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
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
fallenstardust
YGOMobile
Commits
8134065f
Commit
8134065f
authored
May 19, 2018
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UPDATE
parent
b19ee26a
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
51 additions
and
17 deletions
+51
-17
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+1
-1
Classes/ocgcore/card.cpp
Classes/ocgcore/card.cpp
+30
-3
Classes/ocgcore/card.h
Classes/ocgcore/card.h
+1
-0
Classes/ocgcore/operations.cpp
Classes/ocgcore/operations.cpp
+2
-2
Classes/ocgcore/playerop.cpp
Classes/ocgcore/playerop.cpp
+12
-8
Classes/ocgcore/processor.cpp
Classes/ocgcore/processor.cpp
+2
-1
mobile/assets/changelog.html
mobile/assets/changelog.html
+1
-1
mobile/assets/data/conf/strings.conf
mobile/assets/data/conf/strings.conf
+1
-0
mobile/build.gradle
mobile/build.gradle
+1
-1
No files found.
Classes/gframe/game.cpp
View file @
8134065f
...
...
@@ -1612,7 +1612,7 @@ void Game::LoadConfig() {
gameConf
.
chkIgnoreDeckChanges
=
android
::
getIntSetting
(
appMain
,
"chkIgnoreDeckChanges"
,
0
);
gameConf
.
defaultOT
=
android
::
getIntSetting
(
appMain
,
"defaultOT"
,
1
);
//TEST BOT MODE
gameConf
.
enable_bot_mode
=
0
;
gameConf
.
enable_bot_mode
=
1
;
}
void
Game
::
SaveConfig
()
{
...
...
Classes/ocgcore/card.cpp
View file @
8134065f
...
...
@@ -1384,6 +1384,12 @@ int32 card::is_extra_link_state() {
card
*
pcard2
=
pduel
->
game_field
->
player
[
p
].
list_mzone
[
6
];
if
(
pcard2
)
excset
.
insert
(
pcard2
);
card
*
pcard3
=
pduel
->
game_field
->
player
[
1
-
p
].
list_mzone
[
5
];
if
(
pcard3
)
excset
.
insert
(
pcard3
);
card
*
pcard4
=
pduel
->
game_field
->
player
[
1
-
p
].
list_mzone
[
6
];
if
(
pcard4
)
excset
.
insert
(
pcard4
);
}
if
(
excset
.
size
()
<
2
)
return
FALSE
;
...
...
@@ -1402,16 +1408,37 @@ int32 card::check_extra_link(card_set* cset, card_set* excset, card_set* linked_
card
*
pcard
=
*
cit
;
if
(
cset
->
find
(
pcard
)
!=
cset
->
end
())
continue
;
if
(
excset
->
find
(
pcard
)
!=
cset
->
end
())
if
(
cset
->
find
(
this
)
!=
cset
->
end
())
if
(
excset
->
find
(
pcard
)
!=
excset
->
end
())
{
card_set
omitted
;
if
(
check_extra_link_finish
(
cset
,
&
omitted
))
return
TRUE
;
}
card_set
linked_group2
;
pcard
->
get_mutual_linked_cards
(
&
linked_group2
);
if
(
!
linked_group2
.
size
())
continue
;
cset
->
insert
(
pcard
);
int32
result
=
check_extra_link
(
cset
,
excset
,
&
linked_group2
);
cset
->
erase
(
pcard
);
cset
->
erase
(
pcard
);
if
(
result
)
return
TRUE
;
}
return
FALSE
;
}
int32
card
::
check_extra_link_finish
(
card_set
*
cset
,
card_set
*
omitted
)
{
if
(
cset
->
find
(
this
)
!=
cset
->
end
())
return
TRUE
;
for
(
auto
cit
=
cset
->
begin
();
cit
!=
cset
->
end
();
++
cit
)
{
card
*
pcard
=
*
cit
;
if
(
omitted
->
find
(
pcard
)
!=
omitted
->
end
())
continue
;
card_set
linked_group3
;
pcard
->
get_mutual_linked_cards
(
&
linked_group3
);
if
(
!
linked_group3
.
size
())
continue
;
omitted
->
insert
(
pcard
);
int32
result
=
check_extra_link_finish
(
&
linked_group3
,
omitted
);
omitted
->
erase
(
pcard
);
if
(
result
)
return
TRUE
;
}
...
...
Classes/ocgcore/card.h
View file @
8134065f
...
...
@@ -229,6 +229,7 @@ public:
int32
is_link_state
();
int32
is_extra_link_state
();
int32
check_extra_link
(
card_set
*
cset
,
card_set
*
excset
,
card_set
*
linked_group1
);
int32
check_extra_link_finish
(
card_set
*
cset
,
card_set
*
omitted
);
int32
is_position
(
int32
pos
);
void
set_status
(
uint32
status
,
int32
enabled
);
int32
get_status
(
uint32
status
);
...
...
Classes/ocgcore/operations.cpp
View file @
8134065f
...
...
@@ -2911,10 +2911,10 @@ int32 field::special_summon_step(uint16 step, group* targets, card* target, uint
}
if
(
target
->
current
.
location
!=
LOCATION_EXTRA
)
{
if
(
ct2
==
0
)
zone
=
flag2
;
zone
&
=
flag2
;
}
else
{
if
(
ct1
==
0
)
zone
=
flag1
;
zone
&
=
flag1
;
}
}
move_to_field
(
target
,
move_player
,
playerid
,
LOCATION_MZONE
,
positions
,
FALSE
,
0
,
FALSE
,
zone
);
...
...
Classes/ocgcore/playerop.cpp
View file @
8134065f
...
...
@@ -1010,23 +1010,27 @@ int32 field::announce_card(int16 step, uint8 playerid, uint32 ttype) {
return
FALSE
;
}
else
{
int32
code
=
returns
.
ivalue
[
0
];
bool
retry
=
false
;
card_data
data
;
read_card
(
code
,
&
data
);
if
(
!
data
.
code
)
{
pduel
->
write_buffer8
(
MSG_RETRY
);
return
FALSE
;
}
if
(
core
.
select_options
.
size
()
==
0
)
{
retry
=
true
;
}
else
if
(
core
.
select_options
.
size
()
==
0
)
{
if
(
!
(
data
.
type
&
ttype
))
{
pduel
->
write_buffer8
(
MSG_RETRY
);
return
FALSE
;
retry
=
true
;
}
}
else
{
if
(
!
is_declarable
(
data
,
core
.
select_options
))
{
pduel
->
write_buffer8
(
MSG_RETRY
);
return
FALSE
;
retry
=
true
;
}
}
if
(
retry
)
{
pduel
->
write_buffer8
(
MSG_HINT
);
pduel
->
write_buffer8
(
HINT_MESSAGE
);
pduel
->
write_buffer8
(
playerid
);
pduel
->
write_buffer32
(
1421
);
return
announce_card
(
0
,
playerid
,
ttype
);
}
pduel
->
write_buffer8
(
MSG_HINT
);
pduel
->
write_buffer8
(
HINT_CODE
);
pduel
->
write_buffer8
(
playerid
);
...
...
Classes/ocgcore/processor.cpp
View file @
8134065f
...
...
@@ -601,7 +601,8 @@ int32 field::process() {
pduel
->
lua
->
add_param
(
returns
.
ivalue
[
0
],
PARAM_TYPE_INT
);
core
.
units
.
pop_front
();
}
else
{
it
->
step
++
;
if
(
it
->
step
==
0
)
it
->
step
++
;
}
return
PROCESSOR_WAITING
+
pduel
->
bufferlen
;
}
...
...
mobile/assets/changelog.html
View file @
8134065f
...
...
@@ -24,7 +24,7 @@
2.TCG2018.5.21禁卡表
3.新卡:CP18;
新增:
1.
WINDBOT本地人机
1.
萌卡聊天室
</pre>
<ul>
...
...
mobile/assets/data/conf/strings.conf
View file @
8134065f
...
...
@@ -412,6 +412,7 @@
!
system
1418
额外卡组数量应不超过
15
张,当前卡组数量为%
d
张。
!
system
1419
副卡组数量应不超过
15
张,当前卡组数量为%
d
张。
!
system
1420
有额外卡组卡片存在于主卡组,可能是额外卡组数量超过
15
张。
!
system
1421
宣言的卡不符合条件,不存在于本主机卡池中。
!
system
1500
决斗结束。
!
system
1501
录像结束。
!
system
1502
连接已断开。
...
...
mobile/build.gradle
View file @
8134065f
...
...
@@ -8,7 +8,7 @@ android {
applicationId
"cn.garymb.ygomobile.test"
minSdkVersion
16
targetSdkVersion
22
versionCode
3201051
7
versionCode
3201051
8
versionName
"3.2.1"
flavorDimensions
"versionCode"
vectorDrawables
.
useSupportLibrary
=
true
...
...
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