feat: 수비 설정 제한을 GameConst로 이동
This commit is contained in:
@@ -83,6 +83,12 @@ class GameConstBase
|
|||||||
/** @var int 최대 하야 패널티 수 */
|
/** @var int 최대 하야 패널티 수 */
|
||||||
public static $maxBetrayCnt = 9;
|
public static $maxBetrayCnt = 9;
|
||||||
|
|
||||||
|
/** @var int 매월 증가하는 수비 설정 변경 제한 수 */
|
||||||
|
public static $incDefSettingChange = 3;
|
||||||
|
/** @var int 최대로 증가하는 수비 설정 변경 제한 수*/
|
||||||
|
public static $maxDefSettingChange = 9;
|
||||||
|
|
||||||
|
|
||||||
/** @var int 최대 레벨 */
|
/** @var int 최대 레벨 */
|
||||||
public static $maxLevel = 255;
|
public static $maxLevel = 255;
|
||||||
|
|
||||||
|
|||||||
@@ -351,7 +351,7 @@ class TurnExecutionHelper
|
|||||||
pullGeneralCommand($general->getID());
|
pullGeneralCommand($general->getID());
|
||||||
|
|
||||||
$currentTurn = $general->getTurnTime();
|
$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) {
|
if (($autorun_user['limit_minutes'] ?? false) && $general->getNPCType() < 2 && $hasReservedTurn) {
|
||||||
$autorun_limit = Util::joinYearMonth($year, $month);
|
$autorun_limit = Util::joinYearMonth($year, $month);
|
||||||
|
|||||||
Reference in New Issue
Block a user