From 0b0f783eb33ec386add4e31cf7ee3456f67d91f2 Mon Sep 17 00:00:00 2001 From: Mister_Nebula <41904486+misternebula@users.noreply.github.com> Date: Fri, 13 May 2022 19:53:44 +0100 Subject: [PATCH] fix prisoner prompt with a shit hacky solution --- .../Messages/ConversationStartEndMessage.cs | 8 ++++++++ .../Ghosts/Messages/ChangeInterestedPlayerMessage.cs | 5 +---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/QSB/ConversationSync/Messages/ConversationStartEndMessage.cs b/QSB/ConversationSync/Messages/ConversationStartEndMessage.cs index 34ed737c..1bce4c98 100644 --- a/QSB/ConversationSync/Messages/ConversationStartEndMessage.cs +++ b/QSB/ConversationSync/Messages/ConversationStartEndMessage.cs @@ -46,6 +46,14 @@ public class ConversationStartEndMessage : QSBMessage<(int TreeId, bool Start)> CharacterDialogueTree tree) { QSBPlayerManager.GetPlayer(playerId).CurrentCharacterDialogueTreeId = -1; + + // hack to fix prisoner dialogue prompt from re-appearing... this is a shit solution + var prisonerDirector = QSBWorldSync.GetUnityObject(); + if (prisonerDirector != null && prisonerDirector._characterDialogueTree == tree) + { + return; + } + tree.GetInteractVolume().EnableInteraction(); } } \ No newline at end of file diff --git a/QSB/EchoesOfTheEye/Ghosts/Messages/ChangeInterestedPlayerMessage.cs b/QSB/EchoesOfTheEye/Ghosts/Messages/ChangeInterestedPlayerMessage.cs index c35b718a..aa0532a5 100644 --- a/QSB/EchoesOfTheEye/Ghosts/Messages/ChangeInterestedPlayerMessage.cs +++ b/QSB/EchoesOfTheEye/Ghosts/Messages/ChangeInterestedPlayerMessage.cs @@ -10,8 +10,5 @@ internal class ChangeInterestedPlayerMessage : QSBWorldObjectMessage WorldObject._data.interestedPlayer = WorldObject._data.players[QSBPlayerManager.GetPlayer(Data)]; }