about summary refs log tree commit diff stats
path: root/app/jobs
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-09-25 00:05:38 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-09-25 00:05:38 -0400
commita65972d34188d14dca10193950732d506d931e8c (patch)
tree2212ac8682f97f07751370a898ad651af8b64a5b /app/jobs
parentb0dee0af0a4235eb9756532e807db5c8b701ce45 (diff)
downloadpokeviewer-a65972d34188d14dca10193950732d506d931e8c.tar.gz
pokeviewer-a65972d34188d14dca10193950732d506d931e8c.tar.bz2
pokeviewer-a65972d34188d14dca10193950732d506d931e8c.zip
Added met location data
Note that the met location for Pokémon from Orre is completely
incorrect.
Diffstat (limited to 'app/jobs')
-rw-r--r--app/jobs/pokeviewer/extract_save_data_job.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/jobs/pokeviewer/extract_save_data_job.rb b/app/jobs/pokeviewer/extract_save_data_job.rb index 3409a5f..be8f64d 100644 --- a/app/jobs/pokeviewer/extract_save_data_job.rb +++ b/app/jobs/pokeviewer/extract_save_data_job.rb
@@ -39,9 +39,16 @@ module Pokeviewer
39 39
40 if param["metLevel"] == 0 40 if param["metLevel"] == 0
41 r.met_type = :hatched 41 r.met_type = :hatched
42 r.met_location = param["metLocation"]
43 elsif param["metLocation"] == 254
44 r.met_type = :npc_trade
45 elsif param["metLocation"] == 255
46 r.met_type = :fateful_encounter
47 r.met_level = param["metLevel"]
42 else 48 else
43 r.met_type = :normal 49 r.met_type = :normal
44 r.met_level = param["metLevel"] 50 r.met_level = param["metLevel"]
51 r.met_location = param["metLocation"]
45 end 52 end
46 53
47 r.shiny = param["shiny"] 54 r.shiny = param["shiny"]