mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-18 22:18:52 +03:00
Implement TargetHealthCon (cherry picked from commit 3ee7d7bc353dffccc0fee088d2480bb11cf78c3a)
17 lines
520 B
C#
17 lines
520 B
C#
using Content.Shared.Mobs;
|
|
|
|
namespace Content.Server.NPC.Queries.Considerations;
|
|
|
|
/// <summary>
|
|
/// Goes linearly from 1f to 0f, with 0 damage returning 1f and <see cref=TargetState> damage returning 0f
|
|
/// </summary>
|
|
public sealed partial class TargetHealthCon : UtilityConsideration
|
|
{
|
|
|
|
/// <summary>
|
|
/// Which MobState the consideration returns 0f at, defaults to choosing earliest incapacitating MobState
|
|
/// </summary>
|
|
[DataField("targetState")]
|
|
public MobState TargetState = MobState.Invalid;
|
|
}
|