Commit e610966c authored by nanahira's avatar nanahira

flex duel rule

parent 10a39b4a
...@@ -741,7 +741,9 @@ extern HostInfo game_info; ...@@ -741,7 +741,9 @@ extern HostInfo game_info;
#define TEXTURE_ATTACK 5 #define TEXTURE_ATTACK 5
#define TEXTURE_ACTIVATE 6 #define TEXTURE_ACTIVATE 6
#ifndef DEFAULT_DUEL_RULE
#define DEFAULT_DUEL_RULE 4 #define DEFAULT_DUEL_RULE 4
#endif
#define CARD_ARTWORK_VERSIONS_OFFSET 10 #define CARD_ARTWORK_VERSIONS_OFFSET 10
#endif // GAME_H #endif // GAME_H
...@@ -4,6 +4,8 @@ project "ygopro" ...@@ -4,6 +4,8 @@ project "ygopro"
kind "ConsoleApp" kind "ConsoleApp"
defines { "YGOPRO_SERVER_MODE" } defines { "YGOPRO_SERVER_MODE" }
local mr=os.getenv("YGOPRO_DEFAULT_DUEL_RULE")
if mr and tonumber(mr) then defines { "DEFAULT_DUEL_RULE="..tonumber(mr) } end
files { "gframe.cpp", "config.h", files { "gframe.cpp", "config.h",
"game.cpp", "game.h", "game.cpp", "game.h",
......
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