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.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/jobs/pokeviewer/extract_save_data_job.rb b/app/jobs/pokeviewer/extract_save_data_job.rb index 193bd73..e4f3ae2 100644 --- a/app/jobs/pokeviewer/extract_save_data_job.rb +++ b/app/jobs/pokeviewer/extract_save_data_job.rb
@@ -27,8 +27,14 @@ module Pokeviewer
27 r.species_id = param["species"] 27 r.species_id = param["species"]
28 r.ot_name = param["otName"] 28 r.ot_name = param["otName"]
29 r.ot_number = param["otId"] 29 r.ot_number = param["otId"]
30 r.met_type = :normal 30
31 r.met_level = param["metLevel"] 31 if param["metLevel"] == 0
32 r.met_type = :hatched
33 else
34 r.met_type = :normal
35 r.met_level = param["metLevel"]
36 end
37
32 r.shiny = param["shiny"] 38 r.shiny = param["shiny"]
33 r.nature = Pokemon.nature.values[param["nature"]] 39 r.nature = Pokemon.nature.values[param["nature"]]
34 r.gender = param["gender"] 40 r.gender = param["gender"]