Apply V2.2 patch

This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-04-28 22:28:56 +07:00
parent dbbc73546c
commit 776e6ec87e
6 changed files with 74 additions and 44 deletions

View File

@@ -164,7 +164,6 @@ function GameMode:readHiScores()
end
function GameMode:updateGradeHistory()
promo_string = ""
if self.grade_score >= self.promo_table[self.grade] then
if (self.grade == 28 and self.grade_history[2] < 4) or self.grade < 28 then self.grade_history[2] = self.grade_history[2] + 1 end
self.point_flash = 60
@@ -201,14 +200,13 @@ function GameMode:updateGradeHistory()
self.grade_history[2] = 2
end
self.grade_history[4] = self.grade_history[4] + 1
return promo_string
end
function GameMode:updateHiScores()
self:readHiScores()
hiscore_pos = {0,0}
i = 2
score_position = -1
local hiscore_pos = {0,0}
local i = 2
local score_position = -1
while i <= 10 do
if score_position == -1 and self.hi_scores[i] < self.grade_score then
score_position = i
@@ -556,7 +554,6 @@ function GameMode:stackQualityCheck()
end
function GameMode:doStackQuality()
local total_speed = 0
local contiguous_holes = self:stackQualityCheck()
local total_speed = 0
if contiguous_holes > self.last_holes then
@@ -708,7 +705,9 @@ function GameMode:onGameOver()
if not self.input_playback and not self.training and not PENTO_MODE then
if not self.did_grades then
self.grade_score = self.grade_score + self.speed_level
promo_string = self:updateGradeHistory()
if #self.speed_table >= 49 then
self:updateGradeHistory()
end
hiscore_pos = self:updateHiScores()
bitser.dumpLoveFile(SAVE_DIR..self.player_name.."_grade_history.sav", self.grade_history)
self.did_grades = true
@@ -728,7 +727,7 @@ function GameMode:drawEndScoringInfo()
if not PENTO_MODE then
drawText("Best scores:", 247, 220, 1000, "left")
i = 2
local i = 2
while i <= 10 do
if i == hiscore_pos[1] or i == hiscore_pos[2] then
drawText(self.hi_scores[i-1]..' - '..self.hi_scores[i], 255, 220+(i*10), 1000, "left", {0,1,0,1})