From 43b8e546f659cf1c04a533d5b423da7f88e61315 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Tue, 1 Nov 2022 23:00:25 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=8B=9C=EB=82=98=EB=A6=AC=EC=98=A4=20?= =?UTF-8?q?=EB=B3=84=20=EC=82=AC=EC=A0=84=20=EC=83=9D=EC=84=B1=20=EC=8B=9C?= =?UTF-8?q?=20=EC=9E=AC=20=EC=83=9D=EC=84=B1=20=EC=A3=BC=EA=B8=B0=20?= =?UTF-8?q?=EA=B2=B0=EC=A0=95=20=EA=B0=80=EB=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/b_myPage.php | 2 +- hwe/sammo/API/General/DieOnPrestart.php | 4 ++-- hwe/sammo/GameConstBase.php | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) 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;