For DamagedSiliconAccent use Destructible threshold for default "DamageAtMaxThreshold" (#37252)

* set DamageAtMaxCorruption as nullable with null default and use destructible trigger threshold for this if null.

* fix documentation

* these really don't need to be passed by reference
This commit is contained in:
Quantum-cross
2025-05-07 20:44:36 -04:00
committed by GitHub
parent d80934b156
commit 6bb3b83bf1
2 changed files with 22 additions and 8 deletions

View File

@@ -27,10 +27,11 @@ public sealed partial class DamagedSiliconAccentComponent : Component
/// <summary>
/// Probability of character corruption will increase linearly to <see cref="MaxDamageCorruption" /> once until
/// total damage is at or above this value.
/// total damage is at or above this value. If null, it will use the value returned by
/// DestructibleSystem.DestroyedAt, which is the damage threshold for destruction or breakage.
/// </summary>
[DataField]
public FixedPoint2 DamageAtMaxCorruption = 300;
public FixedPoint2? DamageAtMaxCorruption;
/// <summary>
/// Enable charge level corruption effects