feat,wip: 유니크 경매 개시 시 로그
This commit is contained in:
@@ -98,7 +98,7 @@ class AuctionUniqueItem extends Auction
|
|||||||
|
|
||||||
$now = new DateTimeImmutable();
|
$now = new DateTimeImmutable();
|
||||||
|
|
||||||
$turnTerm = $gameStor->getValue('turnterm');
|
[$turnTerm, $year, $month] = $gameStor->getValuesAsArray(['turnterm', 'year', 'month']);
|
||||||
|
|
||||||
$closeDate = $now->add(TimeUtil::secondsToDateInterval(
|
$closeDate = $now->add(TimeUtil::secondsToDateInterval(
|
||||||
max(static::MIN_AUCTION_CLOSE_MINUTES, $turnTerm * static::COEFF_AUCTION_CLOSE_MINUTES) * 60
|
max(static::MIN_AUCTION_CLOSE_MINUTES, $turnTerm * static::COEFF_AUCTION_CLOSE_MINUTES) * 60
|
||||||
@@ -142,6 +142,13 @@ class AuctionUniqueItem extends Auction
|
|||||||
return "경매를 시작했지만, 첫 입찰에 실패했습니다: {$msg}";
|
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;
|
return $auction;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user