From eece1cbae5480a070e8ce3472b622f09d24ae127 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Wed, 18 Sep 2024 15:08:21 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=88=98=EB=B9=84=20=EC=84=A4=EC=A0=95?= =?UTF-8?q?=20=EC=A0=9C=ED=95=9C=EC=9D=84=20GameConst=EB=A1=9C=20=EC=9D=B4?= =?UTF-8?q?=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/GameConstBase.php | 6 ++++++ hwe/sammo/TurnExecutionHelper.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/hwe/sammo/GameConstBase.php b/hwe/sammo/GameConstBase.php index 8aa54a8b..6ef11019 100644 --- a/hwe/sammo/GameConstBase.php +++ b/hwe/sammo/GameConstBase.php @@ -83,6 +83,12 @@ class GameConstBase /** @var int 최대 하야 패널티 수 */ public static $maxBetrayCnt = 9; + /** @var int 매월 증가하는 수비 설정 변경 제한 수 */ + public static $incDefSettingChange = 3; + /** @var int 최대로 증가하는 수비 설정 변경 제한 수*/ + public static $maxDefSettingChange = 9; + + /** @var int 최대 레벨 */ public static $maxLevel = 255; diff --git a/hwe/sammo/TurnExecutionHelper.php b/hwe/sammo/TurnExecutionHelper.php index 7a5c347b..3da4dbac 100644 --- a/hwe/sammo/TurnExecutionHelper.php +++ b/hwe/sammo/TurnExecutionHelper.php @@ -351,7 +351,7 @@ class TurnExecutionHelper pullGeneralCommand($general->getID()); $currentTurn = $general->getTurnTime(); - $general->increaseVarWithLimit('myset', 3, null, 9); + $general->increaseVarWithLimit('myset', GameConst::$incDefSettingChange, null, GameConst::$maxDefSettingChange); if (($autorun_user['limit_minutes'] ?? false) && $general->getNPCType() < 2 && $hasReservedTurn) { $autorun_limit = Util::joinYearMonth($year, $month);