Skip to content

Commit

Permalink
explain chat groups better in roles
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsSammyM committed Feb 8, 2024
1 parent 7d38259 commit 12bf1a0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions client/src/resources/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@
"wiki.article.role.jailor.guide": "During the day, choose one player to jail each night. You can talk to your prisoner during the night, and they wont know who you are. You should interrogate your prisoner to find out what their role is, and if you think they are evil, you can choose to execute them. You can execute up to three times, but if you kill a townie, you can not jail anyone anymore.",
"wiki.article.role.jailor.abilities":"* Choose one player to jail during the day\n* Visit your prisoner to execute them",
"wiki.article.role.jailor.attributes":"* You may talk with your prisoner at night\n* If you execute a town member, you forfeit the ability to jail prisoners, and loose all execution uses\n* Players in jail are immune to most abilities being used on them\n* Jailed players can't target\n* Other players will know if the player they visit is jailed",
"wiki.article.role.jailor.extra":"* The Jailor cant choose to execute on night one\n* If you execute a townie, or run out of executions, you can not target anymore\n* You will invisibly roleblock the player you put in jail\n- Players in jail wont see your name on your messages, the messages you send appear to be from the jailor.",
"wiki.article.role.jailor.extra":"* The Jailor cant choose to execute on night one\n* If you execute a townie, or run out of executions, you can not target anymore\n* You will invisibly roleblock the player you put in jail\n- Players in jail wont see your name on your messages, the messages you send appear to be from the jailor.\n- If you jail a vampire or mafia member, other vampires or mafia will know that that player is in jail",

"wiki.article.role.mayor.guide": "Reveal during the day to make your vote count as three votes. After you reveal everyone will know that you are the Mayor.",
"wiki.article.role.mayor.abilities":"- Reveal during the day to triple your voting power, showing everyone that you are the Mayor\n-",
Expand Down Expand Up @@ -641,9 +641,9 @@
"wiki.article.role.escort.extra":"- When you roleblock someone, their visits will be cleared",

"wiki.article.role.medium.guide": "You can talk with the dead at night. After you die, you can choose to speak with a living player two times, this is called a haunt. You can also speak with other mediums at night. You should try to find information from other players and tell the town what dead players think about the game.",
"wiki.article.role.medium.abilities":"- At night, you can read messages from dead chat\n- You can message dead chat anonymously\n- After you are dead, choose a living player during the day to haunt and speak with them that night. You can perform two haunts. All dead mediums take part in a haunt.",
"wiki.article.role.medium.attributes":"- You can read dead messages from jail, but you can't send messages to the dead while in jail.\n- You can read messages from other Mediums\n- Your messages will appear to be sent by \"Medium\"",
"wiki.article.role.medium.extra":"- A Haunt puts the haunted living player in the haunt chat with all dead mediums\n- If multiple dead mediums haunt multiple living players at the same time then all the dead mediums and haunted players will be together in a haunt chat\n- Every medium can do two haunts, so two mediums can do four haunts",
"wiki.article.role.medium.abilities":"- At night, you can read and send messages in the dead chat group\n- While alive, your messages in the dead chat group will appear to be from the medium so you can remain anonymous\n- While dead, choose a living player during the day to haunt at night, putting that player in the haunt chat group during the night. You can perform two haunts.",
"wiki.article.role.medium.attributes":"- While in jail, you can read from dead chat group, but you can't send to it.\n- Your messages will appear to be sent by \"Medium\"",
"wiki.article.role.medium.extra":"- While any dead medium haunts any living player, all dead mediums and haunted players are together in the haunt chat group\n- Every medium can do two haunts, so two mediums can do four haunts\n- Living mediums wont join the haunt chat group",

"wiki.article.role.retributionist.guide": "Choose a dead player to possess and force them to visit a player of your choosing. You can only choose to possess dead townies. You can't possess the same player twice.",
"wiki.article.role.retributionist.abilities":"- Visit two players to make the first player visit the second player\n- Visit three players to make the first player visit the second and third player",
Expand All @@ -653,7 +653,7 @@
"wiki.article.role.journalist.guide": "During the day, choose one player to interview each night. You can talk to the player you think is interview. Write a journal and choose to make it public to have it posted at the start of every day. If a player you interview doesn't tell you their alibi then they are likely evil, and you should post that in your journal.",
"wiki.article.role.journalist.abilities":"- Your journal is posted every morning while you alive if it is public\n- Talk with the player you interview at night",
"wiki.article.role.journalist.attributes":"- Your journal is posted anonymously, nobody knows who wrote it\n- Players you interview wont see your name on your messages, the messages you send appear to be from the journalist.",
"wiki.article.role.journalist.extra": "- If there is more than one Journalist with a public journal, the journals are posted in player order\n- Your journal wont be posted if you were silenced or roleblocked",
"wiki.article.role.journalist.extra": "- If there is more than one Journalist with a public journal, the journals are posted in player order\n- Your journal wont be posted if you were silenced or roleblocked\n- If you interview a vampire or mafia member, other vampires or mafia will know that that player is being interviewed",

"wiki.article.role.vigilante.guide": "Choose a player to attack them, if you kill a townie, you will commit suicide on the following night (and probably cause town to lose). You have only three bullets and you can not shoot on night one. If you attack someone and they survive it is likely that they were either protected by a protective role, or they are a role that has armor. Most roles that have armor are evil.",
"wiki.article.role.vigilante.abilities":"- Visit a player to basic attack them and use up a bullet\n- If you kill a townie you will commit suicide on the following night\n- You have three bullets",
Expand Down
4 changes: 2 additions & 2 deletions server/src/game/on_client_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ impl Game {
let mut target_message_sent = false;
for chat_group in sender_player_ref.get_current_send_chat_groups(self){
match chat_group {
ChatGroup::All | ChatGroup::Seance | ChatGroup::Interview => {},
ChatGroup::Dead | ChatGroup::Mafia | ChatGroup::Vampire => {
ChatGroup::All | ChatGroup::Seance | ChatGroup::Interview | ChatGroup::Dead => {},
ChatGroup::Mafia | ChatGroup::Vampire => {
self.add_message_to_chat_group(
chat_group,
ChatMessage::Targeted {
Expand Down
4 changes: 2 additions & 2 deletions server/src/game/player/player_accessors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ impl PlayerReference{
let mut message_sent = false;
for chat_group in self.get_current_send_chat_groups(game){
match chat_group {
ChatGroup::All | ChatGroup::Jail | ChatGroup::Interview | ChatGroup::Seance => {},
ChatGroup::Mafia | ChatGroup::Vampire | ChatGroup::Dead => {
ChatGroup::All | ChatGroup::Jail | ChatGroup::Interview | ChatGroup::Seance | ChatGroup::Dead => {},
ChatGroup::Mafia | ChatGroup::Vampire => {
game.add_message_to_chat_group(
chat_group,
ChatMessage::JailedSomeone { player_index: self.index() }
Expand Down
4 changes: 2 additions & 2 deletions server/src/game/role/journalist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ impl RoleStateImpl for Journalist {
let mut message_sent = false;
for chat_group in interviewed_target_ref.get_current_send_chat_groups(game){
match chat_group {
ChatGroup::All | ChatGroup::Dead | ChatGroup::Jail | ChatGroup::Interview => {},
ChatGroup::Mafia | ChatGroup::Vampire | ChatGroup::Seance => {
ChatGroup::All | ChatGroup::Jail | ChatGroup::Interview | ChatGroup::Seance | ChatGroup::Dead => {},
ChatGroup::Mafia | ChatGroup::Vampire => {
game.add_message_to_chat_group(
chat_group,
ChatMessage::PlayerIsBeingInterviewed { player_index: interviewed_target_ref.index() }
Expand Down

0 comments on commit 12bf1a0

Please sign in to comment.