mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 11:49:02 -06:00
Made it so that level 900 no longer displays 1000 on the bottom where it should display 999.
This commit is contained in:
parent
956e826bb2
commit
5a1b137c2a
@ -144,7 +144,7 @@ function IntervalTrainingGame:drawScoringInfo()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function IntervalTrainingGame:getSectionEndLevel()
|
function IntervalTrainingGame:getSectionEndLevel()
|
||||||
if self.level > 900 then return 999
|
if self.level >= 900 then return 999
|
||||||
else return math.floor(self.level / 100 + 1) * 100 end
|
else return math.floor(self.level / 100 + 1) * 100 end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -208,7 +208,7 @@ function MarathonA1Game:drawScoringInfo()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function MarathonA1Game:getSectionEndLevel()
|
function MarathonA1Game:getSectionEndLevel()
|
||||||
if self.level > 900 then return 999
|
if self.level >= 900 then return 999
|
||||||
else return math.floor(self.level / 100 + 1) * 100 end
|
else return math.floor(self.level / 100 + 1) * 100 end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -352,7 +352,7 @@ function MarathonA2Game:getHighscoreData()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function MarathonA2Game:getSectionEndLevel()
|
function MarathonA2Game:getSectionEndLevel()
|
||||||
if self.level > 900 then return 999
|
if self.level >= 900 then return 999
|
||||||
else return math.floor(self.level / 100 + 1) * 100 end
|
else return math.floor(self.level / 100 + 1) * 100 end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -423,7 +423,7 @@ function MarathonA3Game:getHighscoreData()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function MarathonA3Game:getSectionEndLevel()
|
function MarathonA3Game:getSectionEndLevel()
|
||||||
if self.level > 900 then return 999
|
if self.level >= 900 then return 999
|
||||||
else return math.floor(self.level / 100 + 1) * 100 end
|
else return math.floor(self.level / 100 + 1) * 100 end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -181,7 +181,7 @@ function PhantomManiaGame:drawScoringInfo()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function PhantomManiaGame:getSectionEndLevel()
|
function PhantomManiaGame:getSectionEndLevel()
|
||||||
if self.level > 900 then return 999
|
if self.level >= 900 then return 999
|
||||||
else return math.floor(self.level / 100 + 1) * 100 end
|
else return math.floor(self.level / 100 + 1) * 100 end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -182,7 +182,7 @@ function PhantomManiaGame:drawScoringInfo()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function PhantomManiaGame:getSectionEndLevel()
|
function PhantomManiaGame:getSectionEndLevel()
|
||||||
if self.level > 900 then return 999
|
if self.level >= 900 then return 999
|
||||||
else return math.floor(self.level / 100 + 1) * 100 end
|
else return math.floor(self.level / 100 + 1) * 100 end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ function SurvivalA1Game:drawScoringInfo()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function SurvivalA1Game:getSectionEndLevel()
|
function SurvivalA1Game:getSectionEndLevel()
|
||||||
if self.level > 900 then return 999
|
if self.level >= 900 then return 999
|
||||||
else return math.floor(self.level / 100 + 1) * 100 end
|
else return math.floor(self.level / 100 + 1) * 100 end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -148,7 +148,7 @@ end
|
|||||||
|
|
||||||
function SurvivalA2Game:getSectionEndLevel()
|
function SurvivalA2Game:getSectionEndLevel()
|
||||||
if self.clear then return self.level
|
if self.clear then return self.level
|
||||||
elseif self.level > 900 then return 999
|
elseif self.level >= 900 then return 999
|
||||||
else return math.floor(self.level / 100 + 1) * 100 end
|
else return math.floor(self.level / 100 + 1) * 100 end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user