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 증축시 인구 증가량 */