修改挖掘10行评级条件和统计数据
This commit is contained in:
1
main.lua
1
main.lua
@@ -426,6 +426,7 @@ do
|
|||||||
end
|
end
|
||||||
if RANKS.bigbang then fs.remove('record/bigbang.rec') end
|
if RANKS.bigbang then fs.remove('record/bigbang.rec') end
|
||||||
if RANKS.clearRush then fs.remove('record/clearRush.rec') end
|
if RANKS.clearRush then fs.remove('record/clearRush.rec') end
|
||||||
|
if STAT.version<1715 then fs.remove('record/dig_quad_10l.rec') end
|
||||||
|
|
||||||
if STAT.version~=VERSION.code then
|
if STAT.version~=VERSION.code then
|
||||||
for k,v in next,MODE_UPDATE_MAP do
|
for k,v in next,MODE_UPDATE_MAP do
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
return {
|
return {
|
||||||
env={
|
env={
|
||||||
pushSpeed=6,
|
|
||||||
lock=1e99, infHold=true,
|
lock=1e99, infHold=true,
|
||||||
bg='bg1',bgm='way',
|
bg='bg2',bgm='way',
|
||||||
mesDisp=function(P)
|
mesDisp=function(P)
|
||||||
setFont(55)
|
setFont(55)
|
||||||
GC.mStr(10-P.stat.dig_quad,63,265)
|
GC.mStr(10-P.stat.dig_quad,63,265)
|
||||||
@@ -11,39 +10,38 @@ return {
|
|||||||
if P.lastPiece.row>0 and P.lastPiece.row<4 then
|
if P.lastPiece.row>0 and P.lastPiece.row<4 then
|
||||||
P:lose()
|
P:lose()
|
||||||
else
|
else
|
||||||
P.stat.dig_quad = P.stat.dig
|
P.stat.dig_quad=P.stat.dig
|
||||||
end
|
end
|
||||||
if P.stat.dig==10 then
|
if P.stat.dig==10 then
|
||||||
P:win('finish')
|
P:win('finish')
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
task=function(P)
|
task=function(P)
|
||||||
local last = -1
|
local last=-1
|
||||||
for _=1,10 do
|
for _=1,10 do
|
||||||
local garbage = last
|
local garbage=last
|
||||||
repeat
|
repeat
|
||||||
garbage = P:getHolePos()
|
garbage=P:getHolePos()
|
||||||
until garbage ~= last
|
until garbage~=last
|
||||||
last = garbage
|
last=garbage
|
||||||
P:garbageRise(21,1,garbage)
|
P:garbageRise(21,1,garbage)
|
||||||
end
|
end
|
||||||
P.fieldBeneath=0
|
P.fieldBeneath=0
|
||||||
P.stat.dig_quad = 0
|
P.stat.dig_quad=0
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
score=function(P) return {P.stat.dig_quad,P.stat.piece} end,
|
score=function(P) return {P.stat.dig_quad,P.stat.time} end,
|
||||||
scoreDisp=function(D) return D[1].." Techrash "..D[2].." Pieces" end,
|
scoreDisp=function(D) return D[1].." Techrash "..STRING.time(D[2]) end,
|
||||||
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
|
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
|
||||||
getRank=function(P)
|
getRank=function(P)
|
||||||
local dig = P.stat.dig_quad
|
local dig=P.stat.dig_quad
|
||||||
local piece = P.stat.piece
|
if dig<=1 then return end
|
||||||
if dig < 4 then return end
|
|
||||||
return
|
return
|
||||||
dig < 7 and 0 or
|
dig==10 and 5 or
|
||||||
dig < 10 and 1 or
|
dig>=7 and 4 or
|
||||||
piece > 103 and 2 or
|
dig>=5 and 3 or
|
||||||
piece > 92 and 3 or
|
dig>=3 and 2 or
|
||||||
piece > 81 and 4 or
|
dig>=2 and 1 or
|
||||||
5
|
0
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user