about summary refs log tree commit diff stats
path: root/app/jobs
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-10-04 23:09:37 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-10-04 23:09:37 -0400
commiteae1c764df31b5e5aa2a2d8315b2b5c0997babf4 (patch)
tree412387cc73d166c28fa4e0f5658bded6d4b7fbc8 /app/jobs
parent52bac73894ad0fe20d7aec907bbd7f07e83ca477 (diff)
downloadpokeviewer-eae1c764df31b5e5aa2a2d8315b2b5c0997babf4.tar.gz
pokeviewer-eae1c764df31b5e5aa2a2d8315b2b5c0997babf4.tar.bz2
pokeviewer-eae1c764df31b5e5aa2a2d8315b2b5c0997babf4.zip
Pokémon now show the Poké Ball that they're in
Also fixed a bug with viewing Pokémon that aren't in any game.
Diffstat (limited to 'app/jobs')
-rw-r--r--app/jobs/pokeviewer/extract_save_data_job.rb1
1 files changed, 1 insertions, 0 deletions
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
96 r.nature = Pokemon.nature.values[param["nature"]] 96 r.nature = Pokemon.nature.values[param["nature"]]
97 r.gender = param["gender"] 97 r.gender = param["gender"]
98 r.second_ability = param["secondAbility"] 98 r.second_ability = param["secondAbility"]
99 r.pokeball = Pokemon.pokeball.values[param["pokeball"] - 1]
99 100
100 # Handle Unown form 101 # Handle Unown form
101 if r.species_id == 201 102 if r.species_id == 201