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

Add CardKeyword::Freljord

This commit is contained in:
Steffo 2023-10-22 23:27:41 +02:00
parent 8b3ca83c65
commit 9a930724de
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -368,6 +368,9 @@ pub enum CardKeyword {
/// > A champion in play levels up everywhere once this condition is met. Some champions must be in play to see their condition progress.
LevelUp,
/// ???
Freljord,
/// Unsupported card keyword.
#[serde(other)]
Unsupported,
@ -466,6 +469,7 @@ impl CardKeyword {
CardKeyword::Attack => "",
CardKeyword::ElementalSkill => "<:elementalskill:1165762476974026814>",
CardKeyword::LevelUp => "",
CardKeyword::Freljord => "<:freljord:1056024331437735936>",
CardKeyword::Unsupported => "<:invaliddeck:1056022952396730438>",
}
}
@ -564,5 +568,6 @@ mod tests {
test_deserialization!(deserialize_attack, r#""AttackSkillMark""#, CardKeyword::Attack);
test_deserialization!(deserialize_elementalskill, r#""ElementalSkill""#, CardKeyword::ElementalSkill);
test_deserialization!(deserialize_levelup, r#""LevelUp""#, CardKeyword::LevelUp);
test_deserialization!(deserialize_freljord, r#""Freljord""#, CardKeyword::Freljord);
test_deserialization!(deserialize_unsupported, r#""Xyzzy""#, CardKeyword::Unsupported);
}