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
9797d05d
Commit
9797d05d
authored
Feb 24, 2023
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync ocgcore
parent
dca3791f
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
44 additions
and
1 deletion
+44
-1
Classes/ocgcore/card.cpp
Classes/ocgcore/card.cpp
+10
-0
Classes/ocgcore/card.h
Classes/ocgcore/card.h
+1
-0
Classes/ocgcore/effect.h
Classes/ocgcore/effect.h
+1
-0
Classes/ocgcore/field.cpp
Classes/ocgcore/field.cpp
+1
-1
Classes/ocgcore/libcard.cpp
Classes/ocgcore/libcard.cpp
+10
-0
Classes/ocgcore/scriptlib.h
Classes/ocgcore/scriptlib.h
+1
-0
mobile/assets/data/sound/BGM/advantage/蓑部雄崇 - 游星バトル.mp3
mobile/assets/data/sound/BGM/advantage/蓑部雄崇 - 游星バトル.mp3
+0
-0
mobile/assets/data/sound/BGM/deck/戦いの果て(仮) (tono ver.).mp3
mobile/assets/data/sound/BGM/deck/戦いの果て(仮) (tono ver.).mp3
+0
-0
mobile/assets/data/sound/BGM/disadvantage/絆のテーマ(TV.ver).mp3
mobile/assets/data/sound/BGM/disadvantage/絆のテーマ(TV.ver).mp3
+0
-0
mobile/assets/data/sound/BGM/duel/Wall5 Project - スピードワールド.mp3
...e/assets/data/sound/BGM/duel/Wall5 Project - スピードワールド.mp3
+0
-0
mobile/assets/data/sound/BGM/lose/蓑部雄崇 - ハードボイルド.mp3
mobile/assets/data/sound/BGM/lose/蓑部雄崇 - ハードボイルド.mp3
+0
-0
mobile/assets/data/sound/BGM/menu/星の民の伝説.mp3
mobile/assets/data/sound/BGM/menu/星の民の伝説.mp3
+0
-0
mobile/assets/data/sound/BGM/win/bgm_result.mp3
mobile/assets/data/sound/BGM/win/bgm_result.mp3
+0
-0
mobile/assets/data/sound/chants/46986414.mp3
mobile/assets/data/sound/chants/46986414.mp3
+0
-0
mobile/cn/release/output-metadata.json
mobile/cn/release/output-metadata.json
+20
-0
No files found.
Classes/ocgcore/card.cpp
View file @
9797d05d
...
@@ -2921,6 +2921,16 @@ int32 card::is_not_tuner(card* scard) {
...
@@ -2921,6 +2921,16 @@ int32 card::is_not_tuner(card* scard) {
return
TRUE
;
return
TRUE
;
return
FALSE
;
return
FALSE
;
}
}
int32
card
::
is_tuner
(
card
*
scard
)
{
if
(
get_synchro_type
()
&
TYPE_TUNER
)
return
TRUE
;
effect_set
eset
;
filter_effect
(
EFFECT_TUNER
,
&
eset
);
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
if
(
!
eset
[
i
]
->
value
||
eset
[
i
]
->
get_value
(
scard
))
return
TRUE
;
return
FALSE
;
}
int32
card
::
check_unique_code
(
card
*
pcard
)
{
int32
card
::
check_unique_code
(
card
*
pcard
)
{
if
(
!
unique_code
)
if
(
!
unique_code
)
return
FALSE
;
return
FALSE
;
...
...
Classes/ocgcore/card.h
View file @
9797d05d
...
@@ -332,6 +332,7 @@ public:
...
@@ -332,6 +332,7 @@ public:
void
fusion_select
(
uint8
playerid
,
group
*
fusion_m
,
card
*
cg
,
uint32
chkf
,
uint8
not_material
);
void
fusion_select
(
uint8
playerid
,
group
*
fusion_m
,
card
*
cg
,
uint32
chkf
,
uint8
not_material
);
int32
check_fusion_substitute
(
card
*
fcard
);
int32
check_fusion_substitute
(
card
*
fcard
);
int32
is_not_tuner
(
card
*
scard
);
int32
is_not_tuner
(
card
*
scard
);
int32
is_tuner
(
card
*
scard
);
int32
check_unique_code
(
card
*
pcard
);
int32
check_unique_code
(
card
*
pcard
);
void
get_unique_target
(
card_set
*
cset
,
int32
controler
,
card
*
icard
=
0
);
void
get_unique_target
(
card_set
*
cset
,
int32
controler
,
card
*
icard
=
0
);
...
...
Classes/ocgcore/effect.h
View file @
9797d05d
...
@@ -467,6 +467,7 @@ inline effect_flag operator|(effect_flag flag1, effect_flag flag2)
...
@@ -467,6 +467,7 @@ inline effect_flag operator|(effect_flag flag1, effect_flag flag2)
#define EFFECT_CHANGE_GRAVE_RACE 366
#define EFFECT_CHANGE_GRAVE_RACE 366
#define EFFECT_ACTIVATION_COUNT_LIMIT 367
#define EFFECT_ACTIVATION_COUNT_LIMIT 367
#define EFFECT_LIMIT_SPECIAL_SUMMON_POSITION 368
#define EFFECT_LIMIT_SPECIAL_SUMMON_POSITION 368
#define EFFECT_TUNER 369
//#define EVENT_STARTUP 1000
//#define EVENT_STARTUP 1000
#define EVENT_FLIP 1001
#define EVENT_FLIP 1001
...
...
Classes/ocgcore/field.cpp
View file @
9797d05d
...
@@ -2524,7 +2524,7 @@ int32 field::check_synchro_material(card* pcard, int32 findex1, int32 findex2, i
...
@@ -2524,7 +2524,7 @@ int32 field::check_synchro_material(card* pcard, int32 findex1, int32 findex2, i
return
FALSE
;
return
FALSE
;
}
}
int32
field
::
check_tuner_material
(
card
*
pcard
,
card
*
tuner
,
int32
findex1
,
int32
findex2
,
int32
min
,
int32
max
,
card
*
smat
,
group
*
mg
)
{
int32
field
::
check_tuner_material
(
card
*
pcard
,
card
*
tuner
,
int32
findex1
,
int32
findex2
,
int32
min
,
int32
max
,
card
*
smat
,
group
*
mg
)
{
if
(
!
tuner
||
(
tuner
->
current
.
location
==
LOCATION_MZONE
&&
!
tuner
->
is_position
(
POS_FACEUP
))
||
!
(
tuner
->
get_synchro_type
()
&
TYPE_TUNER
)
||
!
tuner
->
is_can_be_synchro_material
(
pcard
))
if
(
!
tuner
||
(
tuner
->
current
.
location
==
LOCATION_MZONE
&&
!
tuner
->
is_position
(
POS_FACEUP
))
||
!
tuner
->
is_tuner
(
pcard
)
||
!
tuner
->
is_can_be_synchro_material
(
pcard
))
return
FALSE
;
return
FALSE
;
effect
*
pcheck
=
tuner
->
is_affected_by_effect
(
EFFECT_SYNCHRO_CHECK
);
effect
*
pcheck
=
tuner
->
is_affected_by_effect
(
EFFECT_SYNCHRO_CHECK
);
if
(
pcheck
)
if
(
pcheck
)
...
...
Classes/ocgcore/libcard.cpp
View file @
9797d05d
...
@@ -1262,6 +1262,15 @@ int32 scriptlib::card_is_not_tuner(lua_State *L) {
...
@@ -1262,6 +1262,15 @@ int32 scriptlib::card_is_not_tuner(lua_State *L) {
lua_pushboolean
(
L
,
pcard
->
is_not_tuner
(
scard
));
lua_pushboolean
(
L
,
pcard
->
is_not_tuner
(
scard
));
return
1
;
return
1
;
}
}
int32
scriptlib
::
card_is_tuner
(
lua_State
*
L
)
{
check_param_count
(
L
,
2
);
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
check_param
(
L
,
PARAM_TYPE_CARD
,
2
);
card
*
pcard
=
*
(
card
**
)
lua_touserdata
(
L
,
1
);
card
*
scard
=
*
(
card
**
)
lua_touserdata
(
L
,
2
);
lua_pushboolean
(
L
,
pcard
->
is_tuner
(
scard
));
return
1
;
}
int32
scriptlib
::
card_set_status
(
lua_State
*
L
)
{
int32
scriptlib
::
card_set_status
(
lua_State
*
L
)
{
check_param_count
(
L
,
3
);
check_param_count
(
L
,
3
);
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
...
@@ -3368,6 +3377,7 @@ static const struct luaL_Reg cardlib[] = {
...
@@ -3368,6 +3377,7 @@ static const struct luaL_Reg cardlib[] = {
{
"IsSummonPlayer"
,
scriptlib
::
card_is_summon_player
},
{
"IsSummonPlayer"
,
scriptlib
::
card_is_summon_player
},
{
"IsStatus"
,
scriptlib
::
card_is_status
},
{
"IsStatus"
,
scriptlib
::
card_is_status
},
{
"IsNotTuner"
,
scriptlib
::
card_is_not_tuner
},
{
"IsNotTuner"
,
scriptlib
::
card_is_not_tuner
},
{
"IsTuner"
,
scriptlib
::
card_is_tuner
},
{
"SetStatus"
,
scriptlib
::
card_set_status
},
{
"SetStatus"
,
scriptlib
::
card_set_status
},
{
"IsDualState"
,
scriptlib
::
card_is_dual_state
},
{
"IsDualState"
,
scriptlib
::
card_is_dual_state
},
{
"EnableDualState"
,
scriptlib
::
card_enable_dual_state
},
{
"EnableDualState"
,
scriptlib
::
card_enable_dual_state
},
...
...
Classes/ocgcore/scriptlib.h
View file @
9797d05d
...
@@ -133,6 +133,7 @@ public:
...
@@ -133,6 +133,7 @@ public:
static
int32
card_is_summon_player
(
lua_State
*
L
);
static
int32
card_is_summon_player
(
lua_State
*
L
);
static
int32
card_is_status
(
lua_State
*
L
);
static
int32
card_is_status
(
lua_State
*
L
);
static
int32
card_is_not_tuner
(
lua_State
*
L
);
static
int32
card_is_not_tuner
(
lua_State
*
L
);
static
int32
card_is_tuner
(
lua_State
*
L
);
static
int32
card_set_status
(
lua_State
*
L
);
static
int32
card_set_status
(
lua_State
*
L
);
static
int32
card_is_dual_state
(
lua_State
*
L
);
static
int32
card_is_dual_state
(
lua_State
*
L
);
static
int32
card_enable_dual_state
(
lua_State
*
L
);
static
int32
card_enable_dual_state
(
lua_State
*
L
);
...
...
mobile/assets/data/sound/BGM/advantage/蓑部雄崇 - 游星バトル.mp3
0 → 100644
View file @
9797d05d
File added
mobile/assets/data/sound/BGM/deck/戦いの果て(仮) (tono ver.).mp3
0 → 100644
View file @
9797d05d
File added
mobile/assets/data/sound/BGM/disadvantage/絆のテーマ(TV.ver).mp3
0 → 100644
View file @
9797d05d
File added
mobile/assets/data/sound/BGM/duel/Wall5 Project - スピードワールド.mp3
0 → 100644
View file @
9797d05d
File added
mobile/assets/data/sound/BGM/lose/蓑部雄崇 - ハードボイルド.mp3
0 → 100644
View file @
9797d05d
File added
mobile/assets/data/sound/BGM/menu/星の民の伝説.mp3
0 → 100644
View file @
9797d05d
File added
mobile/assets/data/sound/BGM/win/bgm_result.mp3
0 → 100644
View file @
9797d05d
File added
mobile/assets/data/sound/chants/46986414.mp3
0 → 100644
View file @
9797d05d
File added
mobile/cn/release/output-metadata.json
0 → 100644
View file @
9797d05d
{
"version"
:
3
,
"artifactType"
:
{
"type"
:
"APK"
,
"kind"
:
"Directory"
},
"applicationId"
:
"cn.garymb.ygomobile.CN"
,
"variantName"
:
"cnRelease"
,
"elements"
:
[
{
"type"
:
"SINGLE"
,
"filters"
:
[],
"attributes"
:
[],
"versionCode"
:
310080942
,
"versionName"
:
"3.10.8"
,
"outputFile"
:
"YGOMobile_3.10.8.apk"
}
],
"elementType"
:
"File"
}
\ No newline at end of file
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