Fixed safelock behavior for hard drop modes

This commit is contained in:
Ishaan Bhardwaj 2020-11-10 22:34:48 -05:00
parent f7f11b0e22
commit e13278c6a8
3 changed files with 5 additions and 1 deletions

View File

@ -34,6 +34,7 @@ function MarathonA2Game:new()
} }
self.lock_drop = false self.lock_drop = false
self.lock_hard_drop = false
self.enable_hold = false self.enable_hold = false
self.next_queue_length = 1 self.next_queue_length = 1
end end
@ -151,7 +152,8 @@ function MarathonA2Game:onLineClear(cleared_row_count)
if self:qualifiesForMRoll() then self.grade = 32 end if self:qualifiesForMRoll() then self.grade = 32 end
self.roll_frames = -150 self.roll_frames = -150
end end
if self.level >= 900 then self.lock_drop = true end self.lock_drop = self.level >= 900
self.lock_hard_drop = self.level >= 900
end end
function MarathonA2Game:updateSectionTimes(old_level, new_level) function MarathonA2Game:updateSectionTimes(old_level, new_level)

View File

@ -27,6 +27,7 @@ function SurvivalA2Game:new()
} }
self.lock_drop = true self.lock_drop = true
self.lock_hard_drop = true
end end
function SurvivalA2Game:getARE() function SurvivalA2Game:getARE()

View File

@ -29,6 +29,7 @@ function SurvivalA3Game:new()
} }
self.lock_drop = true self.lock_drop = true
self.lock_hard_drop = true
self.enable_hold = true self.enable_hold = true
self.next_queue_length = 3 self.next_queue_length = 3