More tweaks from the Rubocop overlord

This commit is contained in:
Maruno17
2021-12-19 17:28:59 +00:00
parent 33781493f4
commit 65b1a8d6c3
161 changed files with 2839 additions and 2967 deletions

View File

@@ -207,7 +207,7 @@ def pbSize(pkmn)
spiv = pkmn.iv[:SPEED] & 15
m = pkmn.personalID & 0xFF
n = (pkmn.personalID >> 8) & 0xFF
s = (((ativ ^ dfiv) * hpiv) ^ m) * 256 + (((saiv ^ sdiv) * spiv) ^ n)
s = ((((ativ ^ dfiv) * hpiv) ^ m) * 256) + (((saiv ^ sdiv) * spiv) ^ n)
xyz = []
if s < 10 then xyz = [ 290, 1, 0]
elsif s < 110 then xyz = [ 300, 1, 10]
@@ -225,7 +225,7 @@ def pbSize(pkmn)
elsif s < 65410 then xyz = [1500, 2, 65210]
else xyz = [1700, 1, 65510]
end
return (((s - xyz[2]) / xyz[1] + xyz[0]).floor * baseheight / 10).floor
return ((((s - xyz[2]) / xyz[1]) + xyz[0]).floor * baseheight / 10).floor
end
#===============================================================================