예약턴 초기 릴리즈

This commit is contained in:
2019-05-09 01:28:49 +09:00
parent f20e4bd572
commit 445e445e49
12 changed files with 99 additions and 40 deletions
+2 -3
View File
@@ -129,7 +129,8 @@ class ResetHelper{
int $npcmode,
int $show_img_level,
int $tournament_trig,
string $join_mode
string $join_mode,
string $turntime
):array{
//FIXME: 분리할 것
if(120 % $turnterm != 0){
@@ -186,8 +187,6 @@ class ResetHelper{
true
);
$turntime = date('Y-m-d H:i:s');
$time = substr($turntime, 11, 2);
if($sync == 0) {
// 현재 시간을 1월로 맞춤
+1 -1
View File
@@ -227,7 +227,7 @@ class NPC{
$level = $nationID?1:0;
}
$turntime = \sammo\getRandTurn($env['turnterm']);
$turntime = \sammo\getRandTurn($env['turnterm'], new \DateTimeImmutable($env['turntime']));
$killturn = ($this->death - $year) * 12 + mt_rand(0, 11);