#![allow(clippy::all, clippy::pedantic, clippy::nursery, missing_docs)]
use crate::common::{EnchantCost, EnchantmentInfo};
pub(crate) static ENCHANTMENTS: [EnchantmentInfo; 30] = [
EnchantmentInfo { id: 0, name: "protection", #[cfg(feature = "display-names")] 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", #[cfg(feature = "display-names")] 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", #[cfg(feature = "display-names")] 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", #[cfg(feature = "display-names")] 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", #[cfg(feature = "display-names")] 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", #[cfg(feature = "display-names")] 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", #[cfg(feature = "display-names")] 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", #[cfg(feature = "display-names")] display_name: "Thorns", max_level: 3, min_cost: EnchantCost { a: 20, b: -10 }, max_cost: EnchantCost { a: 10, b: 51 }, exclude: &[], category: "armor_chest", weight: 1, treasure_only: false, curse: false },
EnchantmentInfo { id: 8, name: "depth_strider", #[cfg(feature = "display-names")] 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", #[cfg(feature = "display-names")] 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", #[cfg(feature = "display-names")] 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: 16, name: "sharpness", #[cfg(feature = "display-names")] 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: 17, name: "smite", #[cfg(feature = "display-names")] 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: 18, name: "bane_of_arthropods", #[cfg(feature = "display-names")] 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: 19, name: "knockback", #[cfg(feature = "display-names")] 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: 20, name: "fire_aspect", #[cfg(feature = "display-names")] 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: 21, name: "looting", #[cfg(feature = "display-names")] 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: 22, name: "sweeping", #[cfg(feature = "display-names")] 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: 32, name: "efficiency", #[cfg(feature = "display-names")] 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: 33, name: "silk_touch", #[cfg(feature = "display-names")] 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: 34, name: "unbreaking", #[cfg(feature = "display-names")] 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: 35, name: "fortune", #[cfg(feature = "display-names")] 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: 48, name: "power", #[cfg(feature = "display-names")] 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: 49, name: "punch", #[cfg(feature = "display-names")] 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: 50, name: "flame", #[cfg(feature = "display-names")] 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: 51, name: "infinity", #[cfg(feature = "display-names")] 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: 61, name: "luck_of_the_sea", #[cfg(feature = "display-names")] 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: 62, name: "lure", #[cfg(feature = "display-names")] 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: 70, name: "mending", #[cfg(feature = "display-names")] 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: 71, name: "vanishing_curse", #[cfg(feature = "display-names")] 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: [(u32, u16); 30] = [
(13, 6),
(31, 18),
(44, 10),
(60, 3),
(73, 8),
(83, 32),
(98, 2),
(109, 20),
(124, 1),
(129, 50),
(136, 35),
(148, 9),
(156, 51),
(165, 19),
(172, 21),
(187, 61),
(191, 62),
(198, 70),
(203, 48),
(224, 4),
(234, 0),
(239, 49),
(250, 5),
(259, 16),
(269, 33),
(274, 17),
(282, 22),
(288, 7),
(298, 34),
(313, 71),
];
pub(crate) const ENCHANTMENT_NAMES_TEXT: &str = "aqua_affinitybane_of_arthropodsbinding_curseblast_protectiondepth_striderefficiencyfeather_fallingfire_aspectfire_protectionflamefortunefrost_walkerinfinityknockbacklootingluck_of_the_sealuremendingpowerprojectile_protectionprotectionpunchrespirationsharpnesssilk_touchsmitesweepingthornsunbreakingvanishing_curse";