mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
fix prisoner prompt with a shit hacky solution
This commit is contained in:
parent
0b81b4787e
commit
0b0f783eb3
@ -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();
|
||||
}
|
||||
}
|
@ -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)];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user