Merge pull request #64 from hebo-MAI/master

fix the bug hanging up when starting M-roll
This commit is contained in:
Ishaan Bhardwaj 2023-07-01 22:22:04 -04:00 committed by GitHub
commit e34005093c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -249,12 +249,15 @@ local grade_conversion = {
}
function MarathonA2Game:whilePieceActive()
if self.clear then return
else
self.grade_point_decay_counter = self.grade_point_decay_counter + 1
if self.grade_point_decay_counter >= grade_point_decays[self.grade + 1] then
self.grade_point_decay_counter = 0
self.grade_points = math.max(0, self.grade_points - 1)
end
end
end
function MarathonA2Game:updateGrade(cleared_lines)
if self.clear or cleared_lines == 0 then return