添加断b2b即死规则,可在自定义模式打开

This commit is contained in:
MrZ626
2020-11-20 18:27:29 +08:00
parent aa0f2ccdc6
commit c91a79488d
6 changed files with 28 additions and 33 deletions

View File

@@ -778,6 +778,7 @@ do--Player.drop(P)--Place piece
local STAT=P.stat
local piece=P.lastPiece
local lose
local cmb=P.combo
local CB,CX,CY=P.cur,P.curX,P.curY
local clear--If clear with no line fall
@@ -951,7 +952,7 @@ do--Player.drop(P)--Place piece
if finePts<5 then
STAT.extraPiece=STAT.extraPiece+1
if ENV.fineKill then
P:lose()
lose=true
end
if P.sound then
if ENV.fineKill then
@@ -1090,6 +1091,9 @@ do--Player.drop(P)--Place piece
--Normal clear, reduce B2B point
if not piece.special then
P.b2b=max(P.b2b-250,0)
if ENV.b2bKill then
lose=true
end
P:showText(text.clear[cc],0,-30,35,"appear",(8-cc)*.3)
atk=cc-.5
sendTime=20+atk*20
@@ -1244,7 +1248,7 @@ do--Player.drop(P)--Place piece
elseif ENV.missionKill then
P:showText(text.missionFailed,0,140,40,"flicker",.5)
SFX.play("finesseError_long",.6)
P:lose(true)
lose=true
end
end
@@ -1276,9 +1280,13 @@ do--Player.drop(P)--Place piece
_=STAT.clears _[cc]=_[cc]+1--Clear[1~5]
end
--Drop event
_=ENV.dropPiece
if _ then _(P)end
if lose then
P:lose()
else
--Drop event
_=ENV.dropPiece
if _ then _(P)end
end
end
end
function Player.loadAI(P,data)--Load AI params