use num_enum::TryFromPrimitive;

#[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd, TryFromPrimitive)]
#[repr(u16)]
pub enum Condition {
    Condition0000 = 0x0000,
    Condition0001 = 0x0001,
    Condition0002 = 0x0002,
    Condition0004 = 0x0004,
    Condition0005 = 0x0005,
    Condition0006 = 0x0006,
    Condition0007 = 0x0007,
    Condition0014 = 0x0014,
    Condition001C = 0x001c,
    Condition001E = 0x001e,
    Condition0027 = 0x0027,
    Condition0048 = 0x0048,
    Condition0080 = 0x0080,
    Condition0081 = 0x0081,
    Condition0082 = 0x0082,
    Condition010B = 0x010b,
    Condition010C = 0x010c,
    Condition010D = 0x010d,
    Condition010E = 0x010e,
    EstafanGotAshaMotherHealingMedicine = 0x0111,
    Condition0112 = 0x0112,
    EstafanGotAshaGrannyLifeDrops = 0x0113,
    Condition0114 = 0x0114,
    Condition0117 = 0x0117,
    Condition011D = 0x011d,
    Condition0120 = 0x0120,
    Condition0121 = 0x0121,
    Condition0122 = 0x0122,
    Condition012B = 0x012b,
    Condition012C = 0x012c,
    AllowedInRapadagnaCastle = 0x012d,
    Condition012E = 0x012e,
    Condition012F = 0x012f,
    Condition0130 = 0x0130,
    Condition0131 = 0x0131,
    Condition0132 = 0x0132,
    Condition0135 = 0x0135,
    Condition0137 = 0x0137,
    Condition013F = 0x013f,
    Condition0140 = 0x0140,
    Condition0141 = 0x0141,
    Condition014e = 0x014e,
    Condition0165 = 0x0165,
    Condition0168 = 0x0168,
    Condition0184 = 0x0184,
    Condition0194 = 0x0194,
    Condition0195 = 0x0195,
    Condition019B = 0x019b,
    Condition01B5 = 0x01b5,
    Condition01BA = 0x01ba,
    Condition01C2 = 0x01c2,
    Condition01C3 = 0x01c3,
    Condition01C4 = 0x01c4,
    Condition01CA = 0x01ca,
    Condition01D7 = 0x01d7,
    Condition03E7 = 0x03e7,
    Condition03E8 = 0x03e8,
    Condition03E9 = 0x03e9,
    Condition03EA = 0x03ea,
    Condition03EB = 0x03eb,
}
