Ensure fence assorts are always rounded to nearest integer
This commit is contained in:
parent
15bf71b16f
commit
439c412800
@ -580,7 +580,7 @@ export class FenceService
|
|||||||
// Must be careful to use correct id as the item has had its IDs regenerated
|
// Must be careful to use correct id as the item has had its IDs regenerated
|
||||||
assorts.barter_scheme[presetWithChildrenClone[0]._id] = [[{
|
assorts.barter_scheme[presetWithChildrenClone[0]._id] = [[{
|
||||||
_tpl: "5449016a4bdc2d6f028b456f",
|
_tpl: "5449016a4bdc2d6f028b456f",
|
||||||
count: itemPrice,
|
count: Math.round(itemPrice),
|
||||||
}]];
|
}]];
|
||||||
assorts.loyal_level_items[presetWithChildrenClone[0]._id] = loyaltyLevel;
|
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
|
// Must be careful to use correct id as the item has had its IDs regenerated
|
||||||
assorts.barter_scheme[presetWithChildrenClone[0]._id] = [[{
|
assorts.barter_scheme[presetWithChildrenClone[0]._id] = [[{
|
||||||
_tpl: "5449016a4bdc2d6f028b456f",
|
_tpl: "5449016a4bdc2d6f028b456f",
|
||||||
count: itemPrice,
|
count: Math.round(itemPrice),
|
||||||
}]];
|
}]];
|
||||||
assorts.loyal_level_items[presetWithChildrenClone[0]._id] = loyaltyLevel;
|
assorts.loyal_level_items[presetWithChildrenClone[0]._id] = loyaltyLevel;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user