diff --git a/hwe/sammo/AuctionUniqueItem.php b/hwe/sammo/AuctionUniqueItem.php index 4c0b4381..71d3c0ce 100644 --- a/hwe/sammo/AuctionUniqueItem.php +++ b/hwe/sammo/AuctionUniqueItem.php @@ -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("누군가가 {$itemName}{$josaRa}는 보물을 구한다는 소문이 들려옵니다."); + $logger->flush(); + return $auction; }