1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-12-23 01:54:22 +00:00

Add CardKeyword::LevelUp

This commit is contained in:
Steffo 2023-10-22 23:26:15 +02:00
parent 24a67cf445
commit 8b3ca83c65
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -363,6 +363,11 @@ pub enum CardKeyword {
/// > A unit's spell-like effect that allows enemy reactions. It's elemental! /// > A unit's spell-like effect that allows enemy reactions. It's elemental!
ElementalSkill, ElementalSkill,
/// Level up!
///
/// > A champion in play levels up everywhere once this condition is met. Some champions must be in play to see their condition progress.
LevelUp,
/// Unsupported card keyword. /// Unsupported card keyword.
#[serde(other)] #[serde(other)]
Unsupported, Unsupported,
@ -460,6 +465,7 @@ impl CardKeyword {
CardKeyword::Capture => "<:capture:1056024295190577153>", CardKeyword::Capture => "<:capture:1056024295190577153>",
CardKeyword::Attack => "", CardKeyword::Attack => "",
CardKeyword::ElementalSkill => "<:elementalskill:1165762476974026814>", CardKeyword::ElementalSkill => "<:elementalskill:1165762476974026814>",
CardKeyword::LevelUp => "",
CardKeyword::Unsupported => "<:invaliddeck:1056022952396730438>", CardKeyword::Unsupported => "<:invaliddeck:1056022952396730438>",
} }
} }
@ -557,5 +563,6 @@ mod tests {
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_elementalskill, r#""ElementalSkill""#, CardKeyword::ElementalSkill);
test_deserialization!(deserialize_levelup, r#""LevelUp""#, CardKeyword::LevelUp);
test_deserialization!(deserialize_unsupported, r#""Xyzzy""#, CardKeyword::Unsupported); test_deserialization!(deserialize_unsupported, r#""Xyzzy""#, CardKeyword::Unsupported);
} }