Fix rank display bug in Construct modes
This commit is contained in:
@@ -57,7 +57,7 @@ return {
|
|||||||
gc_setColor(COLOR.lX)
|
gc_setColor(COLOR.lX)
|
||||||
setFont(20)
|
setFont(20)
|
||||||
GC.mStr(text.highest:repD(getConstructGrade(D.maxRankPts)),63,216)
|
GC.mStr(text.highest:repD(getConstructGrade(D.maxRankPts)),63,216)
|
||||||
GC.mStr(text.highest:repD(D.maxRankPts+1),63,336)
|
GC.mStr(text.highest:repD(D.maxRankPts-1),63,336)
|
||||||
end
|
end
|
||||||
|
|
||||||
if not D.showGuide then return end
|
if not D.showGuide then return end
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ return {
|
|||||||
gc_setColor(COLOR.lX)
|
gc_setColor(COLOR.lX)
|
||||||
setFont(20)
|
setFont(20)
|
||||||
GC.mStr(text.highest:repD(getConstructGrade(D.maxRankPts)),63,216)
|
GC.mStr(text.highest:repD(getConstructGrade(D.maxRankPts)),63,216)
|
||||||
GC.mStr(text.highest:repD(D.maxRankPts+1),63,336)
|
GC.mStr(text.highest:repD(D.maxRankPts-1),63,336)
|
||||||
end
|
end
|
||||||
|
|
||||||
if not D.showGuide then return end
|
if not D.showGuide then return end
|
||||||
@@ -108,7 +108,11 @@ return {
|
|||||||
generateGuide(10,D.mirror)
|
generateGuide(10,D.mirror)
|
||||||
end,
|
end,
|
||||||
hook_drop=function(P)
|
hook_drop=function(P)
|
||||||
|
local oldPts=P.modeData.rankPts
|
||||||
calculateRankPts(P)
|
calculateRankPts(P)
|
||||||
|
if oldPts>P.modeData.rankPts+2 then
|
||||||
|
P:_showText("REGRET!!",0,-120,80,'beat',.8)
|
||||||
|
end
|
||||||
generateGuide(#P.field+10,P.modeData.mirror)
|
generateGuide(#P.field+10,P.modeData.mirror)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ return {
|
|||||||
gc_setColor(COLOR.lX)
|
gc_setColor(COLOR.lX)
|
||||||
setFont(20)
|
setFont(20)
|
||||||
GC.mStr(text.highest:repD(getConstructGrade(D.maxRankPts)),63,216)
|
GC.mStr(text.highest:repD(getConstructGrade(D.maxRankPts)),63,216)
|
||||||
GC.mStr(text.highest:repD(D.maxRankPts+1),63,336)
|
GC.mStr(text.highest:repD(D.maxRankPts-1),63,336)
|
||||||
end
|
end
|
||||||
|
|
||||||
if not D.showGuide then return end
|
if not D.showGuide then return end
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ return {
|
|||||||
eventSet='construct_invsg',
|
eventSet='construct_invsg',
|
||||||
bg='bg2',bgm='race',
|
bg='bg2',bgm='race',
|
||||||
},
|
},
|
||||||
score=function(P) return {P.modeData.rankPts,P.stat.piece} end,
|
score=function(P) return {P.modeData.maxRankPts,P.stat.piece} end,
|
||||||
scoreDisp=function(D) return getConstructGradeText(D[1]).." "..D[2].." Pieces" end,
|
scoreDisp=function(D) return getConstructGradeText(D[1]).." "..D[2].." Pieces" 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)
|
||||||
|
|||||||
Reference in New Issue
Block a user