Inspection overlays designed by agy; appearance dimensions tied to value, wear and death

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ZHU MINCHAOandClaude Sonnet 5.5 committed 2026-11-03 13:04:45 +08:00
1 parent dd95aad7aa
commit 6b2d394023
76 files changed
+1221 -11

No files matched your search

+2 -2
View File
@@ -103,14 +103,14 @@ namespace Decentralized.Domain
public double DeathChance(ModuleBonus b)
{
double p = Tuning.DeathBase + Tuning.DeathWorn * Math.Pow(1 - Health / 100, 2);
return p * Label.DeathFactor * (FakeOf != null ? Tuning.FakeDeathFactor : 1) * b.Death;
return p * Label.DeathFactor * (FakeOf != null ? Tuning.FakeDeathFactor : 1) * b.Death * Look.DeathFactor;
}
/// <summary>一夜的损耗与暴毙判定;返回是否在今晚暴毙。</summary>
public bool Night(ModuleBonus b, Rng rng)
{
if (Dead) return false;
Health = Math.Max(0, Health - Label.WearFactor * b.Wear);
Health = Math.Max(0, Health - Label.WearFactor * b.Wear * Look.WearFactor);
if (rng.Chance(DeathChance(b)))
{
Dead = true;