diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-10-04 23:03:58 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-10-04 23:03:58 -0400 |
commit | 52bac73894ad0fe20d7aec907bbd7f07e83ca477 (patch) | |
tree | d7a36c160c1b5ecf1d738c5cd60cf1f388ff5196 /app/jobs | |
parent | 353b170392892a1f9bdde74550112b5131c99fd2 (diff) | |
download | pokeviewer-52bac73894ad0fe20d7aec907bbd7f07e83ca477.tar.gz pokeviewer-52bac73894ad0fe20d7aec907bbd7f07e83ca477.tar.bz2 pokeviewer-52bac73894ad0fe20d7aec907bbd7f07e83ca477.zip |
Added generic met message for Pokémon from Orre
Pokémon from Orre now display "Met in a trade" instead of an entirely incorrect met location, because we're not currently equipped to display the proper met data for them (see hatkirby/gen3uploader#6).
Diffstat (limited to 'app/jobs')
-rw-r--r-- | app/jobs/pokeviewer/extract_save_data_job.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/jobs/pokeviewer/extract_save_data_job.rb b/app/jobs/pokeviewer/extract_save_data_job.rb index 14ba9a6..f94ce74 100644 --- a/app/jobs/pokeviewer/extract_save_data_job.rb +++ b/app/jobs/pokeviewer/extract_save_data_job.rb | |||
@@ -76,7 +76,9 @@ module Pokeviewer | |||
76 | r.ot_number = param["otId"] | 76 | r.ot_number = param["otId"] |
77 | r.ot_gender = param["otGender"] | 77 | r.ot_gender = param["otGender"] |
78 | 78 | ||
79 | if param["metLevel"] == 0 | 79 | if param["orre"] |
80 | r.met_type = :orre | ||
81 | elsif param["metLevel"] == 0 | ||
80 | r.met_type = :hatched | 82 | r.met_type = :hatched |
81 | r.location_id = param["metLocation"] | 83 | r.location_id = param["metLocation"] |
82 | elsif param["metLocation"] == 254 | 84 | elsif param["metLocation"] == 254 |