Added vampires roles and buffed spy/agent

main
Joey Hines 2023-12-08 19:43:45 -07:00
parent f86ef6fc21
commit 6dd12fd561
No known key found for this signature in database
GPG Key ID: 995E531F7A569DDB
3 changed files with 22 additions and 3 deletions

View File

@ -101,6 +101,6 @@ pub trait Listener: Debug + Send + Sync {
_ctx: &mut ListenerContext,
_msg: &WoxlfMessage,
) -> Result<EventStatus> {
return Ok(EventStatus::Okay);
Ok(EventStatus::Okay)
}
}

View File

@ -45,12 +45,19 @@ pub enum Role {
Shepard,
Dreamer,
ApprenticeSeer,
Necromancer,
Helsing,
Priest,
// Wolf Roles
MasterWolf,
WolfShaman,
Wolf,
WolfAgent,
WolfDreamer,
// Vampires,
TheCount,
ThinBlood,
Vampire,
// Custom Role
Custom(String, RoleColor),
}
@ -80,6 +87,12 @@ impl Display for Role {
Role::ApprenticeSeer => "Apprentice Seer",
Role::WolfAgent => "Wolf Agent",
Role::WolfDreamer => "Wolf Dreamer",
Role::Necromancer => "Necromancer",
Role::Helsing => "Helsing",
Role::TheCount => "The Count",
Role::ThinBlood => "Thin Blood",
Role::Vampire => "Vampire",
Role::Priest => "Priest",
};
write!(f, "{}", s)
@ -112,6 +125,12 @@ impl Role {
Role::ApprenticeSeer => RoleColor::Blue,
Role::WolfAgent => RoleColor::Red,
Role::WolfDreamer => RoleColor::Red,
Role::Necromancer => RoleColor::Blue,
Role::Helsing => RoleColor::Blue,
Role::TheCount => RoleColor::Purple,
Role::ThinBlood => RoleColor::Green,
Role::Vampire => RoleColor::Purple,
Role::Priest => RoleColor::Blue,
}
}

View File

@ -60,8 +60,8 @@ impl Listener for SpyListener {
return Ok(EventStatus::Okay);
}
// 1/4 chance to intercept message
if thread_rng().gen_bool(0.25) {
// 50% chance to intercept message
if thread_rng().gen_bool(0.50) {
println!("Sending a spy message...");
let msg_content = MessageBuilder::default()