diff --git a/hwe/b_myPage.php b/hwe/b_myPage.php index 9e1e03a2..2c22b1a3 100644 --- a/hwe/b_myPage.php +++ b/hwe/b_myPage.php @@ -29,7 +29,7 @@ if ($myset > 0) { $submit = 'hidden'; } -$targetTime = addTurn($me->getVar('lastrefresh'), $gameStor->turnterm, 2); +$targetTime = addTurn($me->getVar('lastrefresh'), $gameStor->turnterm, GameConst::$minTurnDieOnPrestart); if ($gameStor->turntime <= $gameStor->opentime) { //서버 가오픈시 할 수 있는 행동 if ($me->getNPCType() == 0 && $me->getNationID() == 0) { diff --git a/hwe/sammo/API/General/DieOnPrestart.php b/hwe/sammo/API/General/DieOnPrestart.php index 07cf5b2d..3e7efbce 100644 --- a/hwe/sammo/API/General/DieOnPrestart.php +++ b/hwe/sammo/API/General/DieOnPrestart.php @@ -4,7 +4,7 @@ namespace sammo\API\General; use sammo\DB; use sammo\DummyGeneral; - +use sammo\GameConst; use sammo\Session; use sammo\General; use sammo\JosaUtil; @@ -54,7 +54,7 @@ class DieOnPrestart extends \sammo\BaseAPI } //서버 가오픈시 할 수 있는 행동 - $targetTime = addTurn($general['lastrefresh'], $gameStor->turnterm, 2); + $targetTime = addTurn($general['lastrefresh'], $gameStor->turnterm, GameConst::$minTurnDieOnPrestart); if ($targetTime > TimeUtil::now()) { $targetTimeShort = substr($targetTime, 0, 19); return "아직 삭제할 수 없습니다. {$targetTimeShort} 부터 가능합니다."; diff --git a/hwe/sammo/GameConstBase.php b/hwe/sammo/GameConstBase.php index 9cc5d8ad..a8865239 100644 --- a/hwe/sammo/GameConstBase.php +++ b/hwe/sammo/GameConstBase.php @@ -204,6 +204,8 @@ class GameConstBase [20, 4] ]; + public static $minTurnDieOnPrestart = 2; + public static $uniqueTrialCoef = 1; public static $maxUniqueTrialProb = 0.25;