mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
Added more stats, added script variables, fixed AI thinking Wonder Guard provides total immunity, releasing a Pokémon puts its held item in the Bag, tweaked new map Compiler
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user