1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2025-01-03 15:34:18 +00:00

Add CardKeyword::ElementalSkill

This commit is contained in:
Steffo 2023-10-22 23:24:43 +02:00
parent 9ed2220be9
commit 24a67cf445
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -358,6 +358,11 @@ pub enum CardKeyword {
#[serde(rename = "AttackSkillMark")] #[serde(rename = "AttackSkillMark")]
Attack, Attack,
/// Skill with the elemental marker.
///
/// > A unit's spell-like effect that allows enemy reactions. It's elemental!
ElementalSkill,
/// Unsupported card keyword. /// Unsupported card keyword.
#[serde(other)] #[serde(other)]
Unsupported, Unsupported,
@ -454,6 +459,7 @@ impl CardKeyword {
CardKeyword::Flow => "", CardKeyword::Flow => "",
CardKeyword::Capture => "<:capture:1056024295190577153>", CardKeyword::Capture => "<:capture:1056024295190577153>",
CardKeyword::Attack => "", CardKeyword::Attack => "",
CardKeyword::ElementalSkill => "<:elementalskill:1165762476974026814>",
CardKeyword::Unsupported => "<:invaliddeck:1056022952396730438>", CardKeyword::Unsupported => "<:invaliddeck:1056022952396730438>",
} }
} }
@ -550,5 +556,6 @@ mod tests {
test_deserialization!(deserialize_equipment, r#""Equipment""#, CardKeyword::Equipment); test_deserialization!(deserialize_equipment, r#""Equipment""#, CardKeyword::Equipment);
test_deserialization!(deserialize_capture, r#""Capture""#, CardKeyword::Capture); test_deserialization!(deserialize_capture, r#""Capture""#, CardKeyword::Capture);
test_deserialization!(deserialize_attack, r#""AttackSkillMark""#, CardKeyword::Attack); test_deserialization!(deserialize_attack, r#""AttackSkillMark""#, CardKeyword::Attack);
test_deserialization!(deserialize_elementalskill, r#""ElementalSkill""#, CardKeyword::ElementalSkill);
test_deserialization!(deserialize_unsupported, r#""Xyzzy""#, CardKeyword::Unsupported); test_deserialization!(deserialize_unsupported, r#""Xyzzy""#, CardKeyword::Unsupported);
} }