public override string GetChat()
        {
            if (!this.HasFirstChat)
            {
                this.HasFirstChat = true;

                PirateMood patience = PirateLogic.Instance.Patience;
                return(PirateNegotiatorTownNPC.Demands[patience]);
            }

            int i = Main.rand.Next(PirateNegotiatorTownNPC.Chats.Count);

            return(PirateNegotiatorTownNPC.Chats[i]);
        }
        public override void OnChatButtonClicked(bool firstButton, ref bool shop)
        {
            if (this.HagglingDone)
            {
                return;
            }

            if (firstButton)
            {
                PirateMood patience = PirateLogic.Instance.Patience;
                Main.npcChatText = PirateNegotiatorTownNPC.Demands[patience];
            }
            else
            {
                PDYBMod.Instance.UIContextComponents.OpenHaggleUI(this.OfferTested >= 0);
                Main.npcChatText = "";
                //Main.LocalPlayer.talkNPC = -1;
            }
        }