コード例 #1
0
 public static int GetCostOfNextLevels(this VPerk perk, int increase = 1)
 {
     return(VCalculator.Calculate(perk.StartingCost, perk.IncrementCost, perk.DesiredLevel, perk.DesiredLevel + increase));
 }
コード例 #2
0
 public static int GetRemainingCost(this VPerk perk)
 {
     return(VCalculator.Calculate(perk.StartingCost, perk.IncrementCost, 0, perk.DesiredLevel));
 }
コード例 #3
0
 public static int GetCurrentCost(this VPerk perk)
 {
     return(VCalculator.Calculate(perk.StartingCost, perk.IncrementCost, 0, 0));
 }