#![allow(clippy::all, clippy::pedantic, clippy::nursery, missing_docs)]
use crate::common::{EnchantCost, EnchantmentInfo};
pub(crate) static ENCHANTMENTS: [EnchantmentInfo; 38] = [
EnchantmentInfo { id: 0, name: "protection", display_name: "Protection", max_level: 4, min_cost: EnchantCost { a: 11, b: -10 }, max_cost: EnchantCost { a: 11, b: 1 }, exclude: &["blast_protection", "fire_protection", "projectile_protection"], category: "armor", weight: 10, treasure_only: false, curse: false },
EnchantmentInfo { id: 1, name: "fire_protection", display_name: "Fire Protection", max_level: 4, min_cost: EnchantCost { a: 8, b: 2 }, max_cost: EnchantCost { a: 8, b: 10 }, exclude: &["blast_protection", "protection", "projectile_protection"], category: "armor", weight: 5, treasure_only: false, curse: false },
EnchantmentInfo { id: 2, name: "feather_falling", display_name: "Feather Falling", max_level: 4, min_cost: EnchantCost { a: 6, b: -1 }, max_cost: EnchantCost { a: 6, b: 5 }, exclude: &[], category: "armor_feet", weight: 5, treasure_only: false, curse: false },
EnchantmentInfo { id: 3, name: "blast_protection", display_name: "Blast Protection", max_level: 4, min_cost: EnchantCost { a: 8, b: -3 }, max_cost: EnchantCost { a: 8, b: 5 }, exclude: &["fire_protection", "protection", "projectile_protection"], category: "armor", weight: 2, treasure_only: false, curse: false },
EnchantmentInfo { id: 4, name: "projectile_protection", display_name: "Projectile Protection", max_level: 4, min_cost: EnchantCost { a: 6, b: -3 }, max_cost: EnchantCost { a: 6, b: 3 }, exclude: &["protection", "blast_protection", "fire_protection"], category: "armor", weight: 5, treasure_only: false, curse: false },
EnchantmentInfo { id: 5, name: "respiration", display_name: "Respiration", max_level: 3, min_cost: EnchantCost { a: 10, b: 0 }, max_cost: EnchantCost { a: 10, b: 30 }, exclude: &[], category: "armor_head", weight: 2, treasure_only: false, curse: false },
EnchantmentInfo { id: 6, name: "aqua_affinity", display_name: "Aqua Affinity", max_level: 1, min_cost: EnchantCost { a: 0, b: 1 }, max_cost: EnchantCost { a: 0, b: 41 }, exclude: &[], category: "armor_head", weight: 2, treasure_only: false, curse: false },
EnchantmentInfo { id: 7, name: "thorns", display_name: "Thorns", max_level: 3, min_cost: EnchantCost { a: 20, b: -10 }, max_cost: EnchantCost { a: 10, b: 51 }, exclude: &[], category: "armor_feet", weight: 1, treasure_only: false, curse: false },
EnchantmentInfo { id: 8, name: "depth_strider", display_name: "Depth Strider", max_level: 3, min_cost: EnchantCost { a: 10, b: 0 }, max_cost: EnchantCost { a: 10, b: 15 }, exclude: &["frost_walker"], category: "armor_feet", weight: 2, treasure_only: false, curse: false },
EnchantmentInfo { id: 9, name: "frost_walker", display_name: "Frost Walker", max_level: 2, min_cost: EnchantCost { a: 10, b: 0 }, max_cost: EnchantCost { a: 10, b: 15 }, exclude: &["depth_strider"], category: "armor_feet", weight: 2, treasure_only: true, curse: false },
EnchantmentInfo { id: 10, name: "binding_curse", display_name: "Curse of Binding", max_level: 1, min_cost: EnchantCost { a: 0, b: 25 }, max_cost: EnchantCost { a: 0, b: 50 }, exclude: &[], category: "wearable", weight: 1, treasure_only: true, curse: true },
EnchantmentInfo { id: 11, name: "soul_speed", display_name: "Soul Speed", max_level: 3, min_cost: EnchantCost { a: 10, b: 0 }, max_cost: EnchantCost { a: 10, b: 15 }, exclude: &[], category: "armor_feet", weight: 1, treasure_only: true, curse: false },
EnchantmentInfo { id: 12, name: "sharpness", display_name: "Sharpness", max_level: 5, min_cost: EnchantCost { a: 11, b: -10 }, max_cost: EnchantCost { a: 11, b: 10 }, exclude: &["smite", "bane_of_arthropods"], category: "weapon", weight: 10, treasure_only: false, curse: false },
EnchantmentInfo { id: 13, name: "smite", display_name: "Smite", max_level: 5, min_cost: EnchantCost { a: 8, b: -3 }, max_cost: EnchantCost { a: 8, b: 17 }, exclude: &["sharpness", "bane_of_arthropods"], category: "weapon", weight: 5, treasure_only: false, curse: false },
EnchantmentInfo { id: 14, name: "bane_of_arthropods", display_name: "Bane of Arthropods", max_level: 5, min_cost: EnchantCost { a: 8, b: -3 }, max_cost: EnchantCost { a: 8, b: 17 }, exclude: &["smite", "sharpness"], category: "weapon", weight: 5, treasure_only: false, curse: false },
EnchantmentInfo { id: 15, name: "knockback", display_name: "Knockback", max_level: 2, min_cost: EnchantCost { a: 20, b: -15 }, max_cost: EnchantCost { a: 10, b: 51 }, exclude: &[], category: "weapon", weight: 5, treasure_only: false, curse: false },
EnchantmentInfo { id: 16, name: "fire_aspect", display_name: "Fire Aspect", max_level: 2, min_cost: EnchantCost { a: 20, b: -10 }, max_cost: EnchantCost { a: 10, b: 51 }, exclude: &[], category: "weapon", weight: 2, treasure_only: false, curse: false },
EnchantmentInfo { id: 17, name: "looting", display_name: "Looting", max_level: 3, min_cost: EnchantCost { a: 9, b: 6 }, max_cost: EnchantCost { a: 10, b: 51 }, exclude: &[], category: "weapon", weight: 2, treasure_only: false, curse: false },
EnchantmentInfo { id: 18, name: "sweeping", display_name: "Sweeping Edge", max_level: 3, min_cost: EnchantCost { a: 9, b: -4 }, max_cost: EnchantCost { a: 9, b: 11 }, exclude: &[], category: "weapon", weight: 2, treasure_only: false, curse: false },
EnchantmentInfo { id: 19, name: "efficiency", display_name: "Efficiency", max_level: 5, min_cost: EnchantCost { a: 10, b: -9 }, max_cost: EnchantCost { a: 10, b: 51 }, exclude: &[], category: "digger", weight: 10, treasure_only: false, curse: false },
EnchantmentInfo { id: 20, name: "silk_touch", display_name: "Silk Touch", max_level: 1, min_cost: EnchantCost { a: 0, b: 15 }, max_cost: EnchantCost { a: 10, b: 51 }, exclude: &["fortune"], category: "digger", weight: 1, treasure_only: false, curse: false },
EnchantmentInfo { id: 21, name: "unbreaking", display_name: "Unbreaking", max_level: 3, min_cost: EnchantCost { a: 8, b: -3 }, max_cost: EnchantCost { a: 10, b: 51 }, exclude: &[], category: "breakable", weight: 5, treasure_only: false, curse: false },
EnchantmentInfo { id: 22, name: "fortune", display_name: "Fortune", max_level: 3, min_cost: EnchantCost { a: 9, b: 6 }, max_cost: EnchantCost { a: 10, b: 51 }, exclude: &["silk_touch"], category: "digger", weight: 2, treasure_only: false, curse: false },
EnchantmentInfo { id: 23, name: "power", display_name: "Power", max_level: 5, min_cost: EnchantCost { a: 10, b: -9 }, max_cost: EnchantCost { a: 10, b: 6 }, exclude: &[], category: "bow", weight: 10, treasure_only: false, curse: false },
EnchantmentInfo { id: 24, name: "punch", display_name: "Punch", max_level: 2, min_cost: EnchantCost { a: 20, b: -8 }, max_cost: EnchantCost { a: 20, b: 17 }, exclude: &[], category: "bow", weight: 2, treasure_only: false, curse: false },
EnchantmentInfo { id: 25, name: "flame", display_name: "Flame", max_level: 1, min_cost: EnchantCost { a: 0, b: 20 }, max_cost: EnchantCost { a: 0, b: 50 }, exclude: &[], category: "bow", weight: 2, treasure_only: false, curse: false },
EnchantmentInfo { id: 26, name: "infinity", display_name: "Infinity", max_level: 1, min_cost: EnchantCost { a: 0, b: 20 }, max_cost: EnchantCost { a: 0, b: 50 }, exclude: &["mending"], category: "bow", weight: 1, treasure_only: false, curse: false },
EnchantmentInfo { id: 27, name: "luck_of_the_sea", display_name: "Luck of the Sea", max_level: 3, min_cost: EnchantCost { a: 9, b: 6 }, max_cost: EnchantCost { a: 10, b: 51 }, exclude: &[], category: "fishing_rod", weight: 2, treasure_only: false, curse: false },
EnchantmentInfo { id: 28, name: "lure", display_name: "Lure", max_level: 3, min_cost: EnchantCost { a: 9, b: 6 }, max_cost: EnchantCost { a: 10, b: 51 }, exclude: &[], category: "fishing_rod", weight: 2, treasure_only: false, curse: false },
EnchantmentInfo { id: 29, name: "loyalty", display_name: "Loyalty", max_level: 3, min_cost: EnchantCost { a: 7, b: 5 }, max_cost: EnchantCost { a: 0, b: 50 }, exclude: &["riptide"], category: "trident", weight: 5, treasure_only: false, curse: false },
EnchantmentInfo { id: 30, name: "impaling", display_name: "Impaling", max_level: 5, min_cost: EnchantCost { a: 8, b: -7 }, max_cost: EnchantCost { a: 8, b: 13 }, exclude: &[], category: "trident", weight: 2, treasure_only: false, curse: false },
EnchantmentInfo { id: 31, name: "riptide", display_name: "Riptide", max_level: 3, min_cost: EnchantCost { a: 7, b: 10 }, max_cost: EnchantCost { a: 0, b: 50 }, exclude: &["loyalty", "channeling"], category: "trident", weight: 2, treasure_only: false, curse: false },
EnchantmentInfo { id: 32, name: "channeling", display_name: "Channeling", max_level: 1, min_cost: EnchantCost { a: 0, b: 25 }, max_cost: EnchantCost { a: 0, b: 50 }, exclude: &["riptide"], category: "trident", weight: 1, treasure_only: false, curse: false },
EnchantmentInfo { id: 33, name: "multishot", display_name: "Multishot", max_level: 1, min_cost: EnchantCost { a: 0, b: 20 }, max_cost: EnchantCost { a: 0, b: 50 }, exclude: &["piercing"], category: "crossbow", weight: 2, treasure_only: false, curse: false },
EnchantmentInfo { id: 34, name: "quick_charge", display_name: "Quick Charge", max_level: 3, min_cost: EnchantCost { a: 20, b: -8 }, max_cost: EnchantCost { a: 0, b: 50 }, exclude: &[], category: "crossbow", weight: 5, treasure_only: false, curse: false },
EnchantmentInfo { id: 35, name: "piercing", display_name: "Piercing", max_level: 4, min_cost: EnchantCost { a: 10, b: -9 }, max_cost: EnchantCost { a: 0, b: 50 }, exclude: &["multishot"], category: "crossbow", weight: 10, treasure_only: false, curse: false },
EnchantmentInfo { id: 36, name: "mending", display_name: "Mending", max_level: 1, min_cost: EnchantCost { a: 25, b: 0 }, max_cost: EnchantCost { a: 25, b: 50 }, exclude: &["infinity"], category: "breakable", weight: 2, treasure_only: true, curse: false },
EnchantmentInfo { id: 37, name: "vanishing_curse", display_name: "Curse of Vanishing", max_level: 1, min_cost: EnchantCost { a: 0, b: 25 }, max_cost: EnchantCost { a: 0, b: 50 }, exclude: &[], category: "vanishable", weight: 1, treasure_only: true, curse: true },
];
pub(crate) static ENCHANTMENT_NAMES: [(&str, u16); 38] = [
("aqua_affinity", 6),
("bane_of_arthropods", 14),
("binding_curse", 10),
("blast_protection", 3),
("channeling", 32),
("depth_strider", 8),
("efficiency", 19),
("feather_falling", 2),
("fire_aspect", 16),
("fire_protection", 1),
("flame", 25),
("fortune", 22),
("frost_walker", 9),
("impaling", 30),
("infinity", 26),
("knockback", 15),
("looting", 17),
("loyalty", 29),
("luck_of_the_sea", 27),
("lure", 28),
("mending", 36),
("multishot", 33),
("piercing", 35),
("power", 23),
("projectile_protection", 4),
("protection", 0),
("punch", 24),
("quick_charge", 34),
("respiration", 5),
("riptide", 31),
("sharpness", 12),
("silk_touch", 20),
("smite", 13),
("soul_speed", 11),
("sweeping", 18),
("thorns", 7),
("unbreaking", 21),
("vanishing_curse", 37),
];