Black market: anonymous hash merchant names with type tag

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ZHU MINCHAOandClaude Sonnet 5.5 committed 2026-11-03 21:25:48 +08:00
1 parent 96d8b7cf3b
commit 4422bd99ab
5 files changed
+26 -11

No files matched your search

+5 -2
View File
@@ -42,6 +42,9 @@ namespace Decentralized
return ModHelper.SpawnItem(id);
}
/// <summary>商家名:随机的匿名哈希,类型另外标注。</summary>
public static string DisplayName(string name) => name;
public static string ItemName(string id)
{
var it = ModHelper.SpawnItem(GameId(id));
@@ -115,8 +118,8 @@ namespace Decentralized
switch (e.Kind)
{
case "ready": ps.AddNightLog(L.T("nightlog.bm.ready", name), "99bb66"); break;
case "scam_refund": ps.AddNightLog(L.T("nightlog.bm.scam_refund", e.Order.Seller, name), "cc7755"); break;
case "scam_loss": ps.AddNightLog(L.T("nightlog.bm.scam_loss", e.Order.Seller, name, Fmt.Num(e.Amount)), "cc7755"); break;
case "scam_refund": ps.AddNightLog(L.T("nightlog.bm.scam_refund", DisplayName(e.Order.Seller), name), "cc7755"); break;
case "scam_loss": ps.AddNightLog(L.T("nightlog.bm.scam_loss", DisplayName(e.Order.Seller), name, Fmt.Num(e.Amount)), "cc7755"); break;
case "intercept": ps.AddNightLog(L.T("nightlog.bm.intercept", name, Fmt.Num(e.Amount)), "cc7755"); break;
case "rug": ps.AddNightLog(L.T("nightlog.bm.rug", name, Fmt.Num(e.Amount)), "cc7755"); break;
case "trap":