about summary refs log tree commit diff stats
path: root/app/jobs
diff options
context:
space:
mode:
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"]