Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

129 lignes
1.9 KiB

  1. using System;
  2. using SUISS.Core;
  3. using UnityEngine;
  4. public sealed class CIGVariables : SingletonMonobehaviour<CIGVariables>
  5. {
  6. public decimal FactorForExpansionCostsCash
  7. {
  8. get
  9. {
  10. return 0.6875m;
  11. }
  12. }
  13. public bool AllowDifferentTimewarpSettings
  14. {
  15. get
  16. {
  17. return true;
  18. }
  19. }
  20. public decimal ConstructionCostGoldPenalty
  21. {
  22. get
  23. {
  24. return 2m;
  25. }
  26. }
  27. public decimal GoldToCashRatio
  28. {
  29. get
  30. {
  31. return 20000m;
  32. }
  33. }
  34. public decimal TranslateCashToGold(decimal cash)
  35. {
  36. if (cash == 0m)
  37. {
  38. return 0m;
  39. }
  40. return Math.Max(1m, Math.Floor(cash / this.GoldToCashRatio));
  41. }
  42. public decimal CitizenCostCash
  43. {
  44. get
  45. {
  46. return 1000m;
  47. }
  48. }
  49. public decimal HappinessCostCash
  50. {
  51. get
  52. {
  53. return 750m;
  54. }
  55. }
  56. public double FactorForUpLevellingSpeed
  57. {
  58. get
  59. {
  60. return 1.0;
  61. }
  62. }
  63. public float FactorForSpeedupCostCash()
  64. {
  65. string apiProperty = SingletonMonobehaviour<CIGWebService>.Instance.GetApiProperty("succf");
  66. if (string.IsNullOrEmpty(apiProperty))
  67. {
  68. return 1f;
  69. }
  70. if (apiProperty == "50%")
  71. {
  72. return 0.5f;
  73. }
  74. if (apiProperty == "150%")
  75. {
  76. return 1.5f;
  77. }
  78. return 1f;
  79. }
  80. public float UpgradeCommercialROI(int level)
  81. {
  82. return (float)Math.Round((double)(6f + Mathf.Pow(1.5f, (float)(level + 1))), 2);
  83. }
  84. public float UpgradeResidentialMultiplier(int level)
  85. {
  86. return (float)Math.Round((double)Mathf.Pow(1.5f, (float)(level + 1)), 2);
  87. }
  88. public float UpgradeEnvironmentalMultiplier(int level)
  89. {
  90. return (float)Math.Round((double)Mathf.Pow(1.3f, (float)(level + 1)), 2);
  91. }
  92. public float UpgradeCostFactorGoldBuildings
  93. {
  94. get
  95. {
  96. return 0.55f;
  97. }
  98. }
  99. public float UpgradeCostPerCitizen
  100. {
  101. get
  102. {
  103. return 1000f;
  104. }
  105. }
  106. public float UpgradeCostPerHappiness
  107. {
  108. get
  109. {
  110. return 1000f;
  111. }
  112. }
  113. }