예제 #1
0
    bool IsHasMoneyOverflow(GameEntity company)
    {
        var balance        = Economy.BalanceOf(company);
        var nonCapitalCost = Economy.GetCompanyBaseCost(gameContext, company.company.Id);

        return(balance > 0.3d * nonCapitalCost);
    }
예제 #2
0
    void RenderBaseCosts(int companyId, GameEntity c)
    {
        BaseCost.text    = RenderCosts(Economy.GetCompanyBaseCost(Q, companyId));
        CapitalSize.text = RenderCosts(c.companyResource.Resources.money);

        if (Companies.IsProductCompany(c))
        {
            ShowProductCompanyLabels(true);
            ShowGroupLabels(false);

            AudienceCost.text         = RenderCosts(Economy.GetClientBaseCost(Q, companyId));
            IncomeBasedCost.text      = RenderCosts(Economy.GetCompanyIncomeBasedCost(Q, companyId));
            IncomeBasedCostLabel.text = $"Income X{Economy.GetCompanyCostNicheMultiplier()}";
        }
        else
        {
            ShowProductCompanyLabels(false);
            ShowGroupLabels(true);

            HoldingCost.text = RenderCosts(Economy.GetHoldingCost(Q, companyId));
        }
    }