自定义游戏可以正确传递hold开关的参数了close #779
This commit is contained in:
@@ -13,9 +13,9 @@ return {
|
|||||||
local AItype=GAME.modeEnv.opponent:sub(1,2)
|
local AItype=GAME.modeEnv.opponent:sub(1,2)
|
||||||
local AIlevel=tonumber(GAME.modeEnv.opponent:sub(-1))
|
local AIlevel=tonumber(GAME.modeEnv.opponent:sub(-1))
|
||||||
if AItype=='9S' then
|
if AItype=='9S' then
|
||||||
PLY.newAIPlayer(2,BOT.template{type='9S',speedLV=2*AIlevel,hold=true})
|
PLY.newAIPlayer(2,BOT.template{type='9S',speedLV=2*AIlevel,hold=GAME.modeEnv.holdCount})
|
||||||
elseif AItype=='CC' then
|
elseif AItype=='CC' then
|
||||||
PLY.newAIPlayer(2,BOT.template{type='CC',speedLV=2*AIlevel-1,next=math.floor(AIlevel*.5+1),hold=true,node=20000+5000*AIlevel})
|
PLY.newAIPlayer(2,BOT.template{type='CC',speedLV=2*AIlevel-1,next=math.floor(AIlevel*.5+1),hold=GAME.modeEnv.holdCount,node=20000+5000*AIlevel})
|
||||||
end
|
end
|
||||||
|
|
||||||
for _,P in next,PLY_ALIVE do
|
for _,P in next,PLY_ALIVE do
|
||||||
|
|||||||
Reference in New Issue
Block a user