public static bool ShouldBeActivePermanent(this Sanderling.Accumulation.IShipUiModule module, Bot bot) => new[] { module?.TooltipLast?.Value?.IsHardener, bot?.ConfigSerialAndStruct.Value?.ModuleActivePermanentSetTitlePattern ?.Any(activePermanentTitlePattern => module?.TooltipLast?.Value?.TitleElementText()?.Text?.RegexMatchSuccessIgnoreCase(activePermanentTitlePattern) ?? false), } .Any(sufficientCondition => sufficientCondition ?? false);
public Int64?ToggleLastAgeStepCountFromModule(Sanderling.Accumulation.IShipUiModule module) => module == null ? null : stepIndex - ToggleLastStepIndexFromModule?.TryGetValueNullable(module);
public long?ToggleLastAgeStepCountFromModule(IShipUiModule module) { return(stepIndex - ToggleLastStepIndexFromModule?.TryGetValueNullable(module)); }