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
d3f290c6
Commit
d3f290c6
authored
Jun 01, 2018
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
洗切盖卡
parent
9b6da034
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
8 deletions
+37
-8
Classes/gframe/replay_mode.cpp
Classes/gframe/replay_mode.cpp
+1
-0
Classes/gframe/single_duel.cpp
Classes/gframe/single_duel.cpp
+9
-2
Classes/gframe/single_mode.cpp
Classes/gframe/single_mode.cpp
+9
-1
Classes/gframe/tag_duel.cpp
Classes/gframe/tag_duel.cpp
+8
-2
Classes/ocgcore/libduel.cpp
Classes/ocgcore/libduel.cpp
+9
-2
mobile/src/main/res/values-ko/strings.xml
mobile/src/main/res/values-ko/strings.xml
+1
-1
No files found.
Classes/gframe/replay_mode.cpp
View file @
d3f290c6
...
...
@@ -501,6 +501,7 @@ bool ReplayMode::ReplayAnalyze(char* msg, unsigned int len) {
break
;
}
case
MSG_SHUFFLE_SET_CARD
:
{
pbuf
++
;
count
=
BufferIO
::
ReadInt8
(
pbuf
);
pbuf
+=
count
*
8
;
DuelClient
::
ClientAnalyze
(
offset
,
pbuf
-
offset
);
...
...
Classes/gframe/single_duel.cpp
View file @
d3f290c6
...
...
@@ -876,14 +876,21 @@ int SingleDuel::Analyze(char* msgbuffer, unsigned int len) {
break
;
}
case
MSG_SHUFFLE_SET_CARD
:
{
int
loc
=
BufferIO
::
ReadInt8
(
pbuf
);
count
=
BufferIO
::
ReadInt8
(
pbuf
);
pbuf
+=
count
*
8
;
NetServer
::
SendBufferToPlayer
(
players
[
0
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
NetServer
::
ReSendToPlayer
(
players
[
1
]);
for
(
auto
oit
=
observers
.
begin
();
oit
!=
observers
.
end
();
++
oit
)
NetServer
::
ReSendToPlayer
(
*
oit
);
RefreshMzone
(
0
,
0x181fff
,
0
);
RefreshMzone
(
1
,
0x181fff
,
0
);
if
(
loc
==
LOCATION_MZONE
)
{
RefreshMzone
(
0
,
0x181fff
,
0
);
RefreshMzone
(
1
,
0x181fff
,
0
);
}
else
{
RefreshSzone
(
0
,
0x181fff
,
0
);
RefreshSzone
(
1
,
0x181fff
,
0
);
}
break
;
}
case
MSG_NEW_TURN
:
{
...
...
Classes/gframe/single_mode.cpp
View file @
d3f290c6
...
...
@@ -56,12 +56,19 @@ int SingleMode::SinglePlayThread(void* param) {
mainGame
->
dInfo
.
turn
=
0
;
char
filename
[
256
];
size_t
slen
=
0
;
if
(
open_file
)
{
open_file
=
false
;
slen
=
BufferIO
::
EncodeUTF8
(
open_file_name
,
filename
);
if
(
!
preload_script
(
pduel
,
filename
,
slen
))
{
wchar_t
fname
[
256
];
myswprintf
(
fname
,
L"./single/%ls"
);
myswprintf
(
fname
,
L"./single/%ls"
,
open_file_name
);
slen
=
BufferIO
::
EncodeUTF8
(
fname
,
filename
);
if
(
!
preload_script
(
pduel
,
filename
,
slen
))
slen
=
0
;
}
}
else
{
const
wchar_t
*
name
=
mainGame
->
lstSinglePlayList
->
getListItem
(
mainGame
->
lstSinglePlayList
->
getSelected
());
wchar_t
fname
[
256
];
myswprintf
(
fname
,
L"./single/%ls"
,
name
);
slen
=
BufferIO
::
EncodeUTF8
(
fname
,
filename
);
if
(
!
preload_script
(
pduel
,
filename
,
slen
))
...
...
@@ -411,6 +418,7 @@ bool SingleMode::SinglePlayAnalyze(char* msg, unsigned int len) {
break
;
}
case
MSG_SHUFFLE_SET_CARD
:
{
pbuf
++
;
count
=
BufferIO
::
ReadInt8
(
pbuf
);
pbuf
+=
count
*
8
;
DuelClient
::
ClientAnalyze
(
offset
,
pbuf
-
offset
);
...
...
Classes/gframe/tag_duel.cpp
View file @
d3f290c6
...
...
@@ -834,6 +834,7 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) {
break
;
}
case
MSG_SHUFFLE_SET_CARD
:
{
int
loc
=
BufferIO
::
ReadInt8
(
pbuf
);
count
=
BufferIO
::
ReadInt8
(
pbuf
);
pbuf
+=
count
*
8
;
NetServer
::
SendBufferToPlayer
(
players
[
0
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
...
...
@@ -842,8 +843,13 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) {
NetServer
::
ReSendToPlayer
(
players
[
3
]);
for
(
auto
oit
=
observers
.
begin
();
oit
!=
observers
.
end
();
++
oit
)
NetServer
::
ReSendToPlayer
(
*
oit
);
RefreshMzone
(
0
,
0x181fff
,
0
);
RefreshMzone
(
1
,
0x181fff
,
0
);
if
(
loc
==
LOCATION_MZONE
)
{
RefreshMzone
(
0
,
0x181fff
,
0
);
RefreshMzone
(
1
,
0x181fff
,
0
);
}
else
{
RefreshSzone
(
0
,
0x181fff
,
0
);
RefreshSzone
(
1
,
0x181fff
,
0
);
}
break
;
}
case
MSG_NEW_TURN
:
{
...
...
Classes/ocgcore/libduel.cpp
View file @
d3f290c6
...
...
@@ -1353,12 +1353,15 @@ int32 scriptlib::duel_shuffle_setcard(lua_State *L) {
card
*
ms
[
7
];
uint8
seq
[
7
];
uint8
tp
=
2
;
uint8
loc
=
0
;
uint8
ct
=
0
;
for
(
auto
cit
=
pgroup
->
container
.
begin
();
cit
!=
pgroup
->
container
.
end
();
++
cit
)
{
card
*
pcard
=
*
cit
;
if
(
pcard
->
current
.
location
!=
LOCATION_MZONE
||
(
pcard
->
current
.
position
&
POS_FACEUP
)
||
(
tp
!=
2
&&
(
pcard
->
current
.
controler
!=
tp
)))
if
((
loc
!=
0
&&
(
pcard
->
current
.
location
!=
loc
))
||
(
pcard
->
current
.
location
!=
LOCATION_MZONE
&&
pcard
->
current
.
location
!=
LOCATION_SZONE
)
||
(
pcard
->
current
.
position
&
POS_FACEUP
)
||
(
pcard
->
current
.
location
==
LOCATION_SZONE
&&
pcard
->
current
.
sequence
>
4
)
||
(
tp
!=
2
&&
(
pcard
->
current
.
controler
!=
tp
)))
return
0
;
tp
=
pcard
->
current
.
controler
;
loc
=
pcard
->
current
.
location
;
ms
[
ct
]
=
pcard
;
seq
[
ct
]
=
pcard
->
current
.
sequence
;
ct
++
;
...
...
@@ -1368,11 +1371,15 @@ int32 scriptlib::duel_shuffle_setcard(lua_State *L) {
std
::
swap
(
ms
[
i
],
ms
[
s
]);
}
pduel
->
write_buffer8
(
MSG_SHUFFLE_SET_CARD
);
pduel
->
write_buffer8
(
loc
);
pduel
->
write_buffer8
(
ct
);
for
(
uint32
i
=
0
;
i
<
ct
;
++
i
)
{
card
*
pcard
=
ms
[
i
];
pduel
->
write_buffer32
(
pcard
->
get_info_location
());
pduel
->
game_field
->
player
[
tp
].
list_mzone
[
seq
[
i
]]
=
pcard
;
if
(
loc
==
LOCATION_MZONE
)
pduel
->
game_field
->
player
[
tp
].
list_mzone
[
seq
[
i
]]
=
pcard
;
else
pduel
->
game_field
->
player
[
tp
].
list_szone
[
seq
[
i
]]
=
pcard
;
pcard
->
current
.
sequence
=
seq
[
i
];
pduel
->
game_field
->
raise_single_event
(
pcard
,
0
,
EVENT_MOVE
,
pcard
->
current
.
reason_effect
,
pcard
->
current
.
reason
,
pcard
->
current
.
reason_player
,
tp
,
0
);
}
...
...
mobile/src/main/res/values-ko/strings.xml
View file @
d3f290c6
...
...
@@ -180,7 +180,6 @@
<string
name=
"delete"
>
삭제
</string>
<string
name=
"mycard"
>
MYcard
</string>
<string
name=
"arena"
>
듀얼리스트db
</string>
<string
name=
"mc_home"
>
홈화면
</string>
<string
name=
"mc_chat"
>
채팅룸
</string>
<string
name=
"noting_to_send"
>
전송할 수 없습니다.
</string>
<string
name=
"sending_failed"
>
전송 실패
</string>
...
...
@@ -188,6 +187,7 @@
<string
name=
"logining_failed"
>
로그인 실패, 다시 시도 하십시오
</string>
<string
name=
"failed_reason"
>
해당 사유로 로그인을 할 수 없습니다
</string>
<string
name=
"send"
>
보내기
</string>
<string
name=
"mc_home"
>
홈화면
</string>
<string
name=
"bbs"
>
커뮤니티
</string>
<string
name=
"settings_pref_settings_only_game"
>
앱 실행시 YGOCORE 바로 실행(설정하지마십시오)
</string>
<string
name=
"only_game_tip"
>
앱의 초기화를 위해 설정을 초기화 해야합니다.
</string>
...
...
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