From 922d3f1938ae6edda2b8b2bd45f6ae23894589c0 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Wed, 25 Jun 2025 13:12:32 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B8=B0=EC=88=A0=20=EB=93=B1=EA=B8=89?= =?UTF-8?q?=20=EC=A0=9C=ED=95=9C=20=EC=88=98=EC=B9=98=20=EC=9C=A0=EC=97=B0?= =?UTF-8?q?=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_converter.php | 2 +- hwe/sammo/GameConstBase.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 증축시 인구 증가량 */