第十一阶段 stage 1:污点代替没收、模块不设上限、出块 ×10
- 预测市场内幕单改为确定性记污点:结算或卖出时照常兑付,内幕份额对应的兑付记收款钱包污点;删除 PredictInsiderShare、PredictInsiderCatch - 操纵检出被查后照常兑付,预测兑付记钱包污点、永续盈利记 Poinbase 账户污点;删除 ManipFreezeDays - Wallet.AddTaintCapped:污点不超过钱包当时的价值,超出部分按 PredictFraudShare / PredictFraudCap 记诈骗罪证(TaintCrime.Commit) - 模块效果不设上限,只留算力、耗电、损耗乘数的下限(ModuleHashFloor / ModuleKjFloor / ModuleWearFloor) - BlockReward 100 → 1000,NpcHash0 360 → 3600 - 修正内幕卖出日志"只退本金"的错误说法;8 种语言文字与手册更新 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
45a6ec2f77
commit
bc23ae056b
18 files changed
+248
-205
No files matched your search
@@ -47,4 +47,18 @@ namespace Decentralized
|
||||
public static string Num(double v) => Math.Abs(v) >= 100 ? v.ToString("N0") : Math.Abs(v) >= 1 ? v.ToString("0.##") : v.ToString("0.####");
|
||||
public static string Credits(double v) => v.ToString("N0");
|
||||
}
|
||||
|
||||
/// <summary>污点超出钱包价值的部分:按 <see cref="Decentralized.Domain.Wallet.OverflowFraud"/> 记诈骗罪证,返回接在消息后面的一句(没有超出返回空串)。</summary>
|
||||
public static class TaintCrime
|
||||
{
|
||||
public static string Commit(double over)
|
||||
{
|
||||
if (over <= 1e-9) return "";
|
||||
int fraud = (int)Math.Round(Decentralized.Domain.Wallet.OverflowFraud(over));
|
||||
if (fraud > 0) PlayerStore.Instance.secData.CommitCrime("FRAUD", fraud);
|
||||
// 接在上一句后面:中日文不加空格,其他语言隔一个空格
|
||||
string sep = L.Code.StartsWith("zh") || L.Code.StartsWith("ja") ? "" : " ";
|
||||
return sep + L.T("taint.overflow", Fmt.Credits(over));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user