Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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
MyCard
ygopro-2pick
Commits
612d172d
Commit
612d172d
authored
Dec 22, 2017
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
constant_pre
parent
ecdc8cb7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
6 deletions
+19
-6
ocgcore/effect.h
ocgcore/effect.h
+6
-6
ocgcore/interpreter.cpp
ocgcore/interpreter.cpp
+13
-0
No files found.
ocgcore/effect.h
View file @
612d172d
...
@@ -107,12 +107,6 @@ public:
...
@@ -107,12 +107,6 @@ public:
}
}
};
};
// KoishiPro effects
#define EFFECT_CHANGE_LINK_MARKER_KOISHI 710253
#define EFFECT_ADD_LINK_MARKER_KOISHI 37564151
#define EFFECT_REMOVE_LINK_MARKER_KOISHI 37564152
#define EFFECT_CANNOT_LOSE_KOISHI 37564153
//status
//status
#define EFFECT_STATUS_AVAILABLE 0x0001
#define EFFECT_STATUS_AVAILABLE 0x0001
//#define EFFECT_STATUS_ACTIVATED 0x0002
//#define EFFECT_STATUS_ACTIVATED 0x0002
...
@@ -442,6 +436,12 @@ inline effect_flag operator|(effect_flag flag1, effect_flag flag2)
...
@@ -442,6 +436,12 @@ inline effect_flag operator|(effect_flag flag1, effect_flag flag2)
#define EFFECT_ADD_LINK_ATTRIBUTE 356
#define EFFECT_ADD_LINK_ATTRIBUTE 356
#define EFFECT_ADD_LINK_RACE 357
#define EFFECT_ADD_LINK_RACE 357
// KoishiPro effects
#define EFFECT_CHANGE_LINK_MARKER_KOISHI 710253
#define EFFECT_ADD_LINK_MARKER_KOISHI 37564151
#define EFFECT_REMOVE_LINK_MARKER_KOISHI 37564152
#define EFFECT_CANNOT_LOSE_KOISHI 37564153
#define EVENT_STARTUP 1000
#define EVENT_STARTUP 1000
#define EVENT_FLIP 1001
#define EVENT_FLIP 1001
#define EVENT_FREE_CHAIN 1002
#define EVENT_FREE_CHAIN 1002
...
...
ocgcore/interpreter.cpp
View file @
612d172d
...
@@ -610,12 +610,14 @@ interpreter::interpreter(duel* pd): coroutines(256) {
...
@@ -610,12 +610,14 @@ interpreter::interpreter(duel* pd): coroutines(256) {
set_duel_info
(
lua_state
,
pd
);
set_duel_info
(
lua_state
,
pd
);
//Initial
//Initial
luaL_openlibs
(
lua_state
);
luaL_openlibs
(
lua_state
);
/*
lua_pushnil(lua_state);
lua_pushnil(lua_state);
lua_setglobal(lua_state, "file");
lua_setglobal(lua_state, "file");
lua_pushnil(lua_state);
lua_pushnil(lua_state);
lua_setglobal(lua_state, "io");
lua_setglobal(lua_state, "io");
lua_pushnil(lua_state);
lua_pushnil(lua_state);
lua_setglobal(lua_state, "os");
lua_setglobal(lua_state, "os");
*/
lua_getglobal
(
lua_state
,
"bit32"
);
lua_getglobal
(
lua_state
,
"bit32"
);
lua_setglobal
(
lua_state
,
"bit"
);
lua_setglobal
(
lua_state
,
"bit"
);
//open all libs
//open all libs
...
@@ -641,6 +643,17 @@ interpreter::interpreter(duel* pd): coroutines(256) {
...
@@ -641,6 +643,17 @@ interpreter::interpreter(duel* pd): coroutines(256) {
//extra scripts
//extra scripts
load_script
((
char
*
)
"./script/constant.lua"
);
load_script
((
char
*
)
"./script/constant.lua"
);
load_script
((
char
*
)
"./script/utility.lua"
);
load_script
((
char
*
)
"./script/utility.lua"
);
//load kpro constant
lua_pushinteger
(
lua_state
,
EFFECT_CHANGE_LINK_MARKER_KOISHI
);
lua_setglobal
(
lua_state
,
"EFFECT_CHANGE_LINK_MARKER_KOISHI"
);
lua_pushinteger
(
lua_state
,
EFFECT_ADD_LINK_MARKER_KOISHI
);
lua_setglobal
(
lua_state
,
"EFFECT_ADD_LINK_MARKER_KOISHI"
);
lua_pushinteger
(
lua_state
,
EFFECT_REMOVE_LINK_MARKER_KOISHI
);
lua_setglobal
(
lua_state
,
"EFFECT_REMOVE_LINK_MARKER_KOISHI"
);
lua_pushinteger
(
lua_state
,
EFFECT_CANNOT_LOSE_KOISHI
);
lua_setglobal
(
lua_state
,
"EFFECT_CANNOT_LOSE_KOISHI"
);
//load init.lua by MLD
load_script
((
char
*
)
"./expansions/script/init.lua"
);
}
}
interpreter
::~
interpreter
()
{
interpreter
::~
interpreter
()
{
lua_close
(
lua_state
);
lua_close
(
lua_state
);
...
...
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