From 133367b58d28eebd1dd971859eb806a5cd86ffce Mon Sep 17 00:00:00 2001 From: ZHU MINCHAO <48154958+MinchaoZhu@users.noreply.github.com> Date: Tue, 3 Nov 2026 16:25:38 +0800 Subject: [PATCH] Coin buyer test entry: mark seeds as stolen to exercise taint Co-Authored-By: Claude Sonnet 5.5 --- src/Decentralized/CoinCustomers.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Decentralized/CoinCustomers.cs b/src/Decentralized/CoinCustomers.cs index bc8a7ba..0ca3b6e 100644 --- a/src/Decentralized/CoinCustomers.cs +++ b/src/Decentralized/CoinCustomers.cs @@ -29,10 +29,13 @@ namespace Decentralized c.AddBasicDialog(); c.CompleteClientCreation(); Mark(c, Assets.CRT); - Log.Info($"用币付款顾客(测试)已设置,当前顾客 {PlayerStore.Instance.currentClientInstance?.GetClientBlueprint()?.identifier},队列 {PlayerStore.Instance.storeClientManager.clientStack.Count} 人"); + Log.Info($"用币付款顾客(测试)已设置,钱包污点 {Session.Data.Hot.Taint:0.##},当前顾客 {PlayerStore.Instance.currentClientInstance?.GetClientBlueprint()?.identifier},队列 {PlayerStore.Instance.storeClientManager.clientStack.Count} 人"); PlayerStore.Instance.currentClientInstance = null; // 测试:丢掉在场的顾客(开局的高利贷者不可遣散) PlayerStore.Instance.storeClientManager.clientStack.Insert(0, c); PlayerStore.Instance.TryCallNextClient(); + // 把后柜里的种子都标成赃物(热度 50%),买走后钱包的污点应为成交额的一半 + foreach (var it in EmporiumEntry.Instance.backInvinvElement.childItems) + if (it.IsTag("SEED")) it.ModifyTag("STOLEN_VALUE_INT", t => t.Enable().SetInt(50)); })); } public static void Unsubscribe() => ModHook.OnGenerateCustomerLate -= OnGenerate;