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
82b13f44
Commit
82b13f44
authored
Nov 30, 2018
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync ocgcore & strings
parent
160771a4
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
22 additions
and
3 deletions
+22
-3
Classes/gframe/duelclient.cpp
Classes/gframe/duelclient.cpp
+4
-1
Classes/gframe/duelclient.h
Classes/gframe/duelclient.h
+1
-0
Classes/ocgcore/effect.cpp
Classes/ocgcore/effect.cpp
+2
-1
Classes/ocgcore/interpreter.cpp
Classes/ocgcore/interpreter.cpp
+1
-0
Classes/ocgcore/libduel.cpp
Classes/ocgcore/libduel.cpp
+9
-0
Classes/ocgcore/scriptlib.h
Classes/ocgcore/scriptlib.h
+1
-0
mobile/assets/data/conf/strings.conf
mobile/assets/data/conf/strings.conf
+2
-1
mobile/assets_en/data/conf/strings.conf
mobile/assets_en/data/conf/strings.conf
+1
-0
mobile/assets_ko/data/conf/strings.conf
mobile/assets_ko/data/conf/strings.conf
+1
-0
No files found.
Classes/gframe/duelclient.cpp
View file @
82b13f44
...
...
@@ -26,6 +26,7 @@ char DuelClient::duel_client_read[0x2000];
char
DuelClient
::
duel_client_write
[
0x2000
];
bool
DuelClient
::
is_closing
=
false
;
int
DuelClient
::
select_hint
=
0
;
int
DuelClient
::
select_unselect_hint
=
0
;
wchar_t
DuelClient
::
event_string
[
256
];
mtrandom
DuelClient
::
rnd
;
...
...
@@ -1452,7 +1453,9 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
}
std
::
sort
(
mainGame
->
dField
.
selectable_cards
.
begin
(),
mainGame
->
dField
.
selectable_cards
.
end
(),
ClientCard
::
client_card_sort
);
if
(
select_hint
)
myswprintf
(
textBuffer
,
L"%ls(%d-%d)"
,
dataManager
.
GetDesc
(
select_hint
),
select_unselect_hint
=
select_hint
;
if
(
select_unselect_hint
)
myswprintf
(
textBuffer
,
L"%ls(%d-%d)"
,
dataManager
.
GetDesc
(
select_unselect_hint
),
mainGame
->
dField
.
select_min
,
mainGame
->
dField
.
select_max
);
else
myswprintf
(
textBuffer
,
L"%ls(%d-%d)"
,
dataManager
.
GetSysString
(
560
),
mainGame
->
dField
.
select_min
,
mainGame
->
dField
.
select_max
);
select_hint
=
0
;
...
...
Classes/gframe/duelclient.h
View file @
82b13f44
...
...
@@ -30,6 +30,7 @@ private:
static
char
duel_client_write
[
0x2000
];
static
bool
is_closing
;
static
int
select_hint
;
static
int
select_unselect_hint
;
static
wchar_t
event_string
[
256
];
static
mtrandom
rnd
;
public:
...
...
Classes/ocgcore/effect.cpp
View file @
82b13f44
...
...
@@ -594,7 +594,8 @@ void effect::dec_count(uint32 playerid) {
return
;
if
(
count_limit
==
0
)
return
;
count_limit
-=
1
;
if
(
count_code
==
0
||
is_flag
(
EFFECT_FLAG_NO_TURN_RESET
))
count_limit
-=
1
;
if
(
count_code
)
{
uint32
code
=
count_code
&
0xfffffff
;
if
(
code
==
1
)
...
...
Classes/ocgcore/interpreter.cpp
View file @
82b13f44
...
...
@@ -509,6 +509,7 @@ static const struct luaL_Reg duellib[] = {
{
"ReleaseRitualMaterial"
,
scriptlib
::
duel_release_ritual_material
},
{
"GetFusionMaterial"
,
scriptlib
::
duel_get_fusion_material
},
{
"SetSelectedCard"
,
scriptlib
::
duel_set_must_select_cards
},
{
"GrabSelectedCard"
,
scriptlib
::
duel_grab_must_select_cards
},
{
"SetTargetCard"
,
scriptlib
::
duel_set_target_card
},
{
"ClearTargetCard"
,
scriptlib
::
duel_clear_target_card
},
{
"SetTargetPlayer"
,
scriptlib
::
duel_set_target_player
},
...
...
Classes/ocgcore/libduel.cpp
View file @
82b13f44
...
...
@@ -2798,6 +2798,15 @@ int32 scriptlib::duel_set_must_select_cards(lua_State *L) {
luaL_error
(
L
,
"Parameter %d should be
\"
Card
\"
or
\"
Group
\"
."
,
1
);
return
0
;
}
int32
scriptlib
::
duel_grab_must_select_cards
(
lua_State
*
L
)
{
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
group
*
pgroup
=
pduel
->
new_group
();
if
(
pduel
->
game_field
->
core
.
must_select_cards
.
size
())
pgroup
->
container
.
insert
(
pduel
->
game_field
->
core
.
must_select_cards
.
begin
(),
pduel
->
game_field
->
core
.
must_select_cards
.
end
());
pduel
->
game_field
->
core
.
must_select_cards
.
clear
();
interpreter
::
group2value
(
L
,
pgroup
);
return
1
;
}
int32
scriptlib
::
duel_set_target_card
(
lua_State
*
L
)
{
check_action_permission
(
L
);
check_param_count
(
L
,
1
);
...
...
Classes/ocgcore/scriptlib.h
View file @
82b13f44
...
...
@@ -503,6 +503,7 @@ public:
static
int32
duel_release_ritual_material
(
lua_State
*
L
);
static
int32
duel_get_fusion_material
(
lua_State
*
L
);
static
int32
duel_set_must_select_cards
(
lua_State
*
L
);
static
int32
duel_grab_must_select_cards
(
lua_State
*
L
);
static
int32
duel_set_target_card
(
lua_State
*
L
);
static
int32
duel_clear_target_card
(
lua_State
*
L
);
static
int32
duel_set_target_player
(
lua_State
*
L
);
...
...
mobile/assets/data/conf/strings.conf
View file @
82b13f44
...
...
@@ -740,7 +740,7 @@
!
setname
0
x82
怒怒怒 ドドド
!
setname
0
x83
机关傀儡 ギミック・パペット
!
setname
0
x84
燃烧拳击手
BK
(バーニングナックラー)
!
setname
0
x85
超级防
御
机器人
SD
ロボ
!
setname
0
x85
超级防
卫
机器人
SD
ロボ
!
setname
0
x86
光天使
!
setname
0
x87
阴影 アンブラル
!
setname
0
x88
武神
...
...
@@ -818,6 +818,7 @@
!
setname
0
xbf
灵使 霊使い
!
setname
0
xc0
凭依装着 憑依装着
!
setname
0
xc1
PSY
骨架
PSY
フレーム
!
setname
0
x10c1
PSY
骨架装备
PSY
フレームギア
!
setname
0
xc2
动力工具 パワー・ツール
!
setname
0
xc3
锋利小鬼 エッジインプ
!
setname
0
xc4
神数 セフィラ
...
...
mobile/assets_en/data/conf/strings.conf
View file @
82b13f44
...
...
@@ -811,6 +811,7 @@
!
setname
0
xbf
Charmer
!
setname
0
xc0
Familiar
-
Possessed
!
setname
0
xc1
PSY
-
Frame
!
setname
0
x10c1
PSY
-
Framegear
!
setname
0
xc2
Power
Tool
!
setname
0
xc3
Edge
Imp
!
setname
0
xc4
Zefra
...
...
mobile/assets_ko/data/conf/strings.conf
View file @
82b13f44
...
...
@@ -818,6 +818,7 @@
!
setname
0
xbf
령사
!
setname
0
xc0
빙의장착
!
setname
0
xc1
PSY
(싸이)프레임
!
setname
0
x10c1
PSY
(싸이)프레임기어
!
setname
0
xc2
파워 툴
!
setname
0
xc3
에지임프
!
setname
0
xc4
세피라
...
...
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