修改消行任务ID
This commit is contained in:
@@ -165,6 +165,8 @@ end
|
|||||||
|
|
||||||
missionEnum={
|
missionEnum={
|
||||||
_1=01,_2=02,_3=03,_4=04,
|
_1=01,_2=02,_3=03,_4=04,
|
||||||
|
A1=05,A2=06,A3=07,A4=08,
|
||||||
|
PC=09,
|
||||||
Z1=11,Z2=12,Z3=13,
|
Z1=11,Z2=12,Z3=13,
|
||||||
S1=21,S2=22,S3=23,
|
S1=21,S2=22,S3=23,
|
||||||
J1=31,J2=32,J3=33,
|
J1=31,J2=32,J3=33,
|
||||||
@@ -172,8 +174,6 @@ missionEnum={
|
|||||||
T1=51,T2=52,T3=53,
|
T1=51,T2=52,T3=53,
|
||||||
O1=61,O2=62,O3=63,O4=64,
|
O1=61,O2=62,O3=63,O4=64,
|
||||||
I1=71,I2=72,I3=73,I4=74,
|
I1=71,I2=72,I3=73,I4=74,
|
||||||
A1=91,A2=92,A3=93,A4=94,
|
|
||||||
PC=99,
|
|
||||||
}
|
}
|
||||||
local _={}
|
local _={}
|
||||||
for k,v in next,missionEnum do _[v]=k end
|
for k,v in next,missionEnum do _[v]=k end
|
||||||
|
|||||||
@@ -914,7 +914,7 @@ do--function Pdraw_norm(P)
|
|||||||
end
|
end
|
||||||
|
|
||||||
--Missions
|
--Missions
|
||||||
if P.missionProgress then
|
if P.curMission then
|
||||||
local missionEnum=missionEnum
|
local missionEnum=missionEnum
|
||||||
local L=ENV.mission
|
local L=ENV.mission
|
||||||
|
|
||||||
@@ -925,16 +925,16 @@ do--function Pdraw_norm(P)
|
|||||||
else
|
else
|
||||||
gc.setColor(1,1,1)
|
gc.setColor(1,1,1)
|
||||||
end
|
end
|
||||||
gc.print(missionEnum[L[P.missionProgress+1]],85,180)
|
gc.print(missionEnum[L[P.curMission]],85,180)
|
||||||
|
|
||||||
--Draw next mission
|
--Draw next mission
|
||||||
gc.setColor(1,1,1)
|
gc.setColor(1,1,1)
|
||||||
setFont(17)
|
setFont(17)
|
||||||
for i=2,4 do
|
for i=1,3 do
|
||||||
local t=L[P.missionProgress+i]
|
local t=L[P.curMission+i]
|
||||||
if t then
|
if t then
|
||||||
t=missionEnum[t]
|
t=missionEnum[t]
|
||||||
gc.print(t,113-26*i,187)
|
gc.print(t,87-26*i,187)
|
||||||
else
|
else
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
@@ -1238,7 +1238,7 @@ local function applyGameEnv(P)--Finish gameEnv processing
|
|||||||
end
|
end
|
||||||
|
|
||||||
if type(ENV.mission)=="table"then
|
if type(ENV.mission)=="table"then
|
||||||
P.missionProgress=0
|
P.curMission=1
|
||||||
end
|
end
|
||||||
|
|
||||||
ENV.das=max(ENV.das,ENV.mindas)
|
ENV.das=max(ENV.das,ENV.mindas)
|
||||||
@@ -2447,32 +2447,32 @@ do--player.drop(P)--Place piece
|
|||||||
end
|
end
|
||||||
|
|
||||||
--Check clearing task
|
--Check clearing task
|
||||||
if P.missionProgress then
|
if P.curMission then
|
||||||
local t=P.gameEnv.mission[P.missionProgress+1]
|
local t=P.gameEnv.mission[P.curMission]
|
||||||
local success
|
local success
|
||||||
if t<10 then
|
if t<5 then
|
||||||
if C.row==t then
|
if C.row==t then
|
||||||
success=true
|
success=true
|
||||||
end
|
end
|
||||||
elseif t<90 then
|
elseif t<9 then
|
||||||
if C.row==t%10 and C.name==int(t/10)then
|
if C.row==t%10 and C.spin then
|
||||||
success=true
|
success=true
|
||||||
end
|
end
|
||||||
elseif t<99 then
|
elseif t==9 then
|
||||||
if C.row==t%10 then
|
|
||||||
success=true
|
|
||||||
end
|
|
||||||
elseif t==99 then
|
|
||||||
if C.pc then
|
if C.pc then
|
||||||
success=true
|
success=true
|
||||||
end
|
end
|
||||||
|
elseif t<90 then
|
||||||
|
if C.row==t%10 and C.name==int(t/10)and C.spin then
|
||||||
|
success=true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
if success then
|
if success then
|
||||||
P.missionProgress=P.missionProgress+1
|
P.curMission=P.curMission+1
|
||||||
SFX.play("reach")
|
SFX.play("reach")
|
||||||
if P.missionProgress==#P.gameEnv.mission then
|
if P.curMission>#P.gameEnv.mission then
|
||||||
|
P.curMission=nil
|
||||||
P:win()
|
P:win()
|
||||||
P.missionProgress=nil
|
|
||||||
end
|
end
|
||||||
elseif P.gameEnv.missionKill then
|
elseif P.gameEnv.missionKill then
|
||||||
P:showText(text.missionFailed,0,140,40,"flicker",.5)
|
P:showText(text.missionFailed,0,140,40,"flicker",.5)
|
||||||
|
|||||||
Reference in New Issue
Block a user