虚拟按键的重开键取消,换成2号功能键

This commit is contained in:
MrZ626
2021-01-24 14:20:47 +08:00
parent aad36f44c1
commit d4cbfc82a6
22 changed files with 32 additions and 80 deletions

View File

@@ -48,7 +48,7 @@ return{
visible="show",
freshLimit=1e99,easyFresh=true,
Fkey=false,
fkey1=false,
keyCancel={},
fine=false,fineKill=false,
b2bKill=false,

View File

@@ -232,9 +232,8 @@ local function applyGameEnv(P)--Finish gameEnv processing
end
end
end
if not ENV.Fkey then
P.keyAvailable[9]=false
end
if not ENV.fkey1 then P.keyAvailable[9]=false end
if not ENV.fkey2 then P.keyAvailable[10]=false end
for _,v in next,ENV.keyCancel do
P.keyAvailable[v]=false
end

View File

@@ -1853,17 +1853,11 @@ function Player.act_hold(P)
P:hold()
end
end
function Player.act_func(P)
P.gameEnv.Fkey(P)
function Player.act_func1(P)
P.gameEnv.fkey1(P)
end
function Player.act_restart()
if GAME.frame<240 then
resetGameData("q")
elseif GAME.result then
resetGameData()
else
LOG.print(text.holdR,20,COLOR.orange)
end
function Player.act_func2(P)
P.gameEnv.fkey2(P)
end
function Player.act_insLeft(P,auto)
@@ -1993,8 +1987,8 @@ Player.actList={
Player.act_hardDrop, --6
Player.act_softDrop, --7
Player.act_hold, --8
Player.act_func, --9
Player.act_restart, --10
Player.act_func1, --9
Player.act_func2, --10
Player.act_insLeft, --11
Player.act_insRight, --12
Player.act_insDown, --13