diff --git a/hwe/func_converter.php b/hwe/func_converter.php index 774b9047..dcf4ef83 100644 --- a/hwe/func_converter.php +++ b/hwe/func_converter.php @@ -686,7 +686,7 @@ function TechLimit($startYear, $year, $tech) : bool { $relYear = $year - $startYear; $relMaxTech = Util::valueFit( - floor($relYear / 5) + 1, + floor($relYear / GameConst::$techLevelIncYear) + GameConst::$initialAllowedTechLevel, 1, GameConst::$maxTechLevel ); diff --git a/hwe/sammo/GameConstBase.php b/hwe/sammo/GameConstBase.php index bfd7687e..9f06d2b1 100644 --- a/hwe/sammo/GameConstBase.php +++ b/hwe/sammo/GameConstBase.php @@ -94,6 +94,11 @@ class GameConstBase /** @var int 최대 레벨 */ public static $maxLevel = 255; + /** @var int 기술등급 허용 증가 단위 년 */ + public static $techLevelIncYear = 5; + /** @var int 초기 기술등급 */ + public static $initialAllowedTechLevel = 1; + /** @var int 최소 인구 증가량 */ public static $basePopIncreaseAmount = 5000; /** @var int 증축시 인구 증가량 */