新增模式环境变量bufferLimit,攻击缓冲上限可以调整

This commit is contained in:
MrZ626
2021-05-09 22:44:59 +08:00
parent cba9464b6f
commit 93e422e1cc
8 changed files with 9 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ return{
life=2,
drop=60,lock=60,
freshLimit=15,
bufferLimit=20,
bg='bg2',bgm='race',
},
pauseLimit=true,

View File

@@ -4,6 +4,7 @@ return{
life=2,
drop=60,lock=60,
freshLimit=15,
bufferLimit=20,
bg='bg2',bgm='race',
},
pauseLimit=true,

View File

@@ -4,6 +4,7 @@ return{
life=2,
drop=60,lock=60,
freshLimit=15,
bufferLimit=20,
bg='bg2',bgm='battle',
},
pauseLimit=true,

View File

@@ -4,6 +4,7 @@ return{
life=2,
drop=60,lock=60,
freshLimit=15,
bufferLimit=20,
bg='bg2',bgm='race',
},
pauseLimit=true,

View File

@@ -4,6 +4,7 @@ return{
life=2,
drop=60,lock=60,
freshLimit=15,
bufferLimit=20,
bg='bg2',bgm='battle',
},
pauseLimit=true,

View File

@@ -48,6 +48,7 @@ return{
noTele=false,
visible='show',
freshLimit=1e99,easyFresh=true,
bufferLimit=1e99,
fkey1=false,
keyCancel={},

View File

@@ -365,8 +365,8 @@ end
function Player:receive(A,send,time,line)
self.lastRecv=A
local B=self.atkBuffer
if B.sum<26 then
if send>26-B.sum then send=26-B.sum end
if send+B.sum>self.gameEnv.bufferLimit then send=self.gameEnv.bufferLimit-B.sum end
if send>0 then
local m,k=#B,1
while k<=m and time>B[k].countdown do k=k+1 end
for i=m,k,-1 do