mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
Lots of rubocop
This commit is contained in:
@@ -390,12 +390,10 @@ class WildBattle
|
||||
$game_temp.clear_battle_rules
|
||||
# Perform the battle itself
|
||||
outcome = 0
|
||||
pbBattleAnimation(pbGetWildBattleBGM(foe_party), (foe_party.length == 1) ? 0 : 2, foe_party) {
|
||||
pbSceneStandby {
|
||||
outcome = battle.pbStartBattle
|
||||
}
|
||||
pbBattleAnimation(pbGetWildBattleBGM(foe_party), (foe_party.length == 1) ? 0 : 2, foe_party) do
|
||||
pbSceneStandby { outcome = battle.pbStartBattle }
|
||||
BattleCreationHelperMethods.after_battle(outcome, can_lose)
|
||||
}
|
||||
end
|
||||
Input.update
|
||||
# Save the result of the battle in a Game Variable (1 by default)
|
||||
BattleCreationHelperMethods.set_outcome(outcome, outcome_variable)
|
||||
@@ -512,12 +510,10 @@ class TrainerBattle
|
||||
$game_temp.clear_battle_rules
|
||||
# Perform the battle itself
|
||||
outcome = 0
|
||||
pbBattleAnimation(pbGetTrainerBattleBGM(foe_trainers), (battle.singleBattle?) ? 1 : 3, foe_trainers) {
|
||||
pbSceneStandby {
|
||||
outcome = battle.pbStartBattle
|
||||
}
|
||||
pbBattleAnimation(pbGetTrainerBattleBGM(foe_trainers), (battle.singleBattle?) ? 1 : 3, foe_trainers) do
|
||||
pbSceneStandby { outcome = battle.pbStartBattle }
|
||||
BattleCreationHelperMethods.after_battle(outcome, can_lose)
|
||||
}
|
||||
end
|
||||
Input.update
|
||||
# Save the result of the battle in a Game Variable (1 by default)
|
||||
BattleCreationHelperMethods.set_outcome(outcome, outcome_variable, true)
|
||||
|
||||
Reference in New Issue
Block a user