From 4d6b3d1a53df85a6a7ebcbbb2e9259ba350c35bd Mon Sep 17 00:00:00 2001 From: Hide_D Date: Wed, 8 Jun 2022 01:33:19 +0900 Subject: [PATCH] =?UTF-8?q?feat,wip:=20=EC=9C=A0=EB=8B=88=ED=81=AC=20?= =?UTF-8?q?=EA=B2=BD=EB=A7=A4=20=EA=B0=9C=EC=8B=9C=20=EC=8B=9C=20=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/AuctionUniqueItem.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; }