More Rubocop changes

This commit is contained in:
Maruno17
2022-02-13 00:57:54 +00:00
parent cca5989746
commit f68e699cc9
108 changed files with 708 additions and 808 deletions

View File

@@ -62,7 +62,7 @@ def pbMapTree
mapinfos = pbLoadMapInfos
maplevels = []
retarray = []
mapinfos.keys.each do |i|
mapinfos.each_key do |i|
info = mapinfos[i]
level = -1
while info
@@ -98,11 +98,10 @@ def pbMapTree
end
retarray.push([maplevel[0], mapinfos[maplevel[0]].name, maplevel[1]])
(index + 1...maplevels.length).each do |i|
if maplevels[i][2] == maplevel[0]
stack.push(i)
stack.push(maplevel[0])
break
end
next if maplevels[i][2] != maplevel[0]
stack.push(i)
stack.push(maplevel[0])
break
end
end
return retarray