Black market: 18 merchant types from the game's items and player professions
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
378203d04d
commit
61ec91b34d
11 files changed
+132
-52
No files matched your search
@@ -737,10 +737,10 @@ internal static class Program
|
||||
}
|
||||
double avg = sum / n;
|
||||
Check(avg > 8000 && avg < 40000, $"每周货架总值(游戏里实测平均约 1.4 万,这里用统一基础价 250):平均 {avg:0}");
|
||||
Check(bulk > n * 0.15 && bulk < n * 0.35 && types.Count == 7, $"大宗商家约 {Tuning.BmBulkChance:P0} 的周出现:{bulk}/{n};七种类型都出现过");
|
||||
Check(bulk > n * 0.15 && bulk < n * 0.35 && types.Count >= 18, $"大宗商家约 {Tuning.BmBulkChance:P0} 的周出现:{bulk}/{n};七种类型都出现过");
|
||||
// 批量下单:折扣、库存扣减
|
||||
Func<string, double> price = a => 1;
|
||||
var m = new BlackMarket(); m.Sellers.Add(new BmSeller { Name = "a", Trades = 100, Type = MerchantType.Mods, Factor = 0.8 });
|
||||
var m = new BlackMarket(); m.Sellers.Add(new BmSeller { Name = "a", Trades = 100, Type = MerchantType.Modules, Factor = 0.8 });
|
||||
var l = new BmListing { Seller = 0, Item = "x", Price = 100, Qty = 8 };
|
||||
m.Catalog.Add(l);
|
||||
var w = new Wallet(); w.Add(Assets.CRT, 5000);
|
||||
@@ -748,7 +748,7 @@ internal static class Program
|
||||
Check(o != null && o.Count == 5 && o.Price == (int)Math.Round(475 * 0.9) && l.Qty == 3 && m.Catalog.Contains(l), "订 5 件:95 折,再按提前放款打折,库存扣 5");
|
||||
Check(m.Place(l, 4, PayMode.Escrow, w, Assets.CRT, 1, price) == null && m.Place(l, 3, PayMode.Escrow, w, Assets.CRT, 1, price) != null && !m.Catalog.Contains(l), "超过库存不能订;订完下架");
|
||||
var bs = new BmSeller { Type = MerchantType.Bulk };
|
||||
Check(bs.Days == Tuning.BmBulkDays && new BmSeller { Type = MerchantType.Mods }.Days == Tuning.BmDoorDays, "大宗商家送货更久");
|
||||
Check(bs.Days == Tuning.BmBulkDays && new BmSeller { Type = MerchantType.Modules }.Days == Tuning.BmDoorDays, "大宗商家送货更久");
|
||||
// 出售量推高污点
|
||||
var b2 = new BlackMarket();
|
||||
double v0 = b2.VolumeTaint(10);
|
||||
|
||||
Reference in new issue
Block a user