修改GM模式的名称和段位名以及修改连带内容,加高成绩上限,修复一个旧版本存档转换错误

This commit is contained in:
MrZ626
2021-03-23 14:40:42 +08:00
parent 078d8bd4e5
commit b3418e8d90
11 changed files with 37 additions and 37 deletions

View File

@@ -1,13 +1,14 @@
local int,min=math.floor,math.min
local sectionName={"M7","M8","M9","M","MK","MV","MO","MM","GM"}
local sectionName={"D","C","B","A","A+","S-","S","S+","SS","SS","SS","U","U","U","X"}
local function score(P)
--If Less then MM
if P.modeData.point<70 then
if P.modeData.rankScore<130 then
local R=#P.clearedRow
if R==0 then return end
if R==4 then R=10 end
P.modeData.point=P.modeData.point+R
P.modeData.event=sectionName[int(P.modeData.point*.1)+1]
if R>0 then
if R==4 then R=10 end--Techrash bonus
P.modeData.rankScore=min(P.modeData.rankScore+R,120)
P.modeData.rankName=sectionName[int(P.modeData.rankScore/10)+1]
end
end
end
@@ -23,11 +24,13 @@ return{
freshLimit=15,
dropPiece=score,
task=function(P)
P.modeData.rankScore=0
P.modeData.rankName=sectionName[1]
while true do
YIELD()
if P.stat.time>=53.5 then
P.modeData.point=min(P.modeData.point+16,80)
P.modeData.event=sectionName[int(P.modeData.point*.1)+1]
if P.stat.frame>=3600 then
P.modeData.rankScore=min(P.modeData.rankScore+16,140)
P.modeData.rankName=sectionName[int(P.modeData.rankScore*.1)+1]
P:win("finish")
return
end
@@ -38,23 +41,22 @@ return{
slowMark=true,
load=function()
PLY.newPlayer(1)
PLAYERS[1].modeData.event="M7"
end,
mesDisp=function(P)
mText(drawableText.line,69,300)
mText(drawableText.techrash,69,420)
mText(drawableText.grade,69,170)
setFont(55)
mStr(P.modeData.event,69,110)
mStr(P.modeData.rankName,69,110)
setFont(75)
mStr(P.stat.row,69,220)
mStr(P.stat.clears[4],69,340)
end,
score=function(P)return{P.modeData.point,P.stat.score}end,
score=function(P)return{P.modeData.rankScore,P.stat.score}end,
scoreDisp=function(D)return sectionName[int(D[1]*.1)+1].." "..D[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)
P=P.modeData.point
return P==80 and 5 or P>=70 and 4 or P>=60 and 3 or P>=40 and 2 or P>=20 and 1 or P>=5 and 0
P=P.modeData.rankScore
return P==140 and 5 or P>=110 and 4 or P>=80 and 3 or P>=50 and 2 or P>=30 and 1 or P>=10 and 0
end,
}