C99 improvements

This commit is contained in:
Ishaan Bhardwaj 2021-01-13 10:53:08 -05:00
parent c0a0daeec8
commit 7ff68fd878

View File

@ -140,10 +140,6 @@ function MarathonC99Game:startLeftDAS()
end
end
function MarathonC99Game:onSoftDrop(dropped_row_count)
self.score = self.score + dropped_row_count
end
function MarathonC99Game:advanceOneFrame(inputs, ruleset)
if self.clear then
if self.level == 17 then
@ -153,18 +149,17 @@ function MarathonC99Game:advanceOneFrame(inputs, ruleset)
self.completed = true
end
end
if inputs.rotate_right or inputs.rotate_right2 or
(inputs.rotate_180 and ruleset:get180RotationValue() ~= 3)
and self.piece ~= nil then
self.ccw_bonus = 0
end
elseif self.ready_frames == 0 then
self.frames = self.frames + 1
end
if self.piece ~= nil then
if inputs.rotate_right or inputs.rotate_right2 or
(inputs.rotate_180 and ruleset:get180RotationValue() ~= 3)
and self.piece ~= nil then
(inputs.rotate_180 and ruleset:get180RotationValue() ~= 3) then
self.ccw_bonus = 0
end
if inputs.down then
self.score = self.score + 1
end
end
end