feat: replace game schedules with logical ticks

This commit is contained in:
Hide_D authored and Hide_D committed 2026-08-04 20:37:56 +09:00
1 parent 136acadd04
commit 5d9512ced7
69 files changed
+1616 -519

No files matched your search

+4 -3
View File
@@ -62,11 +62,12 @@ function processAuction()
{
$db = DB::db();
$now = TimeUtil::now();
$gameStor = KVStorage::getStorage($db, 'game_env');
$nowTick = GameClock::fromStorage($gameStor)->nowTick();
$auctionList = $db->queryAllLists(
'SELECT id, `type` FROM ng_auction WHERE `close_date` <= %s AND finished = 0',
$now
'SELECT id, `type` FROM ng_auction WHERE `close_tick` <= %i AND finished = 0',
$nowTick
);
if (!$auctionList) {