public override double GetCollectingSpeed(int upgradeAmount = 0) { double baseSpeed = 50.0; double increase = 0.16; return(CashUtility.CompoundInterest(baseSpeed, increase, m_Level + upgradeAmount)); }
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)); }
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)); }