Added stat for cancelled evolutions

This commit is contained in:
Maruno17
2021-11-13 23:16:22 +00:00
parent c6ecf60172
commit 46a92a33ef
2 changed files with 3 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ class GameStats
attr_accessor :lottery_prize_count # Times won any prize at all attr_accessor :lottery_prize_count # Times won any prize at all
# Pokémon # Pokémon
attr_accessor :eggs_hatched attr_accessor :eggs_hatched
attr_accessor :evolution_count # Doesn't count cancelled evolutions attr_accessor :evolution_count, :evolutions_cancelled
attr_accessor :trade_count attr_accessor :trade_count
attr_accessor :moves_taught_by_item, :moves_taught_by_tutor, :moves_taught_by_reminder attr_accessor :moves_taught_by_item, :moves_taught_by_tutor, :moves_taught_by_reminder
attr_accessor :day_care_deposits, :day_care_levels_gained attr_accessor :day_care_deposits, :day_care_levels_gained
@@ -96,6 +96,7 @@ class GameStats
# Pokémon # Pokémon
@eggs_hatched = 0 @eggs_hatched = 0
@evolution_count = 0 @evolution_count = 0
@evolutions_cancelled = 0
@trade_count = 0 @trade_count = 0
@moves_taught_by_item = 0 @moves_taught_by_item = 0
@moves_taught_by_tutor = 0 @moves_taught_by_tutor = 0

View File

@@ -558,6 +558,7 @@ class PokemonEvolutionScene
end while metaplayer1.playing? && metaplayer2.playing? end while metaplayer1.playing? && metaplayer2.playing?
pbFlashInOut(canceled,oldstate,oldstate2) pbFlashInOut(canceled,oldstate,oldstate2)
if canceled if canceled
$stats.evolutions_cancelled += 1
pbMessageDisplay(@sprites["msgwindow"], pbMessageDisplay(@sprites["msgwindow"],
_INTL("Huh? {1} stopped evolving!",@pokemon.name)) { pbUpdate } _INTL("Huh? {1} stopped evolving!",@pokemon.name)) { pbUpdate }
else else