import { t } from "./i18n/i18n";

export const rawUpgrades = [
  {
    requires: "",
    rejects: "",
    threshold: 0,
    giftable: false,
    id: "extra_life",
    max: 3,
    name: t("upgrades.extra_life.name"),
    help: (lvl: number) =>
      lvl === 1
        ? t("upgrades.extra_life.help")
        : t("upgrades.extra_life.help_plural", { lvl }),
    fullHelp: t("upgrades.extra_life.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 0,
    id: "streak_shots",
    giftable: true,
    max: 1,
    name: t("upgrades.streak_shots.name"),
    help: (lvl: number) => t("upgrades.streak_shots.help", { lvl }),
    fullHelp: t("upgrades.streak_shots.fullHelp"),
  },

  {
    requires: "",
    rejects: "",
    threshold: 0,
    id: "base_combo",
    giftable: true,
    max: 7,
    name: t("upgrades.base_combo.name"),
    help: (lvl: number) =>
      t("upgrades.base_combo.help", { coins: 1 + lvl * 3 }),
    fullHelp: t("upgrades.base_combo.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 0,
    giftable: false,
    id: "slow_down",
    max: 2,
    name: t("upgrades.slow_down.name"),
    help: () => t("upgrades.slow_down.help"),
    fullHelp: t("upgrades.slow_down.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 0,
    giftable: false,
    id: "bigger_puck",
    max: 2,
    name: t("upgrades.bigger_puck.name"),
    help: () => t("upgrades.bigger_puck.help"),
    fullHelp: t("upgrades.bigger_puck.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 0,
    giftable: false,
    id: "viscosity",
    max: 3,

    name: t("upgrades.viscosity.name"),
    help: () => t("upgrades.viscosity.help"),
    fullHelp: t("upgrades.viscosity.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 0,
    id: "left_is_lava",
    giftable: true,
    max: 1,

    name: t("upgrades.left_is_lava.name"),
    help: () => t("upgrades.left_is_lava.help"),
    fullHelp: t("upgrades.left_is_lava.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 0,
    id: "right_is_lava",
    giftable: true,
    max: 1,
    name: t("upgrades.right_is_lava.name"),
    help: () => t("upgrades.right_is_lava.help"),
    fullHelp: t("upgrades.right_is_lava.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 0,
    id: "top_is_lava",
    giftable: true,
    max: 1,
    name: t("upgrades.top_is_lava.name"),
    help: () => t("upgrades.top_is_lava.help"),
    fullHelp: t("upgrades.top_is_lava.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 0,
    giftable: false,
    id: "skip_last",
    max: 7,
    name: t("upgrades.skip_last.name"),
    help: (lvl: number) =>
      lvl == 1
        ? t("upgrades.skip_last.help")
        : t("upgrades.skip_last.help_plural", { lvl }),
    fullHelp: t("upgrades.skip_last.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 500,
    id: "telekinesis",
    giftable: true,
    max: 2,
    name: t("upgrades.telekinesis.name"),
    help: (lvl: number) =>
      lvl == 1
        ? t("upgrades.telekinesis.help")
        : t("upgrades.telekinesis.help_plural"),
    fullHelp: t("upgrades.telekinesis.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 1000,
    giftable: false,
    id: "coin_magnet",
    max: 3,
    name: t("upgrades.coin_magnet.name"),
    help: (lvl: number) =>
      lvl == 1
        ? t("upgrades.coin_magnet.help")
        : t("upgrades.coin_magnet.help_plural"),
    fullHelp: t("upgrades.coin_magnet.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 1500,
    id: "multiball",
    giftable: true,
    max: 6,
    name: t("upgrades.multiball.name"),
    help: (lvl: number) => t("upgrades.multiball.help", { count: lvl + 1 }),
    fullHelp: t("upgrades.multiball.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 2000,
    giftable: false,
    id: "smaller_puck",
    max: 2,
    name: t("upgrades.smaller_puck.name"),
    help: (lvl: number) =>
      lvl == 1
        ? t("upgrades.smaller_puck.help")
        : t("upgrades.smaller_puck.help_plural"),
    fullHelp: t("upgrades.smaller_puck.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 3000,
    id: "pierce",
    giftable: true,
    max: 3,
    name: t("upgrades.pierce.name"),
    help: (lvl: number) => t("upgrades.pierce.help", { count: 3 * lvl }),
    fullHelp: t("upgrades.pierce.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 4000,
    id: "picky_eater",
    giftable: true,
    max: 1,
    name: t("upgrades.picky_eater.name"),
    help: (lvl: number) => t("upgrades.picky_eater.help"),
    fullHelp: t("upgrades.picky_eater.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 5000,
    giftable: false,
    id: "metamorphosis",
    max: 1,
    name: t("upgrades.metamorphosis.name"),
    help: (lvl: number) => t("upgrades.metamorphosis.help"),
    fullHelp: t("upgrades.metamorphosis.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 6000,
    id: "compound_interest",
    giftable: true,
    max: 1,
    name: t("upgrades.compound_interest.name"),
    help: (lvl: number) => t("upgrades.compound_interest.help"),
    fullHelp: t("upgrades.compound_interest.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 7000,
    id: "hot_start",
    giftable: true,
    max: 3,
    name: t("upgrades.hot_start.name"),
    help: (lvl: number) =>
      t("upgrades.hot_start.help", {
        start: lvl * 15 + 1,
        lvl,
      }),
    fullHelp: t("upgrades.hot_start.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 9000,
    id: "sapper",
    giftable: true,
    max: 7,
    name: t("upgrades.sapper.name"),
    help: (lvl: number) =>
      lvl == 1
        ? t("upgrades.sapper.help")
        : t("upgrades.sapper.help_plural", { lvl }),
    fullHelp: t("upgrades.sapper.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 11000,
    id: "bigger_explosions",
    giftable: false,
    max: 1,
    name: t("upgrades.bigger_explosions.name"),
    help: (lvl: number) => t("upgrades.bigger_explosions.help"),
    fullHelp: t("upgrades.bigger_explosions.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 13000,
    giftable: false,
    id: "extra_levels",
    max: 3,
    name: t("upgrades.extra_levels.name"),
    help: (lvl: number) => t("upgrades.extra_levels.help", { count: lvl + 7 }),
    fullHelp: t("upgrades.extra_levels.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 15000,
    giftable: false,
    id: "pierce_color",
    max: 4,
    name: t("upgrades.pierce_color.name"),
    help: (lvl: number) => t("upgrades.pierce_color.help", { lvl }),
    fullHelp: t("upgrades.pierce_color.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 18000,
    giftable: false,
    id: "soft_reset",
    max: 9,
    name: t("upgrades.soft_reset.name"),
    help: (lvl: number) => t("upgrades.soft_reset.help", { percent: 10 * lvl }),
    fullHelp: t("upgrades.soft_reset.fullHelp"),
  },
  {
    requires: "multiball",
    threshold: 21000,
    giftable: false,
    id: "ball_repulse_ball",
    max: 3,
    name: t("upgrades.ball_repulse_ball.name"),
    help: (lvl: number) =>
      lvl == 1
        ? t("upgrades.ball_repulse_ball.help")
        : t("upgrades.ball_repulse_ball.help_plural"),
    fullHelp: t("upgrades.ball_repulse_ball.fullHelp"),
  },
  {
    requires: "multiball",
    threshold: 25000,
    giftable: false,
    id: "ball_attract_ball",
    max: 3,
    name: t("upgrades.ball_attract_ball.name"),
    help: (lvl: number) =>
      lvl == 1
        ? t("upgrades.ball_attract_ball.help")
        : t("upgrades.ball_attract_ball.help_plural"),
    fullHelp: t("upgrades.ball_attract_ball.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 30000,
    giftable: false,
    id: "puck_repulse_ball",
    max: 2,
    name: t("upgrades.puck_repulse_ball.name"),
    help: (lvl: number) =>
      lvl == 1
        ? t("upgrades.puck_repulse_ball.help")
        : t("upgrades.puck_repulse_ball.help_plural"),
    fullHelp: t("upgrades.puck_repulse_ball.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 35000,
    giftable: false,
    id: "wind",
    max: 3,
    name: t("upgrades.wind.name"),
    help: (lvl: number) =>
      lvl == 1 ? t("upgrades.wind.help") : t("upgrades.wind.help_plural"),
    fullHelp: t("upgrades.wind.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 40000,
    giftable: false,
    id: "sturdy_bricks",
    max: 4,
    name: t("upgrades.sturdy_bricks.name"),
    help: (lvl: number) =>
      lvl == 1
        ? t("upgrades.sturdy_bricks.help")
        : t("upgrades.sturdy_bricks.help_plural"),
    fullHelp: t("upgrades.sturdy_bricks.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 45000,
    giftable: false,
    id: "respawn",
    max: 4,
    name: t("upgrades.respawn.name"),
    help: (lvl: number) =>
      lvl == 1 ? t("upgrades.respawn.help") : t("upgrades.respawn.help_plural"),
    fullHelp: t("upgrades.respawn.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 50000,
    giftable: false,
    id: "one_more_choice",
    max: 3,
    name: t("upgrades.one_more_choice.name"),
    help: (lvl: number) => t("upgrades.one_more_choice.help"),
    fullHelp: t("upgrades.one_more_choice.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 55000,
    giftable: false,
    id: "instant_upgrade",
    max: 2,
    name: t("upgrades.instant_upgrade.name"),
    help: (lvl: number) => t("upgrades.instant_upgrade.help"),
    fullHelp: t("upgrades.instant_upgrade.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 60000,
    giftable: false,
    id: "concave_puck",
    max: 1,
    name: t("upgrades.concave_puck.name"),
    help: (lvl: number) => t("upgrades.concave_puck.help"),
    fullHelp: t("upgrades.concave_puck.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 65000,
    giftable: false,
    id: "helium",
    max: 1,
    name: t("upgrades.helium.name"),
    help: (lvl: number) => t("upgrades.helium.help"),
    fullHelp: t("upgrades.helium.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 70000,
    giftable: false,
    id: "asceticism",
    max: 1,
    name: t("upgrades.asceticism.name"),
    help: (lvl: number) => t("upgrades.asceticism.help"),
    fullHelp: t("upgrades.asceticism.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 75000,
    giftable: false,
    id: "unbounded",
    max: 1,
    name: t("upgrades.unbounded.name"),
    help: (lvl: number) => t("upgrades.unbounded.help"),
    fullHelp: t("upgrades.unbounded.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 80000,
    giftable: false,
    id: "shunt",
    max: 3,
    name: t("upgrades.shunt.name"),
    help: (lvl: number) => t("upgrades.shunt.help", { percent: lvl * 20 }),
    fullHelp: t("upgrades.shunt.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 85000,
    giftable: false,
    id: "yoyo",
    max: 2,
    name: t("upgrades.yoyo.name"),
    help: (lvl: number) => t("upgrades.yoyo.help"),
    fullHelp: t("upgrades.yoyo.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 90000,
    giftable: false,
    id: "nbricks",
    max: 3,
    name: t("upgrades.nbricks.name"),
    help: (lvl: number) => t("upgrades.nbricks.help", { lvl }),
    fullHelp: t("upgrades.nbricks.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 95000,
    giftable: false,
    id: "etherealcoins",
    max: 1,
    name: t("upgrades.etherealcoins.name"),
    help: (lvl: number) => t("upgrades.etherealcoins.help"),
    fullHelp: t("upgrades.etherealcoins.fullHelp"),
  },
  {
    requires: "multiball",
    threshold: 100000,
    giftable: false,
    id: "shocks",
    max: 1,
    name: t("upgrades.shocks.name"),
    help: (lvl: number) => t("upgrades.shocks.help"),
    fullHelp: t("upgrades.shocks.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 105000,
    giftable: false,
    id: "zen",
    max: 1,
    name: t("upgrades.zen.name"),
    help: (lvl: number) => t("upgrades.zen.help"),
    fullHelp: t("upgrades.zen.fullHelp"),
  },
  {
    requires: "extra_life",
    threshold: 110000,
    giftable: false,
    id: "sacrifice",
    max: 1,
    name: t("upgrades.sacrifice.name"),
    help: (lvl: number) => t("upgrades.sacrifice.help"),
    fullHelp: t("upgrades.sacrifice.fullHelp"),
  },

  {
    requires: "",
    threshold: 115000,
    giftable: false,
    id: "trampoline",
    max: 1,
    name: t("upgrades.trampoline.name"),
    help: (lvl: number) => t("upgrades.trampoline.help", { lvl }),
    fullHelp: t("upgrades.trampoline.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 120000,
    giftable: false,
    id: "ghost_coins",
    max: 1,
    name: t("upgrades.ghost_coins.name"),
    help: (lvl: number) => t("upgrades.ghost_coins.help", { lvl }),
    fullHelp: t("upgrades.ghost_coins.fullHelp"),
  },
  {
    requires: "",
    threshold: 125000,
    giftable: false,
    id: "forgiving",
    max: 1,
    name: t("upgrades.forgiving.name"),
    help: (lvl: number) => t("upgrades.forgiving.help"),
    fullHelp: t("upgrades.forgiving.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 130000,
    giftable: false,
    id: "ball_attracts_coins",
    max: 3,
    name: t("upgrades.ball_attracts_coins.name"),
    help: (lvl: number) => t("upgrades.ball_attracts_coins.help"),
    fullHelp: t("upgrades.ball_attracts_coins.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 135000,
    giftable: false,
    id: "reach",
    max: 1,
    name: t("upgrades.reach.name"),
    help: (lvl: number) => t("upgrades.reach.help", { lvl }),
    fullHelp: t("upgrades.reach.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 140000,
    giftable: false,
    id: "passive_income",
    max: 4,
    name: t("upgrades.passive_income.name"),
    help: (lvl: number) =>
      t("upgrades.passive_income.help", { time: lvl * 0.25, lvl }),
    fullHelp: t("upgrades.passive_income.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 145000,
    giftable: false,
    id: "clairvoyant",
    max: 1,
    name: t("upgrades.clairvoyant.name"),
    help: (lvl: number) => t("upgrades.clairvoyant.help"),
    fullHelp: t("upgrades.clairvoyant.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 150000,
    giftable: true,
    id: "side_kick",
    max: 3,
    name: t("upgrades.side_kick.name"),
    help: (lvl: number) => t("upgrades.side_kick.help", { lvl }),
    fullHelp: t("upgrades.side_kick.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 155000,
    giftable: false,
    id: "implosions",
    max: 1,
    name: t("upgrades.implosions.name"),
    help: (lvl: number) => t("upgrades.implosions.help"),
    fullHelp: t("upgrades.implosions.fullHelp"),
  },
  {
    requires: "",
    rejects: "",
    threshold: 160000,
    giftable: false,
    id: "corner_shot",
    max: 1,
    name: t("upgrades.corner_shot.name"),
    help: (lvl: number) => t("upgrades.corner_shot.help"),
    fullHelp: t("upgrades.corner_shot.fullHelp"),
  },
] as const;
