Update sold/returned template guid, fixes #40

This commit is contained in:
Dev 2023-05-29 16:05:19 +01:00
parent b84d8a66c2
commit 98e2af2ad4
2 changed files with 5 additions and 2 deletions

View File

@ -36,7 +36,7 @@ import { TraderHelper } from "./TraderHelper";
@injectable()
export class RagfairOfferHelper
{
protected static goodSoldTemplate = "5bdac0b686f7743e1665e09e";
protected static goodSoldTemplate = "5bdabfb886f7743e152e867e 0"; // Your {soldItem} {itemCount} items were bought by {buyerNickname}.
protected ragfairConfig: IRagfairConfig;
protected questConfig: IQuestConfig;
@ -226,6 +226,7 @@ export class RagfairOfferHelper
const profileOffers = this.getProfileOffers(sessionID);
// No offers, don't do anything
if (!profileOffers?.length)
{
return true;
@ -252,6 +253,8 @@ export class RagfairOfferHelper
this.completeOffer(sessionID, offer, boughtAmount);
offer.sellResult.splice(0, 1);
// TODO: Send a mail to player informing them offer was sold, text comes from locale with id: "5b55a1f786f77469803bca61 0" (Your offer was sold {buyerNickname})
}
}

View File

@ -28,7 +28,7 @@ export class RagfairServerHelper
{
protected ragfairConfig: IRagfairConfig;
protected questConfig: IQuestConfig;
protected static goodsReturnedTemplate = "5bdac06e86f774296f5a19c5";
protected static goodsReturnedTemplate = "5bdabfe486f7743e1665df6e 0"; // Your item was not sold
constructor(
@inject("RandomUtil") protected randomUtil: RandomUtil,