mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
More Rubocopping
This commit is contained in:
@@ -210,22 +210,22 @@ def pbSize(pkmn)
|
||||
m = pkmn.personalID & 0xFF
|
||||
n = (pkmn.personalID >> 8) & 0xFF
|
||||
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]
|
||||
elsif s < 310 then xyz = [ 400, 2, 110]
|
||||
elsif s < 710 then xyz = [ 500, 4, 310]
|
||||
elsif s < 2710 then xyz = [ 600, 20, 710]
|
||||
elsif s < 7710 then xyz = [ 700, 50, 2710]
|
||||
elsif s < 17710 then xyz = [ 800, 100, 7710]
|
||||
elsif s < 32710 then xyz = [ 900, 150, 17710]
|
||||
elsif s < 47710 then xyz = [1000, 150, 32710]
|
||||
elsif s < 57710 then xyz = [1100, 100, 47710]
|
||||
elsif s < 62710 then xyz = [1200, 50, 57710]
|
||||
elsif s < 64710 then xyz = [1300, 20, 62710]
|
||||
elsif s < 65210 then xyz = [1400, 5, 64710]
|
||||
elsif s < 65410 then xyz = [1500, 2, 65210]
|
||||
else xyz = [1700, 1, 65510]
|
||||
xyz = [1700, 1, 65510]
|
||||
case s
|
||||
when 0...10 then xyz = [ 290, 1, 0]
|
||||
when 10...110 then xyz = [ 300, 1, 10]
|
||||
when 110...310 then xyz = [ 400, 2, 110]
|
||||
when 310...710 then xyz = [ 500, 4, 310]
|
||||
when 710...2710 then xyz = [ 600, 20, 710]
|
||||
when 2710...7710 then xyz = [ 700, 50, 2710]
|
||||
when 7710...17710 then xyz = [ 800, 100, 7710]
|
||||
when 17710...32710 then xyz = [ 900, 150, 17710]
|
||||
when 32710...47710 then xyz = [1000, 150, 32710]
|
||||
when 47710...57710 then xyz = [1100, 100, 47710]
|
||||
when 57710...62710 then xyz = [1200, 50, 57710]
|
||||
when 62710...64710 then xyz = [1300, 20, 62710]
|
||||
when 64710...65210 then xyz = [1400, 5, 64710]
|
||||
when 65210...65410 then xyz = [1500, 2, 65210]
|
||||
end
|
||||
return ((((s - xyz[2]) / xyz[1]) + xyz[0]).floor * baseheight / 10).floor
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user