mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-04 02:47:22 +00:00
buh
This commit is contained in:
parent
19c9ce0457
commit
2394ee90b9
@ -46,7 +46,10 @@ public class ConversationManager : WorldObjectManager
|
|||||||
}
|
}
|
||||||
|
|
||||||
public uint GetPlayerTalkingToTree(CharacterDialogueTree tree)
|
public uint GetPlayerTalkingToTree(CharacterDialogueTree tree)
|
||||||
=> QSBPlayerManager.PlayerList.FirstOrDefault(x => x.CurrentCharacterDialogueTree?.AttachedObject == tree).PlayerId;
|
{
|
||||||
|
var player = QSBPlayerManager.PlayerList.FirstOrDefault(x => x.CurrentCharacterDialogueTree?.AttachedObject == tree);
|
||||||
|
return player != null ? player.PlayerId : uint.MaxValue;
|
||||||
|
}
|
||||||
|
|
||||||
public void SendPlayerOption(string text)
|
public void SendPlayerOption(string text)
|
||||||
=> new ConversationMessage(ConversationType.Player, (int)QSBPlayerManager.LocalPlayerId, text).Send();
|
=> new ConversationMessage(ConversationType.Player, (int)QSBPlayerManager.LocalPlayerId, text).Send();
|
||||||
|
Loading…
Reference in New Issue
Block a user