From d6ba356a7573202709c7b0ec2be3a2857b58bd6b Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Wed, 23 Nov 2022 22:59:42 +0100 Subject: add Legendary Alliance Stance --- src/bt.rs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/bt.rs b/src/bt.rs index 3c1b604..f2e1fad 100644 --- a/src/bt.rs +++ b/src/bt.rs @@ -78,12 +78,13 @@ impl fmt::Display for TraitChoice { #[derive(Debug, PartialEq, Eq, Hash, Copy, Clone, IntoPrimitive, TryFromPrimitive)] pub enum Legend { None = 0, - Dragon = 13, - Assassin = 14, - Dwarf = 15, - Demon = 16, - Renegade = 17, - Centaur = 18, + Dragon = 1, + Assassin = 2, + Dwarf = 3, + Demon = 4, + Renegade = 5, + Centaur = 6, + Alliance = 7, } impl Legend { @@ -97,6 +98,7 @@ impl Legend { Legend::Demon => "Legend4", Legend::Renegade => "Legend5", Legend::Centaur => "Legend6", + Legend::Alliance => "Legend7", } .to_owned(), ) @@ -116,6 +118,7 @@ impl FromStr for Legend { "demon" | "mallyx" => Ok(Legend::Demon), "renegade" | "kalla" => Ok(Legend::Renegade), "centaur" | "ventari" => Ok(Legend::Centaur), + "alliance" | "archemorus" => Ok(Legend::Alliance), _ => Err(()), } } -- cgit v1.2.3