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
b919099c
Commit
b919099c
authored
Feb 06, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push globals
parent
bb2b40d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
ocgcore/interpreter.cpp
ocgcore/interpreter.cpp
+29
-0
No files found.
ocgcore/interpreter.cpp
View file @
b919099c
...
...
@@ -657,6 +657,34 @@ interpreter::interpreter(duel* pd): coroutines(256) {
load_script
((
char
*
)
"./script/constant.lua"
);
load_script
((
char
*
)
"./script/utility.lua"
);
//load kpro constant
//card data constants
lua_pushinteger
(
lua_state
,
CARDDATA_CODE
);
lua_setglobal
(
lua_state
,
"CARDDATA_CODE"
);
lua_pushinteger
(
lua_state
,
CARDDATA_ALIAS
);
lua_setglobal
(
lua_state
,
"CARDDATA_ALIAS"
);
lua_pushinteger
(
lua_state
,
CARDDATA_SETCODE
);
lua_setglobal
(
lua_state
,
"CARDDATA_SETCODE"
);
lua_pushinteger
(
lua_state
,
CARDDATA_TYPE
);
lua_setglobal
(
lua_state
,
"CARDDATA_TYPE"
);
lua_pushinteger
(
lua_state
,
CARDDATA_LEVEL
);
lua_setglobal
(
lua_state
,
"CARDDATA_LEVEL"
);
lua_pushinteger
(
lua_state
,
CARDDATA_ATTRIBUTE
);
lua_setglobal
(
lua_state
,
"CARDDATA_ATTRIBUTE"
);
lua_pushinteger
(
lua_state
,
CARDDATA_ATTRIBUTE
);
lua_setglobal
(
lua_state
,
"CARDDATA_ATTRIBUTE"
);
lua_pushinteger
(
lua_state
,
CARDDATA_RACE
);
lua_setglobal
(
lua_state
,
"CARDDATA_RACE"
);
lua_pushinteger
(
lua_state
,
CARDDATA_ATTACK
);
lua_setglobal
(
lua_state
,
"CARDDATA_ATTACK"
);
lua_pushinteger
(
lua_state
,
CARDDATA_DEFENSE
);
lua_setglobal
(
lua_state
,
"CARDDATA_DEFENSE"
);
lua_pushinteger
(
lua_state
,
CARDDATA_LSCALE
);
lua_setglobal
(
lua_state
,
"CARDDATA_LSCALE"
);
lua_pushinteger
(
lua_state
,
CARDDATA_RSCALE
);
lua_setglobal
(
lua_state
,
"CARDDATA_RSCALE"
);
lua_pushinteger
(
lua_state
,
CARDDATA_LINK_MARKER
);
lua_setglobal
(
lua_state
,
"CARDDATA_LINK_MARKER"
);
//effects
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
);
...
...
@@ -665,6 +693,7 @@ interpreter::interpreter(duel* pd): coroutines(256) {
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"
);
//music hints
lua_pushinteger
(
lua_state
,
HINT_MUSIC
);
lua_setglobal
(
lua_state
,
"HINT_MUSIC"
);
lua_pushinteger
(
lua_state
,
HINT_SOUND
);
...
...
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