序列用完或任务失败不扣生命直接判负
This commit is contained in:
@@ -1268,7 +1268,7 @@ local prepareSequence do
|
|||||||
else
|
else
|
||||||
print(P.cur)
|
print(P.cur)
|
||||||
print(P.hd)
|
print(P.hd)
|
||||||
if not(P.cur or P.hd)then P:lose()end
|
if not(P.cur or P.hd)then P:lose(true)end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -2509,7 +2509,7 @@ do--player.drop(P)--Place piece
|
|||||||
elseif ENV.missionKill then
|
elseif ENV.missionKill then
|
||||||
P:showText(text.missionFailed,0,140,40,"flicker",.5)
|
P:showText(text.missionFailed,0,140,40,"flicker",.5)
|
||||||
SFX.play("finesseError_long",.6)
|
SFX.play("finesseError_long",.6)
|
||||||
P:lose()
|
P:lose(true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -2697,8 +2697,8 @@ function player.win(P,result)
|
|||||||
end
|
end
|
||||||
P:newTask(TICK.finish)
|
P:newTask(TICK.finish)
|
||||||
end
|
end
|
||||||
function player.lose(P)
|
function player.lose(P,force)
|
||||||
if P.life>0 then
|
if P.life>0 and not force then
|
||||||
for _=#P.field,1,-1 do
|
for _=#P.field,1,-1 do
|
||||||
freeRow.discard(P.field[_])
|
freeRow.discard(P.field[_])
|
||||||
freeRow.discard(P.visTime[_])
|
freeRow.discard(P.visTime[_])
|
||||||
|
|||||||
Reference in New Issue
Block a user