From 9b95163f247b68f7247dc6fb108c651b82833a45 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sat, 29 Apr 2023 23:18:55 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=AA=85=EC=84=B1=20=EC=B5=9C=EB=8C=80?= =?UTF-8?q?=20=EB=A0=88=EB=B2=A8=20=EC=A7=80=EC=A0=95=EC=9D=B4=20=EC=97=86?= =?UTF-8?q?=EC=97=88=EC=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_converter.php | 2 ++ hwe/sammo/GameConstBase.php | 3 +++ 2 files changed, 5 insertions(+) diff --git a/hwe/func_converter.php b/hwe/func_converter.php index bc603fc9..9d3b78b7 100644 --- a/hwe/func_converter.php +++ b/hwe/func_converter.php @@ -542,6 +542,8 @@ function getExpLevel($experience) { $level = Util::toInt(sqrt($experience/10)); } + $level = Util::clamp($level, 0, GameConst::$maxLevel); + return $level; } diff --git a/hwe/sammo/GameConstBase.php b/hwe/sammo/GameConstBase.php index 806367d6..e2d3339f 100644 --- a/hwe/sammo/GameConstBase.php +++ b/hwe/sammo/GameConstBase.php @@ -83,6 +83,9 @@ class GameConstBase /** @var int 최대 하야 패널티 수 */ public static $maxBetrayCnt = 9; + /** @var int 최대 레벨 */ + public static $maxLevel = 300; + /** @var int 최소 인구 증가량 */ public static $basePopIncreaseAmount = 5000; /** @var int 증축시 인구 증가량 */