Example #1
0
    int TimeRemaining()
    {
        var task = Cooldowns.GetTask(Q, GetCompanyTask());

        if (task == null)
        {
            return(0);
        }

        return(task.EndTime - CurrentIntDate);
    }
Example #2
0
    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)));
 }
Example #4
0
    public bool HasActiveTimer()
    {
        var t = GetCompanyTask();

        return(Cooldowns.GetTask(Q, t) != null);
    }
Example #5
0
 public override TimedActionComponent GetTask()
 {
     return(Cooldowns.GetTask(Q, new CompanyTaskExploreMarket(SelectedNiche)));
 }
Example #6
0
 public static TimedActionComponent GetCorporateCultureCooldown(GameEntity company, GameContext gameContext)
 {
     return(Cooldowns.GetTask(gameContext, new CompanyTaskUpgradeCulture(company.company.Id)));
 }