import UIKit
import CoreData

class ImportUltramanZ: ImportProtocol {
var moc: NSManagedObjectContext

required init(viewContext: NSManagedObjectContext) {
moc = viewContext
}

func importDIM() {
// MARK: - DIM
let dim = addDIM(name: "Ultraman Z", franchise: "Ultraman", imageName: "UltramanZ-Header", dimType: "Vital Bracelet/Hero", id: "70", eggImage: "UltramanZ-Egg", dimImage: "UltramanZ-DIM")

// MARK: - Digimon
// MARK: - Stage 1
let light = addDigimon(name: "Light", dim: dim, stage: 1, imageName: "light", imageNameSplash: "light-splash", type: free, activityType: "Normal", characterID: 0)

// MARK: - Stage 2
let light = addDigimon(name: "Light", dim: dim, stage: 2, imageName: "light", imageNameSplash: "light-splash", type: free, activityType: "Normal", characterID: 1)

// MARK: - Stage 3
let z_original = addDigimon(name: "Z Original", dim: dim, stage: 3, imageName: "z_original", imageNameSplash: "z_original-splash", type: data, activityType: "Normal", characterID: 2)

// MARK: - Stage 4
let geed_galaxy_rising = addDigimon(name: "Geed Galaxy Rising", dim: dim, stage: 4, imageName: "geed_galaxy_rising", imageNameSplash: "geed_galaxy_rising-splash", type: data, activityType: "Indoor", characterID: 6)
let z_alpha_edge = addDigimon(name: "Z Alpha Edge", dim: dim, stage: 4, imageName: "z_alpha_edge", imageNameSplash: "z_alpha_edge-splash", type: virus, activityType: "Normal", characterID: 3)
let z_beta_smash = addDigimon(name: "Z Beta Smash", dim: dim, stage: 4, imageName: "z_beta_smash", imageNameSplash: "z_beta_smash-splash", type: vaccine, activityType: "Stotic", characterID: 4)
let z_gamma_future = addDigimon(name: "Z Gamma Future", dim: dim, stage: 4, imageName: "z_gamma_future", imageNameSplash: "z_gamma_future-splash", type: data, activityType: "Active", characterID: 5)

// MARK: - Stage 5
let beliarok = addDigimon(name: "Beliarok", dim: dim, stage: 5, imageName: "beliarok", imageNameSplash: "beliarok-splash", type: free, activityType: "Indoor", characterID: 10)
let geed_tetrite_cross = addDigimon(name: "Geed Tetrite Cross", dim: dim, stage: 5, imageName: "geed_tetrite_cross", imageNameSplash: "geed_tetrite_cross-splash", type: data, activityType: "Active", characterID: 11)
let z_beta_smash_z_lance_arrow = addDigimon(name: "Z Beta Smash (Z Lance Arrow)", dim: dim, stage: 5, imageName: "z_beta_smash_z_lance_arrow", imageNameSplash: "z_beta_smash_z_lance_arrow-splash", type: vaccine, activityType: "Stotic", characterID: 8)
let z_gamma_future_z_lance_arrow = addDigimon(name: "Z Gamma Future (Z Lance Arrow)", dim: dim, stage: 5, imageName: "z_gamma_future_z_lance_arrow", imageNameSplash: "z_gamma_future_z_lance_arrow-splash", type: data, activityType: "Active", characterID: 9)
let z_original_z_lance_arrow = addDigimon(name: "Z Original (Z Lance Arrow)", dim: dim, stage: 5, imageName: "z_original_z_lance_arrow", imageNameSplash: "z_original_z_lance_arrow-splash", type: virus, activityType: "Normal", characterID: 7)
let z_sigma_breastar = addDigimon(name: "Z Sigma Breastar", dim: dim, stage: 5, imageName: "z_sigma_breastar", imageNameSplash: "z_sigma_breastar-splash", type: vaccine, activityType: "Normal", characterID: 12)

// MARK: - Stage 6
let ace_ace_blade = addDigimon(name: "Ace (Ace Blade)", dim: dim, stage: 6, imageName: "ace_ace_blade", imageNameSplash: "ace_ace_blade-splash", type: vaccine, activityType: "Stotic", characterID: 16)
let jugglus_juggler = addDigimon(name: "Jugglus Juggler", dim: dim, stage: 6, imageName: "jugglus_juggler", imageNameSplash: "jugglus_juggler-splash", type: virus, activityType: "Active", characterID: 13, obtainable: false)
let z_delta_rise_claw = addDigimon(name: "Z Delta Rise Claw", dim: dim, stage: 6, imageName: "z_delta_rise_claw", imageNameSplash: "z_delta_rise_claw-splash", type: data, activityType: "Active", characterID: 14)
let zero_z_riser = addDigimon(name: "Zero (Z Riser)", dim: dim, stage: 6, imageName: "zero_z_riser", imageNameSplash: "zero_z_riser-splash", type: virus, activityType: "Normal", characterID: 15)

// MARK: - Evolutions
// MARK: - Stage 1 to 2
addEvolution(from: light, to: light, minutes: evo1Hour)

// MARK: - Stage 2 to 3
addEvolution(from: light, to: z_original, minutes: evo3Hours)

// MARK: - Stage 3 to 4
addEvolution(from: z_original, to: geed_galaxy_rising, minutes: evo16Hours)
addEvolution(from: z_original, to: z_alpha_edge, trophies: 3, vitalValues: 500, battles: 2, minutes: evo16Hours)
addEvolution(from: z_original, to: z_beta_smash, trophies: 8, vitalValues: 1500, battles: 8, minutes: evo16Hours)
addEvolution(from: z_original, to: z_gamma_future, trophies: 6, vitalValues: 1000, battles: 4, minutes: evo16Hours)

// MARK: - Stage 4 to 5
addEvolution(from: geed_galaxy_rising, to: beliarok, trophies: 10, vitalValues: 1500, battles: 10, winRatio: 40, minutes: evo24Hours)
addEvolution(from: z_alpha_edge, to: beliarok, trophies: 10, vitalValues: 1500, battles: 10, winRatio: 40, minutes: evo24Hours)
addEvolution(from: geed_galaxy_rising, to: geed_tetrite_cross, trophies: 15, vitalValues: 2500, battles: 15, winRatio: 60, minutes: evo24Hours)
addEvolution(from: z_gamma_future, to: geed_tetrite_cross, trophies: 10, vitalValues: 1500, battles: 10, winRatio: 40, minutes: evo24Hours)
addEvolution(from: z_gamma_future, to: z_beta_smash_z_lance_arrow, trophies: 15, vitalValues: 2500, battles: 15, winRatio: 60, minutes: evo24Hours)
addEvolution(from: z_beta_smash, to: z_beta_smash_z_lance_arrow, trophies: 15, vitalValues: 2500, battles: 15, winRatio: 60, minutes: evo24Hours)
addEvolution(from: z_gamma_future, to: z_gamma_future_z_lance_arrow, trophies: 12, vitalValues: 2000, battles: 12, winRatio: 50, minutes: evo24Hours)
addEvolution(from: z_alpha_edge, to: z_gamma_future_z_lance_arrow, trophies: 15, vitalValues: 2500, battles: 15, winRatio: 60, minutes: evo24Hours)
addEvolution(from: z_alpha_edge, to: z_original_z_lance_arrow, trophies: 12, vitalValues: 2000, battles: 12, winRatio: 50, minutes: evo24Hours)
addEvolution(from: z_beta_smash, to: z_original_z_lance_arrow, trophies: 12, vitalValues: 2000, battles: 12, winRatio: 50, minutes: evo24Hours)
addEvolution(from: z_beta_smash, to: z_sigma_breastar, trophies: 10, vitalValues: 1500, battles: 10, winRatio: 40, minutes: evo24Hours)
addEvolution(from: geed_galaxy_rising, to: z_sigma_breastar, trophies: 12, vitalValues: 2000, battles: 12, winRatio: 50, minutes: evo24Hours)

// MARK: - Stage 5 to 6
addEvolution(from: geed_tetrite_cross, to: ace_ace_blade, trophies: 15, vitalValues: 5000, battles: 20, winRatio: 50, minutes: evo24Hours)
addEvolution(from: z_gamma_future_z_lance_arrow, to: ace_ace_blade, trophies: 15, vitalValues: 5000, battles: 20, winRatio: 50, minutes: evo24Hours)
addEvolution(from: z_beta_smash_z_lance_arrow, to: ace_ace_blade, trophies: 15, vitalValues: 5000, battles: 20, winRatio: 50, minutes: evo24Hours)
addEvolution(from: z_original_z_lance_arrow, to: ace_ace_blade, trophies: 20, vitalValues: 7000, battles: 25, winRatio: 70, minutes: evo24Hours)
addEvolution(from: z_original_z_lance_arrow, to: z_delta_rise_claw, trophies: 15, vitalValues: 5000, battles: 20, winRatio: 50, minutes: evo24Hours)
addEvolution(from: z_beta_smash_z_lance_arrow, to: z_delta_rise_claw, trophies: 12, vitalValues: 4500, battles: 15, winRatio: 40, minutes: evo24Hours)
addEvolution(from: z_gamma_future_z_lance_arrow, to: z_delta_rise_claw, trophies: 12, vitalValues: 4500, battles: 15, winRatio: 40, minutes: evo24Hours)
addEvolution(from: beliarok, to: z_delta_rise_claw, trophies: 15, vitalValues: 5000, battles: 20, winRatio: 50, minutes: evo24Hours)
addEvolution(from: z_sigma_breastar, to: z_delta_rise_claw, trophies: 15, vitalValues: 5000, battles: 20, winRatio: 50, minutes: evo24Hours)
addEvolution(from: z_sigma_breastar, to: zero_z_riser, trophies: 12, vitalValues: 4500, battles: 15, winRatio: 40, minutes: evo24Hours)
addEvolution(from: geed_tetrite_cross, to: zero_z_riser, trophies: 12, vitalValues: 4500, battles: 15, winRatio: 40, minutes: evo24Hours)
addEvolution(from: beliarok, to: zero_z_riser, trophies: 12, vitalValues: 4500, battles: 15, winRatio: 40, minutes: evo24Hours)
addEvolution(from: z_original_z_lance_arrow, to: zero_z_riser, trophies: 12, vitalValues: 4500, battles: 15, winRatio: 40, minutes: evo24Hours)

// MARK: - Adventure Mode
addAdventureMode(stage : 1, steps: 500, digimon : z_original, dim : dim)
addAdventureMode(stage : 2, steps: 1000, digimon : z_alpha_edge, dim : dim)
addAdventureMode(stage : 3, steps: 1000, digimon : z_beta_smash, dim : dim)
addAdventureMode(stage : 4, steps: 1000, digimon : z_gamma_future, dim : dim)
addAdventureMode(stage : 5, steps: 1000, digimon : geed_galaxy_rising, dim : dim)
addAdventureMode(stage : 6, steps: 1500, digimon : z_original_z_lance_arrow, dim : dim)
addAdventureMode(stage : 7, steps: 1500, digimon : z_beta_smash_z_lance_arrow, dim : dim)
addAdventureMode(stage : 8, steps: 1500, digimon : z_gamma_future_z_lance_arrow, dim : dim)
addAdventureMode(stage : 9, steps: 1500, digimon : beliarok, dim : dim)
addAdventureMode(stage : 10, steps: 1500, digimon : geed_tetrite_cross, dim : dim)
addAdventureMode(stage : 11, steps: 1500, digimon : z_sigma_breastar, dim : dim)
addAdventureMode(stage : 12, steps: 2000, digimon : jugglus_juggler, dim : dim)
addAdventureMode(stage : 13, steps: 2000, digimon : z_delta_rise_claw, dim : dim)
addAdventureMode(stage : 14, steps: 2000, digimon : zero_z_riser, dim : dim)
addAdventureMode(stage : 15, steps: 2500, digimon : ace_ace_blade, dim : dim)
}
}