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
86bd0696
Commit
86bd0696
authored
Nov 17, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 888
parents
7163cff5
2d486e69
Pipeline
#41744
passed with stages
in 3 minutes and 31 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
52 deletions
+20
-52
.gitlab-ci.yml
.gitlab-ci.yml
+2
-0
libcard.cpp
libcard.cpp
+13
-50
premake/dll.lua
premake/dll.lua
+5
-2
No files found.
.gitlab-ci.yml
View file @
86bd0696
...
...
@@ -86,6 +86,8 @@ build_linux_x64:
build_linux_x64_no_longjmp
:
extends
:
.build_unix
except
:
[]
only
:
-
'
888'
variables
:
NO_LONGJMP
:
'
1'
...
...
libcard.cpp
View file @
86bd0696
...
...
@@ -3425,69 +3425,32 @@ int32_t scriptlib::card_add_monster_attribute(lua_State *L) {
card
*
pcard
=
*
(
card
**
)
lua_touserdata
(
L
,
1
);
duel
*
pduel
=
pcard
->
pduel
;
pcard
->
set_status
(
STATUS_NO_LEVEL
,
FALSE
);
// pre-monster
effect
*
peffect
=
pduel
->
new_effect
();
peffect
->
owner
=
pcard
;
peffect
->
type
=
EFFECT_TYPE_SINGLE
;
peffect
->
code
=
EFFECT_PRE_MONSTER
;
peffect
->
flag
[
0
]
=
EFFECT_FLAG_CANNOT_DISABLE
;
peffect
->
reset_flag
=
RESET_CHAIN
+
RESET_EVENT
+
0x47e0000
;
peffect
->
value
=
type
;
pcard
->
add_effect
(
peffect
);
//attribute
if
(
attribute
)
{
effect
*
peffect
;
auto
add_temp_effect
=
[
&
](
uint32_t
code
,
int32_t
value
,
uint32_t
extra_reset_flag
=
0
)
{
peffect
=
pduel
->
new_effect
();
peffect
->
owner
=
pcard
;
peffect
->
type
=
EFFECT_TYPE_SINGLE
;
peffect
->
code
=
EFFECT_ADD_ATTRIBUTE
;
peffect
->
code
=
code
;
peffect
->
flag
[
0
]
=
EFFECT_FLAG_CANNOT_DISABLE
;
peffect
->
reset_flag
=
RESET_EVENT
+
0x47e0000
;
peffect
->
value
=
attribut
e
;
peffect
->
reset_flag
=
RESET_EVENT
|
0x47e0000
|
extra_reset_flag
;
peffect
->
value
=
valu
e
;
pcard
->
add_effect
(
peffect
);
};
add_temp_effect
(
EFFECT_PRE_MONSTER
,
type
,
RESET_CHAIN
);
if
(
attribute
)
{
add_temp_effect
(
EFFECT_CHANGE_ATTRIBUTE
,
attribute
);
}
//race
if
(
race
)
{
peffect
=
pduel
->
new_effect
();
peffect
->
owner
=
pcard
;
peffect
->
type
=
EFFECT_TYPE_SINGLE
;
peffect
->
code
=
EFFECT_ADD_RACE
;
peffect
->
flag
[
0
]
=
EFFECT_FLAG_CANNOT_DISABLE
;
peffect
->
reset_flag
=
RESET_EVENT
+
0x47e0000
;
peffect
->
value
=
race
;
pcard
->
add_effect
(
peffect
);
add_temp_effect
(
EFFECT_CHANGE_RACE
,
race
);
}
//level
if
(
level
)
{
peffect
=
pduel
->
new_effect
();
peffect
->
owner
=
pcard
;
peffect
->
type
=
EFFECT_TYPE_SINGLE
;
peffect
->
code
=
EFFECT_CHANGE_LEVEL
;
peffect
->
flag
[
0
]
=
EFFECT_FLAG_CANNOT_DISABLE
;
peffect
->
reset_flag
=
RESET_EVENT
+
0x47e0000
;
peffect
->
value
=
level
;
pcard
->
add_effect
(
peffect
);
add_temp_effect
(
EFFECT_CHANGE_LEVEL
,
level
);
}
//atk
if
(
atk
)
{
peffect
=
pduel
->
new_effect
();
peffect
->
owner
=
pcard
;
peffect
->
type
=
EFFECT_TYPE_SINGLE
;
peffect
->
code
=
EFFECT_SET_BASE_ATTACK
;
peffect
->
flag
[
0
]
=
EFFECT_FLAG_CANNOT_DISABLE
;
peffect
->
reset_flag
=
RESET_EVENT
+
0x47e0000
;
peffect
->
value
=
atk
;
pcard
->
add_effect
(
peffect
);
add_temp_effect
(
EFFECT_SET_BASE_ATTACK
,
atk
);
}
//def
if
(
def
)
{
peffect
=
pduel
->
new_effect
();
peffect
->
owner
=
pcard
;
peffect
->
type
=
EFFECT_TYPE_SINGLE
;
peffect
->
code
=
EFFECT_SET_BASE_DEFENSE
;
peffect
->
flag
[
0
]
=
EFFECT_FLAG_CANNOT_DISABLE
;
peffect
->
reset_flag
=
RESET_EVENT
+
0x47e0000
;
peffect
->
value
=
def
;
pcard
->
add_effect
(
peffect
);
add_temp_effect
(
EFFECT_SET_BASE_DEFENSE
,
def
);
}
return
0
;
}
...
...
premake/dll.lua
View file @
86bd0696
...
...
@@ -20,6 +20,7 @@ if not os.isdir(LUA_DIR) then
end
SQLITE3_DIR
=
GetParam
(
"sqlite3-dir"
)
USE_LONGJMP
=
not
GetParam
(
"no-longjmp"
)
function
ApplyBoolean
(
param
)
if
GetParam
(
param
)
then
...
...
@@ -34,7 +35,7 @@ workspace "ocgcoredll"
configurations
{
"Release"
,
"Debug"
}
platforms
{
"x64"
,
"x32"
,
"arm64"
,
"wasm"
}
if
not
GetParam
(
"no-longjmp"
)
then
if
USE_LONGJMP
then
defines
{
"LUA_USE_LONGJMP"
}
end
...
...
@@ -82,7 +83,9 @@ workspace "ocgcoredll"
filter
"system:linux"
defines
{
"LUA_USE_LINUX"
}
pic
"On"
-- linkoptions { "-static-libstdc++", "-static-libgcc" }
if
USE_LONGJMP
then
linkoptions
{
"-static-libstdc++"
,
"-static-libgcc"
}
end
filter
"platforms:wasm"
toolset
"emcc"
...
...
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