Fix selling stakc items
This commit is contained in:
@@ -301,11 +301,11 @@ public static class MultiSelectPatches
|
|||||||
|
|
||||||
if (fleaPrice.HasValue) {
|
if (fleaPrice.HasValue) {
|
||||||
var req = new FleaRequirement {
|
var req = new FleaRequirement {
|
||||||
count = (int)(fleaPrice.Value * 1.4),
|
count = (int)(fleaPrice.Value * item.StackObjectsCount * 1.4),
|
||||||
_tpl = "5449016a4bdc2d6f028b456f"
|
_tpl = "5449016a4bdc2d6f028b456f"
|
||||||
};
|
};
|
||||||
Console.WriteLine("Selling " + item.Name + " for " + req.count + " roubl");
|
Console.WriteLine("Selling " + item.Name + " for " + req.count + " roubl");
|
||||||
Session.RagFair.AddOffer(false, [item.Id], [req], null);
|
Session.RagFair.AddOffer(true, [item.Id], [req], null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user