mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-18 05:59:03 +03:00
# Description Adds two new IPC-exclusive negative traits. For 3 points, Faulty Waterproofing makes you take shock damage when splashed with or slipping in water, similarly to slimes. For 4 points, Fragile Circuits makes you shut down whenever you take shock damage. (yes, you can make it so that you instantly die for slipping in a puddle) --- <details><summary><h1>Media</h1></summary> <p>      </p> </details> --- # Changelog 🆑 - add: Added Faulty Waterproofing trait - add: Added Fragile Circuits trait --------- Signed-off-by: GNUtopia <93669372+GNUtopia@users.noreply.github.com> (cherry picked from commit 1bb6518b24a9f939686db0d08908ec6618145235)
19 lines
589 B
C#
19 lines
589 B
C#
namespace Content.Server.Traits.Assorted;
|
|
|
|
/// <summary>
|
|
/// Kills an entity when it takes a certain amount of a certain damage type in a single instance.
|
|
/// Damage type required, minimum damage of that type required to kill, and message shown on death are customisable.
|
|
/// </summary>
|
|
[RegisterComponent, Access(typeof(KillOnDamageSystem))]
|
|
public sealed partial class KillOnDamageComponent : Component
|
|
{
|
|
[DataField]
|
|
public string DamageType = "Shock";
|
|
|
|
[DataField]
|
|
public float Threshold = 5.0f;
|
|
|
|
[DataField]
|
|
public LocId Popup = "fragileCircuits-kill-popup";
|
|
}
|