コード例 #1
0
 public static ResourceValuesSet UpgradeMetalMineCost(short level)
 {
     var cost = new ResourceValuesSet
     {
         Metal = (long)(60 * Math.Pow(1.5, level - 1)),
         Crystal = (long)(15 * Math.Pow(1.5, level - 1))
     };
     return cost;
 }
コード例 #2
0
 public static ResourceValuesSet UpgradeDeiteriumGeneratorCost(short level)
 {
     var cost = new ResourceValuesSet
     {
         Metal = (long)(225 * Math.Pow(1.5, level - 1)),
         Crystal = (long)(75 * Math.Pow(1.5, level - 1))
     };
     return cost;
 }