Merge branch 'dev' into ui-redesign

This commit is contained in:
Maruno17
2024-09-20 21:30:46 +01:00
15 changed files with 168 additions and 39 deletions

View File

@@ -334,9 +334,12 @@ module BattleCreationHelperMethods
when Battle::Outcome::WIN, Battle::Outcome::CATCH
$stats.wild_battles_won += 1 if !trainer_battle
$stats.trainer_battles_won += 1 if trainer_battle
when Battle::Outcome::LOSE, Battle::Outcome::FLEE, Battle::Outcome::DRAW
when Battle::Outcome::LOSE, Battle::Outcome::DRAW
$stats.wild_battles_lost += 1 if !trainer_battle
$stats.trainer_battles_lost += 1 if trainer_battle
when Battle::Outcome::FLEE
$stats.wild_battles_fled += 1 if !trainer_battle
$stats.trainer_battles_lost += 1 if trainer_battle
end
pbSet(outcome_variable, outcome)
end