feat,wip: 유니크 경매 개시 시 로그

This commit is contained in:
2022-06-09 01:21:21 +09:00
parent 606fa4a922
commit 4d6b3d1a53
+8 -1
View File
@@ -98,7 +98,7 @@ class AuctionUniqueItem extends Auction
$now = new DateTimeImmutable();
$turnTerm = $gameStor->getValue('turnterm');
[$turnTerm, $year, $month] = $gameStor->getValuesAsArray(['turnterm', 'year', 'month']);
$closeDate = $now->add(TimeUtil::secondsToDateInterval(
max(static::MIN_AUCTION_CLOSE_MINUTES, $turnTerm * static::COEFF_AUCTION_CLOSE_MINUTES) * 60
@@ -142,6 +142,13 @@ class AuctionUniqueItem extends Auction
return "경매를 시작했지만, 첫 입찰에 실패했습니다: {$msg}";
}
$itemName = $item->getName();
$josaRa = JosaUtil::pick($item->getRawName(), '라');
$logger = new ActionLogger(0, 0, $year, $month);
$logger->pushGlobalHistoryLog("누군가가 <C>{$itemName}</>{$josaRa}는 보물을 구한다는 소문이 들려옵니다.");
$logger->flush();
return $auction;
}