Fix issue spotted by Shibdib where player flea offers aren't taking into account globals time listing value

This commit is contained in:
Dev 2023-12-16 15:11:11 +00:00
parent 64334339b3
commit d2f6a16312

View File

@ -276,8 +276,9 @@ export class RagfairOfferGenerator
{ {
if (this.ragfairServerHelper.isPlayer(userID)) if (this.ragfairServerHelper.isPlayer(userID))
{ {
// Player offer // Player offer = current time + offerDurationTimeInHour;
return this.timeUtil.getTimestamp() + Math.round(12 * TimeUtil.oneHourAsSeconds); const offerDurationTimeHours = this.databaseServer.getTables().globals.config.RagFair.offerDurationTimeInHour;
return this.timeUtil.getTimestamp() + Math.round(offerDurationTimeHours * TimeUtil.oneHourAsSeconds);
} }
if (this.ragfairServerHelper.isTrader(userID)) if (this.ragfairServerHelper.isTrader(userID))