新增模式环境变量bufferLimit,攻击缓冲上限可以调整
This commit is contained in:
@@ -62,6 +62,7 @@
|
|||||||
visible:方块可见性,填写固定的几个字符串
|
visible:方块可见性,填写固定的几个字符串
|
||||||
freshLimit:锁延刷新次数限制
|
freshLimit:锁延刷新次数限制
|
||||||
easyFresh:是否使用简单锁延刷新规则
|
easyFresh:是否使用简单锁延刷新规则
|
||||||
|
bufferLimit:攻击缓冲行数上限
|
||||||
|
|
||||||
fkey1:按下功能键1后执行的函数
|
fkey1:按下功能键1后执行的函数
|
||||||
fkey2:按下功能键2后执行的函数
|
fkey2:按下功能键2后执行的函数
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ return{
|
|||||||
life=2,
|
life=2,
|
||||||
drop=60,lock=60,
|
drop=60,lock=60,
|
||||||
freshLimit=15,
|
freshLimit=15,
|
||||||
|
bufferLimit=20,
|
||||||
bg='bg2',bgm='race',
|
bg='bg2',bgm='race',
|
||||||
},
|
},
|
||||||
pauseLimit=true,
|
pauseLimit=true,
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ return{
|
|||||||
life=2,
|
life=2,
|
||||||
drop=60,lock=60,
|
drop=60,lock=60,
|
||||||
freshLimit=15,
|
freshLimit=15,
|
||||||
|
bufferLimit=20,
|
||||||
bg='bg2',bgm='race',
|
bg='bg2',bgm='race',
|
||||||
},
|
},
|
||||||
pauseLimit=true,
|
pauseLimit=true,
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ return{
|
|||||||
life=2,
|
life=2,
|
||||||
drop=60,lock=60,
|
drop=60,lock=60,
|
||||||
freshLimit=15,
|
freshLimit=15,
|
||||||
|
bufferLimit=20,
|
||||||
bg='bg2',bgm='battle',
|
bg='bg2',bgm='battle',
|
||||||
},
|
},
|
||||||
pauseLimit=true,
|
pauseLimit=true,
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ return{
|
|||||||
life=2,
|
life=2,
|
||||||
drop=60,lock=60,
|
drop=60,lock=60,
|
||||||
freshLimit=15,
|
freshLimit=15,
|
||||||
|
bufferLimit=20,
|
||||||
bg='bg2',bgm='race',
|
bg='bg2',bgm='race',
|
||||||
},
|
},
|
||||||
pauseLimit=true,
|
pauseLimit=true,
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ return{
|
|||||||
life=2,
|
life=2,
|
||||||
drop=60,lock=60,
|
drop=60,lock=60,
|
||||||
freshLimit=15,
|
freshLimit=15,
|
||||||
|
bufferLimit=20,
|
||||||
bg='bg2',bgm='battle',
|
bg='bg2',bgm='battle',
|
||||||
},
|
},
|
||||||
pauseLimit=true,
|
pauseLimit=true,
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ return{
|
|||||||
noTele=false,
|
noTele=false,
|
||||||
visible='show',
|
visible='show',
|
||||||
freshLimit=1e99,easyFresh=true,
|
freshLimit=1e99,easyFresh=true,
|
||||||
|
bufferLimit=1e99,
|
||||||
|
|
||||||
fkey1=false,
|
fkey1=false,
|
||||||
keyCancel={},
|
keyCancel={},
|
||||||
|
|||||||
@@ -365,8 +365,8 @@ end
|
|||||||
function Player:receive(A,send,time,line)
|
function Player:receive(A,send,time,line)
|
||||||
self.lastRecv=A
|
self.lastRecv=A
|
||||||
local B=self.atkBuffer
|
local B=self.atkBuffer
|
||||||
if B.sum<26 then
|
if send+B.sum>self.gameEnv.bufferLimit then send=self.gameEnv.bufferLimit-B.sum end
|
||||||
if send>26-B.sum then send=26-B.sum end
|
if send>0 then
|
||||||
local m,k=#B,1
|
local m,k=#B,1
|
||||||
while k<=m and time>B[k].countdown do k=k+1 end
|
while k<=m and time>B[k].countdown do k=k+1 end
|
||||||
for i=m,k,-1 do
|
for i=m,k,-1 do
|
||||||
|
|||||||
Reference in New Issue
Block a user