fix prisoner prompt with a shit hacky solution

This commit is contained in:
Mister_Nebula 2022-05-13 19:53:44 +01:00
parent 0b81b4787e
commit 0b0f783eb3
2 changed files with 9 additions and 4 deletions

View File

@ -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<PrisonerDirector>();
if (prisonerDirector != null && prisonerDirector._characterDialogueTree == tree)
{
return;
}
tree.GetInteractVolume().EnableInteraction();
}
}

View File

@ -10,8 +10,5 @@ internal class ChangeInterestedPlayerMessage : QSBWorldObjectMessage<QSBGhostSen
public ChangeInterestedPlayerMessage(uint playerId) : base(playerId) { }
public override void OnReceiveRemote()
{
DebugLog.DebugWrite($"{WorldObject.AttachedObject.name} Set interested player {Data}");
WorldObject._data.interestedPlayer = WorldObject._data.players[QSBPlayerManager.GetPlayer(Data)];
}
=> WorldObject._data.interestedPlayer = WorldObject._data.players[QSBPlayerManager.GetPlayer(Data)];
}