public bool ApplyCondition(Kingdom kingdom, Kingdom otherKingdom, out TextObject textObject, bool forcePlayerCharacterCosts = false) { textObject = null; bool hasEnoughTimeElapsed = CooldownManager.HasExceededMinimumWarDuration(kingdom, otherKingdom, out float elapsedDaysUntilNow); if (!hasEnoughTimeElapsed) { textObject = new TextObject(TOO_SOON); textObject.SetTextVariable("ELAPSED_DAYS", (float)Math.Floor(elapsedDaysUntilNow)); textObject.SetTextVariable("REQUIRED_DAYS", Settings.Instance.MinimumWarDurationInDays); } return(hasEnoughTimeElapsed); }