// PetCaptureLines.cs - The chat lines that mean an ACECustom siphon-lens capture worked. // // One list for both plugins (linked source): RynthAi's Pets tab reads them to time its auto-capture // (success -> short cooldown), and RynthILT's Vaulted Dungeons keeper counts a capture as a kill for // its "Kill Client" timer (a hunter who captures instead of killing is not idle). They are the // MonsterCapture success replies the Pets tab already matched; nothing new is guessed here. using System; namespace RynthCore.Plugin.Shared; internal static class PetCaptureLines { /// Substrings of the success replies (matched case-insensitively). private static readonly string[] Success = { "successfully siphoned the essence", "The echo resonates perfectly", "The essence is captured", }; /// True when is a capture-success reply. public static bool IsSuccess(string? text) { if (string.IsNullOrEmpty(text)) return false; foreach (string part in Success) if (text.IndexOf(part, StringComparison.OrdinalIgnoreCase) >= 0) return true; return false; } }