修复经典模式通关就报错
整理代码
This commit is contained in:
@@ -63,12 +63,12 @@ return{
|
|||||||
local D=P.modeData
|
local D=P.modeData
|
||||||
D.drought=P.lastPiece.id==7 and 0 or D.drought+1
|
D.drought=P.lastPiece.id==7 and 0 or D.drought+1
|
||||||
if P.stat.row>=D.target then
|
if P.stat.row>=D.target then
|
||||||
if D.target>=100 then
|
if D.target>=100 then
|
||||||
D.lvl=D.lvl+1
|
D.lvl=D.lvl+1
|
||||||
end
|
end
|
||||||
local dropSpd=GetGravity(D.lvl)
|
local dropSpd=GetGravity(D.lvl)
|
||||||
if D.target==200 then P.win('finish') return
|
if D.target==200 then P:win('finish') return
|
||||||
elseif dropSpd~=P.gameEnv.drop then
|
elseif dropSpd~=P.gameEnv.drop then
|
||||||
P.gameEnv.drop,P.gameEnv.lock=dropSpd,dropSpd
|
P.gameEnv.drop,P.gameEnv.lock=dropSpd,dropSpd
|
||||||
P.gameEnv.sddas,P.gameEnv.sdarr=dropSpd,dropSpd
|
P.gameEnv.sddas,P.gameEnv.sdarr=dropSpd,dropSpd
|
||||||
SFX.play('warn_2',.7)
|
SFX.play('warn_2',.7)
|
||||||
|
|||||||
@@ -63,12 +63,12 @@ return{
|
|||||||
local D=P.modeData
|
local D=P.modeData
|
||||||
D.drought=P.lastPiece.id==7 and 0 or D.drought+1
|
D.drought=P.lastPiece.id==7 and 0 or D.drought+1
|
||||||
if P.stat.row>=D.target then
|
if P.stat.row>=D.target then
|
||||||
if D.target>=100 then
|
if D.target>=100 then
|
||||||
D.lvl=D.lvl+1
|
D.lvl=D.lvl+1
|
||||||
end
|
end
|
||||||
local dropSpd=GetGravity(D.lvl)
|
local dropSpd=GetGravity(D.lvl)
|
||||||
if D.target==200 then P.win('finish') return
|
if D.target==200 then P:win('finish') return
|
||||||
elseif dropSpd~=P.gameEnv.drop then
|
elseif dropSpd~=P.gameEnv.drop then
|
||||||
P.gameEnv.drop,P.gameEnv.lock=dropSpd,dropSpd
|
P.gameEnv.drop,P.gameEnv.lock=dropSpd,dropSpd
|
||||||
P.gameEnv.sddas,P.gameEnv.sdarr=dropSpd,dropSpd
|
P.gameEnv.sddas,P.gameEnv.sdarr=dropSpd,dropSpd
|
||||||
SFX.play('warn_1')
|
SFX.play('warn_1')
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ return{
|
|||||||
D.lvl=D.lvl+1
|
D.lvl=D.lvl+1
|
||||||
--end
|
--end
|
||||||
local dropSpd=GetGravity(D.lvl)
|
local dropSpd=GetGravity(D.lvl)
|
||||||
if dropSpd~=P.gameEnv.drop then
|
if dropSpd~=P.gameEnv.drop then
|
||||||
P.gameEnv.drop,P.gameEnv.lock=dropSpd,dropSpd
|
P.gameEnv.drop,P.gameEnv.lock=dropSpd,dropSpd
|
||||||
P.gameEnv.sddas,P.gameEnv.sdarr=dropSpd,dropSpd
|
P.gameEnv.sddas,P.gameEnv.sdarr=dropSpd,dropSpd
|
||||||
SFX.play('warn_1')
|
SFX.play('warn_1')
|
||||||
|
|||||||
@@ -62,8 +62,8 @@ return{
|
|||||||
hook_drop=function(P)
|
hook_drop=function(P)
|
||||||
local D=P.modeData
|
local D=P.modeData
|
||||||
D.drought=P.lastPiece.id==7 and 0 or D.drought+1
|
D.drought=P.lastPiece.id==7 and 0 or D.drought+1
|
||||||
if P.stat.row>=D.target then
|
if P.stat.row>=D.target then
|
||||||
if D.target>=200 then P.win('finish') return end
|
if D.target>=200 then P:win('finish') return end
|
||||||
SFX.play('reach')
|
SFX.play('reach')
|
||||||
D.lvl=D.lvl+1
|
D.lvl=D.lvl+1
|
||||||
D.target=D.target+10
|
D.target=D.target+10
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ return{
|
|||||||
local D=P.modeData
|
local D=P.modeData
|
||||||
|
|
||||||
local c=#P.clearedRow
|
local c=#P.clearedRow
|
||||||
if c==0 and D.pt%100==99 then
|
if c==0 and D.pt%100==99 then
|
||||||
if D.pt<1000 then
|
if D.pt<1000 then
|
||||||
hidetimer=0-inv_wait[(P.modeData.pt/100-(P.modeData.pt%100)/100)+1]
|
hidetimer=0-inv_wait[(P.modeData.pt/100-(P.modeData.pt%100)/100)+1]
|
||||||
if c>0 then hidetimer=hidetimer-inv_fall[(P.modeData.pt/100-(P.modeData.pt%100)/100)+1]end
|
if c>0 then hidetimer=hidetimer-inv_fall[(P.modeData.pt/100-(P.modeData.pt%100)/100)+1]end
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ return{
|
|||||||
|
|
||||||
noScore="スコア無し",
|
noScore="スコア無し",
|
||||||
modeLocked="ロック",
|
modeLocked="ロック",
|
||||||
unlockHint="ランクB以上を取得すると解放されるよ!",
|
unlockHint="ランクB以上を取得すると解放されるよ!",
|
||||||
highScore="最高得点",
|
highScore="最高得点",
|
||||||
newRecord="新記録!",
|
newRecord="新記録!",
|
||||||
|
|
||||||
|
|||||||
@@ -778,7 +778,7 @@ return{
|
|||||||
['dig_eff_10l']= {"挖掘", "效率 10L", "挖掘10行用最少的件數"},
|
['dig_eff_10l']= {"挖掘", "效率 10L", "挖掘10行用最少的件數"},
|
||||||
['dig_eff_40l']= {"挖掘", "效率 40L", "挖掘40行用最少的件數"},
|
['dig_eff_40l']= {"挖掘", "效率 40L", "挖掘40行用最少的件數"},
|
||||||
['dig_eff_100l']= {"挖掘", "效率 100L","挖掘100行用最少的件數"},
|
['dig_eff_100l']= {"挖掘", "效率 100L","挖掘100行用最少的件數"},
|
||||||
['dig_eff_400l']= {"挖掘", "效率 400L","挖掘400行用最少的件數"},
|
['dig_eff_400l']= {"挖掘", "效率 400L","挖掘400行用最少的件數"},
|
||||||
['drought_n']= {"乾旱", "100L", "你I沒了"},
|
['drought_n']= {"乾旱", "100L", "你I沒了"},
|
||||||
['drought_l']= {"乾旱+", "100L", "後 媽 發 牌"},
|
['drought_l']= {"乾旱+", "100L", "後 媽 發 牌"},
|
||||||
['marathon_n']= {"馬拉松", "普通", "200行加速馬拉松"},
|
['marathon_n']= {"馬拉松", "普通", "200行加速馬拉松"},
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ return{
|
|||||||
{name='sprintPenta', x=180, y=-160, size=40,shape=3,icon="sprint_pento"},
|
{name='sprintPenta', x=180, y=-160, size=40,shape=3,icon="sprint_pento"},
|
||||||
{name='sprintMPH', x=220, y=-300, size=40,shape=3,icon="sprint2"},
|
{name='sprintMPH', x=220, y=-300, size=40,shape=3,icon="sprint2"},
|
||||||
{name='sprint123', x=180, y=-440, size=40,shape=1,icon="sprint_tri"},
|
{name='sprint123', x=180, y=-440, size=40,shape=1,icon="sprint_tri"},
|
||||||
|
|
||||||
{name='secret_grade', x=-200, y=-400, size=40,shape=1,icon="secret_grade"},
|
{name='secret_grade', x=-200, y=-400, size=40,shape=1,icon="secret_grade"},
|
||||||
|
|
||||||
{name='drought_n', x=-600, y=400, size=40,shape=1,icon="drought", unlock={'drought_l'}},
|
{name='drought_n', x=-600, y=400, size=40,shape=1,icon="drought", unlock={'drought_l'}},
|
||||||
@@ -19,7 +19,7 @@ return{
|
|||||||
{name='dig_40l', x=-400, y=-200, size=40,shape=1,icon="dig_sprint", unlock={'dig_100l'}},
|
{name='dig_40l', x=-400, y=-200, size=40,shape=1,icon="dig_sprint", unlock={'dig_100l'}},
|
||||||
{name='dig_100l', x=-600, y=-200, size=40,shape=1,icon="dig_sprint", unlock={'dig_400l'}},
|
{name='dig_100l', x=-600, y=-200, size=40,shape=1,icon="dig_sprint", unlock={'dig_400l'}},
|
||||||
{name='dig_400l', x=-800, y=-200, size=40,shape=1,icon="dig_sprint"},
|
{name='dig_400l', x=-800, y=-200, size=40,shape=1,icon="dig_sprint"},
|
||||||
|
|
||||||
{name='dig_eff_10l', x=-400, y=0, size=40,shape=1,icon="dig_sprint", unlock={'dig_eff_40l'}},
|
{name='dig_eff_10l', x=-400, y=0, size=40,shape=1,icon="dig_sprint", unlock={'dig_eff_40l'}},
|
||||||
{name='dig_eff_40l', x=-600, y=0, size=40,shape=1,icon="dig_sprint", unlock={'dig_eff_100l'}},
|
{name='dig_eff_40l', x=-600, y=0, size=40,shape=1,icon="dig_sprint", unlock={'dig_eff_100l'}},
|
||||||
{name='dig_eff_100l', x=-800, y=0, size=40,shape=1,icon="dig_sprint", unlock={'dig_eff_400l'}},
|
{name='dig_eff_100l', x=-800, y=0, size=40,shape=1,icon="dig_sprint", unlock={'dig_eff_400l'}},
|
||||||
|
|||||||
Reference in New Issue
Block a user