Fold scattered constants into Tuning

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ZHU MINCHAOandClaude Sonnet 5.5 committed 2026-11-03 18:36:01 +08:00
1 parent 81b42ac2d3
commit b28a03f565
8 files changed
+25 -14

No files matched your search

+1 -1
View File
@@ -105,7 +105,7 @@ namespace Decentralized.Domain
public static long Of(string model, double health)
{
var spec = Hardware.Specs[model];
double f = 0.25 + 0.75 * Math.Max(0, Math.Min(100, health)) / 100.0;
double f = Tuning.CardValueFloor + (1 - Tuning.CardValueFloor) * Math.Max(0, Math.Min(100, health)) / 100.0;
return Math.Max(1, (long)Math.Round(spec.Price * f));
}