TargetHealthCon.cs 520 B

12345678910111213141516
  1. using Content.Shared.Mobs;
  2. namespace Content.Server.NPC.Queries.Considerations;
  3. /// <summary>
  4. /// Goes linearly from 1f to 0f, with 0 damage returning 1f and <see cref=TargetState> damage returning 0f
  5. /// </summary>
  6. public sealed partial class TargetHealthCon : UtilityConsideration
  7. {
  8. /// <summary>
  9. /// Which MobState the consideration returns 0f at, defaults to choosing earliest incapacitating MobState
  10. /// </summary>
  11. [DataField("targetState")]
  12. public MobState TargetState = MobState.Invalid;
  13. }