From 2405727d7d62fce31102520167cde42ee688c198 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 24 Sep 2017 11:23:27 -0400 Subject: Started working on UI This commit imports a lot of assets from veekun, as well as a font from http://www.victoryroad.net/showthread.php?t=1507 --- app/jobs/pokeviewer/extract_save_data_job.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'app/jobs') 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 r.species_id = param["species"] r.ot_name = param["otName"] r.ot_number = param["otId"] - r.met_type = :normal - r.met_level = param["metLevel"] + + if param["metLevel"] == 0 + r.met_type = :hatched + else + r.met_type = :normal + r.met_level = param["metLevel"] + end + r.shiny = param["shiny"] r.nature = Pokemon.nature.values[param["nature"]] r.gender = param["gender"] -- cgit 1.4.1