More aligning of code

This commit is contained in:
Maruno17
2021-12-19 12:19:08 +00:00
parent 13a238cc6a
commit 33781493f4
121 changed files with 977 additions and 838 deletions

View File

@@ -295,10 +295,10 @@ def pbWriteCup(id, rules)
cmd = 0
if trlists.length != 0
cmd = pbMessage(_INTL("Generate Pokémon teams for this challenge?"),
[_INTL("NO"), _INTL("YES, USE EXISTING"), _INTL("YES, USE NEW")], 1)
[_INTL("NO"), _INTL("YES, USE EXISTING"), _INTL("YES, USE NEW")], 1)
else
cmd = pbMessage(_INTL("Generate Pokémon teams for this challenge?"),
[_INTL("YES"), _INTL("NO")], 2)
[_INTL("YES"), _INTL("NO")], 2)
case cmd
when 0
cmd = 2

View File

@@ -342,8 +342,9 @@ def pbDecideWinnerScore(party0, party1, rating)
for move in party0[i].moves
next if !move
for j in 0...party1.length
score += pbDecideWinnerEffectiveness(move.id,
types1[j], types2[j], abilities[j], [-16, -8, 0, 4, 12, 20])
score += pbDecideWinnerEffectiveness(
move.id, types1[j], types2[j], abilities[j], [-16, -8, 0, 4, 12, 20]
)
end
end
basestatsum = baseStatTotal(party0[i].species)