From 850073a0961b0c6e1d3743e1a66e86ae858acbf1 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Wed, 27 Jul 2022 22:30:22 +0900 Subject: [PATCH] =?UTF-8?q?game:=20=EC=9C=A0=EB=8B=88=ED=81=AC=20=EB=82=99?= =?UTF-8?q?=EC=B0=B0=20=EC=8B=9C=20=EC=97=B0=EC=9E=A5=EB=90=A0=20=EB=95=8C?= =?UTF-8?q?=20'=EC=83=81=EC=9D=B8'=20=EC=A0=84=ED=99=98=20-=20=EA=B0=9C?= =?UTF-8?q?=EC=B5=9C=EC=9E=90=EC=99=80=20=EB=82=99=EC=B0=B0=EC=9E=90?= =?UTF-8?q?=EA=B0=80=20=EB=8B=A4=EB=A5=BC=EB=95=8C=EC=97=90=EB=A7=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/AuctionUniqueItem.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hwe/sammo/AuctionUniqueItem.php b/hwe/sammo/AuctionUniqueItem.php index e6c78fa7..b338ebb2 100644 --- a/hwe/sammo/AuctionUniqueItem.php +++ b/hwe/sammo/AuctionUniqueItem.php @@ -225,6 +225,11 @@ class AuctionUniqueItem extends Auction return $this->_bid($amount, $tryExtendCloseDate); } + protected function setHostAsNeutral(){ + $this->info->hostGeneralID = 0; + $this->info->detail->hostName = '(상인)'; + } + protected function finishAuction(AuctionBidItem $highestBid, General $bidder): ?string { $itemKey = $this->info->target; @@ -263,6 +268,9 @@ class AuctionUniqueItem extends Auction max(static::MIN_EXTENSION_MINUTES_BY_EXTENSION_QUERY, $turnTerm * static::COEFF_EXTENSION_MINUTES_LIMIT_UNIQUE_CNT) * 60 )); + if($bidder->getID() != $this->info->hostGeneralID){ + $this->setHostAsNeutral(); + } $this->extendCloseDate($extendedCloseDate, true); $this->extendLatestBidCloseDate(null); $this->applyDB(); @@ -308,6 +316,9 @@ class AuctionUniqueItem extends Auction max(static::MIN_EXTENSION_MINUTES_LIMIT_BY_BID, $turnTerm * static::COEFF_EXTENSION_MINUTES_LIMIT_BY_BID) * 60 )); + if($bidder->getID() != $this->info->hostGeneralID){ + $this->setHostAsNeutral(); + } $this->extendCloseDate($extendedCloseDate, true); $this->extendLatestBidCloseDate(null); }