Resolved many Rubocop warnings

This commit is contained in:
Maruno17
2020-09-06 17:31:12 +01:00
parent 6c4670eaa3
commit 681a8331ab
137 changed files with 921 additions and 1200 deletions

View File

@@ -185,12 +185,10 @@ module PBExperience
mLevel = maxLevel
maxexp = pbGetExpInternal(mLevel,growth)
exp = maxexp if exp>maxexp
i = 0
for j in 0..mLevel
currentExp = pbGetExpInternal(i,growth)
return i if exp==currentExp
return i-1 if exp<currentExp
i += 1
for lvl in 0..mLevel
currentExp = pbGetExpInternal(lvl,growth)
return lvl if exp==currentExp
return lvl-1 if exp<currentExp
end
return mLevel
end