feat: 수비 설정 제한을 GameConst로 이동

This commit is contained in:
2024-09-18 15:08:21 +00:00
parent 7e6770b5e7
commit eece1cbae5
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -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;
+1 -1
View File
@@ -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);