mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-19 15:51:58 +00:00
zs
This commit is contained in:
1 parent
b790f9a32e
commit
8147d3c172
1 file changed
+3
-3
@@ -307,7 +307,7 @@ internal class QuizMaster : RoleBase
|
||||
|
||||
if (CurrentQuestion.CorrectAnswerIndex == index)
|
||||
{
|
||||
if (pc != null) RPC.PlaySoundRPC(pc.PlayerId, Sounds.TaskComplete);
|
||||
if (pc) RPC.PlaySoundRPC(pc.PlayerId, Sounds.TaskComplete);
|
||||
Utils.SendMessage(Translator.GetString("QuizMaster.AnswerCorrect"), Target, Translator.GetString("QuizMaster.Title"), importance: MessageImportance.High);
|
||||
Utils.SendMessage(string.Format(Translator.GetString("QuizMaster.AnswerCorrect.Self"), CurrentQuestion.Answers[CurrentQuestion.CorrectAnswerIndex]), QuizMasterId, Translator.GetString("QuizMaster.Title"), importance: MessageImportance.High);
|
||||
|
||||
@@ -318,9 +318,9 @@ internal class QuizMaster : RoleBase
|
||||
Utils.SendMessage(string.Format(Translator.GetString("QuizMaster.AnswerIncorrect"), CurrentQuestion.Answers[CurrentQuestion.CorrectAnswerIndex]), Target, Translator.GetString("QuizMaster.Title"), importance: MessageImportance.High);
|
||||
Utils.SendMessage(string.Format(Translator.GetString("QuizMaster.AnswerIncorrect.Self"), CurrentQuestion.Answers[index], CurrentQuestion.Answers[CurrentQuestion.CorrectAnswerIndex]), QuizMasterId, Translator.GetString("QuizMaster.Title"), importance: MessageImportance.High);
|
||||
|
||||
if (pc.Is(CustomRoles.Pestilence)) return;
|
||||
if (!pc || pc.Is(CustomRoles.Pestilence)) return;
|
||||
Main.PlayerStates[Target].deathReason = PlayerState.DeathReason.WrongAnswer;
|
||||
pc?.RpcGuesserMurderPlayer();
|
||||
pc.RpcGuesserMurderPlayer();
|
||||
Utils.AfterPlayerDeathTasks(pc, true);
|
||||
|
||||
Logger.Info($"Player {name} was killed for answering incorrectly", "QuizMaster");
|
||||
|
||||
Reference in new issue
Block a user