mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-12 15:44:57 +00:00
More aligning of code
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user