about summary refs log tree commit diff stats
path: root/app/jobs
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-10-03 15:11:00 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-10-03 15:11:00 -0400
commitb618e52428bb659cb1fe3bdbe3d3763d48b4556c (patch)
tree58446ae6883c4257013bc93375cfd668720bce95 /app/jobs
parent34830f2e96e4213e8acb10ea457244c7523aeb5a (diff)
downloadpokeviewer-b618e52428bb659cb1fe3bdbe3d3763d48b4556c.tar.gz
pokeviewer-b618e52428bb659cb1fe3bdbe3d3763d48b4556c.tar.bz2
pokeviewer-b618e52428bb659cb1fe3bdbe3d3763d48b4556c.zip
Made "met location" into an actual association
Diffstat (limited to 'app/jobs')
-rw-r--r--app/jobs/pokeviewer/extract_save_data_job.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/jobs/pokeviewer/extract_save_data_job.rb b/app/jobs/pokeviewer/extract_save_data_job.rb index 546e6d2..99d71f1 100644 --- a/app/jobs/pokeviewer/extract_save_data_job.rb +++ b/app/jobs/pokeviewer/extract_save_data_job.rb
@@ -69,7 +69,7 @@ module Pokeviewer
69 69
70 if param["metLevel"] == 0 70 if param["metLevel"] == 0
71 r.met_type = :hatched 71 r.met_type = :hatched
72 r.met_location = param["metLocation"] 72 r.location_id = param["metLocation"]
73 elsif param["metLocation"] == 254 73 elsif param["metLocation"] == 254
74 r.met_type = :npc_trade 74 r.met_type = :npc_trade
75 elsif param["metLocation"] == 255 75 elsif param["metLocation"] == 255
@@ -78,7 +78,7 @@ module Pokeviewer
78 else 78 else
79 r.met_type = :normal 79 r.met_type = :normal
80 r.met_level = param["metLevel"] 80 r.met_level = param["metLevel"]
81 r.met_location = param["metLocation"] 81 r.location_id = param["metLocation"]
82 end 82 end
83 83
84 r.shiny = param["shiny"] 84 r.shiny = param["shiny"]