From eae1c764df31b5e5aa2a2d8315b2b5c0997babf4 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 4 Oct 2017 23:09:37 -0400 Subject: Pokémon now show the Poké Ball that they're in MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also fixed a bug with viewing Pokémon that aren't in any game. --- app/jobs/pokeviewer/extract_save_data_job.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/jobs') diff --git a/app/jobs/pokeviewer/extract_save_data_job.rb b/app/jobs/pokeviewer/extract_save_data_job.rb index f94ce74..e9e0231 100644 --- a/app/jobs/pokeviewer/extract_save_data_job.rb +++ b/app/jobs/pokeviewer/extract_save_data_job.rb @@ -96,6 +96,7 @@ module Pokeviewer r.nature = Pokemon.nature.values[param["nature"]] r.gender = param["gender"] r.second_ability = param["secondAbility"] + r.pokeball = Pokemon.pokeball.values[param["pokeball"] - 1] # Handle Unown form if r.species_id == 201 -- cgit 1.4.1