Coin buyer test entry: mark seeds as stolen to exercise taint
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b24dd8b9f2
commit
133367b58d
1 file changed
+4
-1
@@ -29,10 +29,13 @@ namespace Decentralized
|
|||||||
c.AddBasicDialog();
|
c.AddBasicDialog();
|
||||||
c.CompleteClientCreation();
|
c.CompleteClientCreation();
|
||||||
Mark(c, Assets.CRT);
|
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.currentClientInstance = null; // 测试:丢掉在场的顾客(开局的高利贷者不可遣散)
|
||||||
PlayerStore.Instance.storeClientManager.clientStack.Insert(0, c);
|
PlayerStore.Instance.storeClientManager.clientStack.Insert(0, c);
|
||||||
PlayerStore.Instance.TryCallNextClient();
|
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;
|
public static void Unsubscribe() => ModHook.OnGenerateCustomerLate -= OnGenerate;
|
||||||
|
|||||||
Reference in new issue
Block a user