Fix selling stakc items

This commit is contained in:
2024-07-18 14:47:18 +02:00
parent 8a4718d64c
commit bd9e54fedb

View File

@@ -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);
} }
} }
} }