Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-core
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
nanahira
ygopro-core
Commits
cfe8df33
Commit
cfe8df33
authored
Jan 09, 2024
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro-core
parents
2f0094c1
438d791f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
card.cpp
card.cpp
+2
-0
common.h
common.h
+0
-4
duel.cpp
duel.cpp
+1
-1
scriptlib.h
scriptlib.h
+4
-0
No files found.
card.cpp
View file @
cfe8df33
...
@@ -3312,6 +3312,8 @@ int32 card::is_spsummonable_card() {
...
@@ -3312,6 +3312,8 @@ int32 card::is_spsummonable_card() {
int32
card
::
is_fusion_summonable_card
(
uint32
summon_type
)
{
int32
card
::
is_fusion_summonable_card
(
uint32
summon_type
)
{
if
(
!
(
data
.
type
&
TYPE_FUSION
))
if
(
!
(
data
.
type
&
TYPE_FUSION
))
return
FALSE
;
return
FALSE
;
if
((
data
.
type
&
TYPE_PENDULUM
)
&&
current
.
location
==
LOCATION_EXTRA
&&
(
current
.
position
&
POS_FACEUP
))
return
FALSE
;
summon_type
|=
SUMMON_TYPE_FUSION
;
summon_type
|=
SUMMON_TYPE_FUSION
;
effect_set
eset
;
effect_set
eset
;
filter_effect
(
EFFECT_SPSUMMON_CONDITION
,
&
eset
);
filter_effect
(
EFFECT_SPSUMMON_CONDITION
,
&
eset
);
...
...
common.h
View file @
cfe8df33
...
@@ -24,10 +24,6 @@ typedef signed char int8;
...
@@ -24,10 +24,6 @@ typedef signed char int8;
#define ADD_BIT(x,y) ((x)|=(y))
#define ADD_BIT(x,y) ((x)|=(y))
#define REMOVE_BIT(x,y) ((x)&=~(y))
#define REMOVE_BIT(x,y) ((x)&=~(y))
constexpr
bool
match_all
(
uint32
x
,
uint32
y
)
{
return
(
x
&
y
)
==
y
;
}
#define OPERATION_SUCCESS 1
#define OPERATION_SUCCESS 1
#define OPERATION_FAIL 0
#define OPERATION_FAIL 0
#define OPERATION_CANCELED -1
#define OPERATION_CANCELED -1
...
...
duel.cpp
View file @
cfe8df33
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
#include "group.h"
#include "group.h"
#include "ocgapi.h"
#include "ocgapi.h"
inline
void
write_buffer_vector
(
std
::
vector
<
byte
>&
buffer
,
const
void
*
data
,
int
size
)
{
inline
void
write_buffer_vector
(
std
::
vector
<
byte
>&
buffer
,
const
void
*
&
data
,
int
size
)
{
if
(
size
>
0
)
{
if
(
size
>
0
)
{
const
auto
len
=
buffer
.
size
();
const
auto
len
=
buffer
.
size
();
buffer
.
resize
(
len
+
size
);
buffer
.
resize
(
len
+
size
);
...
...
scriptlib.h
View file @
cfe8df33
...
@@ -11,6 +11,10 @@
...
@@ -11,6 +11,10 @@
#include "common.h"
#include "common.h"
#include "interpreter.h"
#include "interpreter.h"
constexpr
bool
match_all
(
uint32
x
,
uint32
y
)
{
return
(
x
&
y
)
==
y
;
}
class
scriptlib
{
class
scriptlib
{
public:
public:
static
int32
check_param
(
lua_State
*
L
,
int32
param_type
,
int32
index
,
int32
retfalse
=
FALSE
);
static
int32
check_param
(
lua_State
*
L
,
int32
param_type
,
int32
index
,
int32
retfalse
=
FALSE
);
...
...
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