Code tidying with Rubocop

This commit is contained in:
Maruno17
2023-07-18 22:42:10 +01:00
parent 6053363715
commit a5734eaf46
68 changed files with 276 additions and 232 deletions

View File

@@ -185,7 +185,8 @@ class RPG::Animation
self.timings.push(timing)
end
def addAnimation(otherAnim, frame, x, y) # frame is zero-based
# frame is zero-based.
def addAnimation(otherAnim, frame, x, y)
if frame + otherAnim.frames.length >= self.frames.length
totalframes = frame + otherAnim.frames.length + 1
(totalframes - self.frames.length).times do