Added decent spacing to all scripts thanks to Rubocop

This commit is contained in:
Maruno17
2021-12-18 15:25:40 +00:00
parent f7b76ae62e
commit d17fc40a47
207 changed files with 18577 additions and 18587 deletions

View File

@@ -211,9 +211,9 @@ def pbGenerateChallenge(rule, tag)
for j in 0...teams[i].length
party.push(teams[i][j])
end
teams[i] = RuledTeam.new(party,rule)
teams[i] = RuledTeam.new(party, rule)
elsif teams[i].rating < toolowrating
teams[i] = RuledTeam.new(party,rule)
teams[i] = RuledTeam.new(party, rule)
end
i += 1
end

View File

@@ -49,7 +49,7 @@ class RuledTeam
(@totalGames || 0) + self.games
end
def addMatch(other,score)
def addMatch(other, score)
@history.addMatch(other.ratingData, score)
end
@@ -309,7 +309,7 @@ def pbDecideWinnerEffectiveness(move, otype1, otype2, ability, scores)
data = GameData::Move.get(move)
return 0 if data.base_damage == 0
atype = data.type
typemod = Effectiveness::NORMAL_EFFECTIVE_ONE ** 2
typemod = Effectiveness::NORMAL_EFFECTIVE_ONE**2
if ability != :LEVITATE || data.type != :GROUND
mod1 = Effectiveness.calculate_one(atype, otype1)
mod2 = (otype1 == otype2) ? Effectiveness::NORMAL_EFFECTIVE_ONE : Effectiveness.calculate_one(atype, otype2)