【eventSet系统修正】修正无尽pc爆炸
This commit is contained in:
@@ -1,11 +0,0 @@
|
|||||||
return setmetatable({},{
|
|
||||||
__index=function(self,k)
|
|
||||||
assert(type(k)=='number'and k>0)
|
|
||||||
self[k]=function(P)
|
|
||||||
if P.stat.row>=k then
|
|
||||||
P:win('finish')
|
|
||||||
end
|
|
||||||
end
|
|
||||||
return self[k]
|
|
||||||
end
|
|
||||||
})
|
|
||||||
@@ -1,13 +1,18 @@
|
|||||||
return function(P)
|
return{
|
||||||
if P.lastPiece.pc then
|
task=function(P)
|
||||||
P.gameEnv.heightLimit=4
|
P.gameEnv.heightLimit=4
|
||||||
if P.stat.pc%5==0 then
|
end,
|
||||||
P.gameEnv.drop=math.max(P.gameEnv.drop-1,1)
|
dropPiece=function(P)
|
||||||
|
if P.lastPiece.pc then
|
||||||
|
P.gameEnv.heightLimit=4
|
||||||
|
if P.stat.pc%5==0 then
|
||||||
|
P.gameEnv.drop=math.max(P.gameEnv.drop-1,1)
|
||||||
|
end
|
||||||
|
else
|
||||||
|
P.gameEnv.heightLimit=P.gameEnv.heightLimit-P.lastPiece.row
|
||||||
|
end
|
||||||
|
if #P.field>P.gameEnv.heightLimit then
|
||||||
|
P:lose()
|
||||||
end
|
end
|
||||||
else
|
|
||||||
P.gameEnv.heightLimit=P.gameEnv.heightLimit-P.lastPiece.row
|
|
||||||
end
|
end
|
||||||
if #P.field>P.gameEnv.heightLimit then
|
}
|
||||||
P:lose()
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -4,7 +4,6 @@ return{
|
|||||||
drop=20,lock=60,
|
drop=20,lock=60,
|
||||||
fall=10,
|
fall=10,
|
||||||
freshLimit=8,
|
freshLimit=8,
|
||||||
heightLimit=4,
|
|
||||||
ospin=false,
|
ospin=false,
|
||||||
eventSet='pc_inf',
|
eventSet='pc_inf',
|
||||||
bg='rgb',bgm='moonbeam',
|
bg='rgb',bgm='moonbeam',
|
||||||
|
|||||||
Reference in New Issue
Block a user