From ad58d38ab191e13447029357eabac4f75bcc169e Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Thu, 19 Oct 2023 21:48:27 +0800 Subject: [PATCH] =?UTF-8?q?puzzle=E6=A8=A1=E5=BC=8Fai=E4=B9=9F=E4=BC=9A?= =?UTF-8?q?=E7=9F=A5=E9=81=93=E8=87=AA=E5=B7=B1=E6=9C=89=E6=B2=A1=E6=9C=89?= =?UTF-8?q?hold?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/modes/custom_puzzle.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parts/modes/custom_puzzle.lua b/parts/modes/custom_puzzle.lua index 3a82dfea..9abc7362 100644 --- a/parts/modes/custom_puzzle.lua +++ b/parts/modes/custom_puzzle.lua @@ -55,9 +55,9 @@ return { local AIlevel=tonumber(GAME.modeEnv.opponent:sub(-1)) PLY.newPlayer(1) 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 - 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, }