Many more Rubocop-inspired code improvements

This commit is contained in:
Maruno17
2021-12-18 19:06:22 +00:00
parent d17fc40a47
commit 13a238cc6a
107 changed files with 651 additions and 652 deletions

View File

@@ -83,7 +83,7 @@ def pbHiddenMoveAnimation(pokemon)
15.times do |i|
strobe = BitmapSprite.new(26 * 2, 8 * 2, viewport)
strobe.bitmap.blt(0, 0, strobebitmap.bitmap, Rect.new(0, (i % 2) * 8 * 2, 26 * 2, 8 * 2))
strobe.z = ((i % 2) == 0 ? 2 : 0)
strobe.z = (i.even? ? 2 : 0)
strobe.visible = false
strobes.push(strobe)
end