int TimeRemaining() { var task = Cooldowns.GetTask(Q, GetCompanyTask()); if (task == null) { return(0); } return(task.EndTime - CurrentIntDate); }
public override string RenderValue() { var task = Cooldowns.GetTask(Q, new CompanyTaskUpgradeCulture(MyCompany.company.Id)); if (task == null) { //NextTweakLabel.SetActive(false); return(""); } NextTweakLabel.SetActive(true); var days = task.EndTime - CurrentIntDate; if (days > 0) { return($"Corporate culture\n(next change in {days} days)"); } return($"Corporate culture"); //return $"{days} days"; }
public override TimedActionComponent GetTask() { return(Cooldowns.GetTask(Q, new CompanyTaskExploreCompany(SelectedCompany.company.Id))); }
public bool HasActiveTimer() { var t = GetCompanyTask(); return(Cooldowns.GetTask(Q, t) != null); }
public override TimedActionComponent GetTask() { return(Cooldowns.GetTask(Q, new CompanyTaskExploreMarket(SelectedNiche))); }
public static TimedActionComponent GetCorporateCultureCooldown(GameEntity company, GameContext gameContext) { return(Cooldowns.GetTask(gameContext, new CompanyTaskUpgradeCulture(company.company.Id))); }