feat: replace game schedules with logical ticks
This commit is contained in:
@@ -43,7 +43,12 @@ switch ($btn) {
|
||||
pushGlobalHistoryLog(["<R>★</><S>{$log}</>"]);
|
||||
break;
|
||||
case "변경1":
|
||||
$gameStor->starttime = (new \DateTime($starttime))->format('Y-m-d H:i:s');
|
||||
$clock = GameClock::fromStorage($gameStor);
|
||||
$gameStor->clock_base_time = TimeUtil::format(GameClock::baseTimeForProjection(
|
||||
new \DateTimeImmutable($starttime),
|
||||
Util::toInt($gameStor->starttime),
|
||||
$clock->getTurnTermMinutes(),
|
||||
), true);
|
||||
break;
|
||||
case "변경2":
|
||||
$gameStor->maxgeneral = $maxgeneral;
|
||||
@@ -78,4 +83,4 @@ switch ($btn) {
|
||||
break;
|
||||
}
|
||||
|
||||
header('location:_admin1.php');
|
||||
header('location:_admin1.php');
|
||||
|
||||
Reference in New Issue
Block a user