军团:拍卖行

This commit is contained in:
luying
2022-05-05 16:16:23 +08:00
parent bef0ceab9d
commit 3dee31b026
2 changed files with 7 additions and 3 deletions

View File

@@ -80,6 +80,9 @@ export class AuctionHandler {
}
let newPrice = Math.floor(curPrice * dicParam.GUILD_AUCTION.AUCTION_PRICE_RISE);
let maxFlag = max;
if (maxFlag) {
curPrice = maxPrice;
}
if (curPrice >= maxPrice) {
curPrice = maxPrice;
newPrice = maxPrice;
@@ -88,6 +91,7 @@ export class AuctionHandler {
if(newPrice > maxPrice) {
newPrice = maxPrice;
}
const costRes = await handleCost(roleId, sid, [{ id: CURRENCY_BY_TYPE.get(CURRENCY_TYPE.GOLD), count: curPrice }], ITEM_CHANGE_REASON.AUCTION_OFFER);
if (!costRes) {
res.releaseCallback();