From 439c4128005f50620d6a04c0807c068f553695c9 Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 7 Feb 2024 23:17:22 +0000 Subject: [PATCH] Ensure fence assorts are always rounded to nearest integer --- project/src/services/FenceService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/src/services/FenceService.ts b/project/src/services/FenceService.ts index ccce8303..60824792 100644 --- a/project/src/services/FenceService.ts +++ b/project/src/services/FenceService.ts @@ -580,7 +580,7 @@ export class FenceService // Must be careful to use correct id as the item has had its IDs regenerated assorts.barter_scheme[presetWithChildrenClone[0]._id] = [[{ _tpl: "5449016a4bdc2d6f028b456f", - count: itemPrice, + count: Math.round(itemPrice), }]]; assorts.loyal_level_items[presetWithChildrenClone[0]._id] = loyaltyLevel; @@ -639,7 +639,7 @@ export class FenceService // Must be careful to use correct id as the item has had its IDs regenerated assorts.barter_scheme[presetWithChildrenClone[0]._id] = [[{ _tpl: "5449016a4bdc2d6f028b456f", - count: itemPrice, + count: Math.round(itemPrice), }]]; assorts.loyal_level_items[presetWithChildrenClone[0]._id] = loyaltyLevel;