Commit 612d172d authored by nanahira's avatar nanahira

constant_pre

parent ecdc8cb7
......@@ -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
#define EFFECT_STATUS_AVAILABLE 0x0001
//#define EFFECT_STATUS_ACTIVATED 0x0002
......@@ -442,6 +436,12 @@ inline effect_flag operator|(effect_flag flag1, effect_flag flag2)
#define EFFECT_ADD_LINK_ATTRIBUTE 356
#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_FLIP 1001
#define EVENT_FREE_CHAIN 1002
......
......@@ -610,12 +610,14 @@ interpreter::interpreter(duel* pd): coroutines(256) {
set_duel_info(lua_state, pd);
//Initial
luaL_openlibs(lua_state);
/*
lua_pushnil(lua_state);
lua_setglobal(lua_state, "file");
lua_pushnil(lua_state);
lua_setglobal(lua_state, "io");
lua_pushnil(lua_state);
lua_setglobal(lua_state, "os");
*/
lua_getglobal(lua_state, "bit32");
lua_setglobal(lua_state, "bit");
//open all libs
......@@ -641,6 +643,17 @@ interpreter::interpreter(duel* pd): coroutines(256) {
//extra scripts
load_script((char*) "./script/constant.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() {
lua_close(lua_state);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment