mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 08:59:02 -06:00
Made Survival A2/A3 torikans stop your game instead of giving an end roll
This commit is contained in:
parent
cdf6b5cf33
commit
78dcfe43c4
@ -98,6 +98,9 @@ function SurvivalA2Game:onLineClear(cleared_row_count)
|
||||
local new_level = math.min(self.level + cleared_row_count, 999)
|
||||
if self.level == 999 or self:hitTorikan(self.level, new_level) then
|
||||
self.clear = true
|
||||
if self.level < 999 then
|
||||
self.game_over = true
|
||||
end
|
||||
else
|
||||
self.level = new_level
|
||||
end
|
||||
@ -121,7 +124,8 @@ end
|
||||
|
||||
function SurvivalA2Game:getLetterGrade()
|
||||
if self.level >= 999 then return "GM"
|
||||
elseif self.level >= 500 then return "M"
|
||||
elseif self.level > 500 then return "M"
|
||||
elseif self.level == 500 and not self.clear then return "M"
|
||||
else return "" end
|
||||
end
|
||||
|
||||
|
@ -147,13 +147,15 @@ function SurvivalA3Game:onLineClear(cleared_row_count)
|
||||
local new_level = self.level + cleared_row_levels[cleared_row_count]
|
||||
self:updateSectionTimes(self.level, new_level)
|
||||
if new_level >= 1300 or self:hitTorikan(self.level, new_level) then
|
||||
self.clear = true
|
||||
if new_level >= 1300 then
|
||||
self.level = 1300
|
||||
self.grid:clear()
|
||||
self.big_mode = true
|
||||
self.roll_frames = -150
|
||||
else
|
||||
self.game_over = true
|
||||
end
|
||||
self.clear = true
|
||||
self.grid:clear()
|
||||
self.big_mode = true
|
||||
self.roll_frames = -150
|
||||
else
|
||||
self.level = math.min(new_level, 1300)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user