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

@@ -22,7 +22,7 @@ class Battle::Battler
idxOther = (@index + 2) % 4
when 3
if @index != 2 && @index != 3 # If not in middle spot already
idxOther = ((@index % 2) == 0) ? 2 : 3
idxOther = (@index.even?) ? 2 : 3
end
end
if idxOther >= 0