예제 #1
0
    public override double GetCollectingSpeed(int upgradeAmount = 0)
    {
        double baseSpeed = 50.0;
        double increase  = 0.16;

        return(CashUtility.CompoundInterest(baseSpeed, increase, m_Level + upgradeAmount));
    }
예제 #2
0
    public virtual double GetUpgradeCost(int upgradeAmount)
    {
        double baseCost = 100.0;
        double interest = 0.08;
        int    period   = m_Level + upgradeAmount;

        return(CashUtility.CompoundInterest(baseCost, interest, period));
    }
예제 #3
0
    public override double GetUpgradeCost(int upgradeAmount)
    {
        int    period               = m_Level + upgradeAmount - 1;
        double baseInterest         = 0.16;
        double baseInterestDecrease = -0.00086;
        double interest             = CashUtility.CompoundInterest(baseInterest, baseInterestDecrease, period);

        return(CashUtility.CompoundInterest(GetBuyCost(), interest, period));
    }