protected virtual async Task TalkPet()
{
// Officials don't use random messages, but one message for every NPC,
// which is usually the default one below. However, some NPCs have a
// different message, ones added later in particular, so we'll just
// RNG it for the default message, less overriding for something
// nobody cares about.
switch (this.Random(3))
{
default:
if (this.NPC.IsMale)
{
this.Close(Hide.None, Localization.Get("(I don't think he can understand me.)"));
break;
}
else if (this.NPC.IsFemale)
{
this.Close(Hide.None, Localization.Get("(I don't think she can understand me.)"));
break;
}
else if (this.NPC.HasTag("/prop/"))
{
this.Close(Hide.None, Localization.Get("(I don't think I can talk to this.)"));
break;
}
// Go to next case if gender isn't clear
goto case 1;
case 1: this.Close(Hide.None, Localization.Get("(This conversation doesn't seem to be going anywhere.)")); break;
case 2: this.Close(Hide.None, Localization.Get("(I don't think we'll see things eye to eye.)")); break;
}
await Task.Yield();
}