v1.4.4.1 (Blood in the Water Update)
This commit is contained in:
+9
-6
@@ -4,24 +4,27 @@ using System.Linq;
|
||||
|
||||
namespace Barotrauma
|
||||
{
|
||||
/// <summary>
|
||||
/// Check whether a target has a specific affliction.
|
||||
/// </summary>
|
||||
internal class CheckAfflictionAction : BinaryOptionAction
|
||||
{
|
||||
[Serialize("", IsPropertySaveable.Yes)]
|
||||
[Serialize("", IsPropertySaveable.Yes, description: "Identifier of the affliction.")]
|
||||
public Identifier Identifier { get; set; } = Identifier.Empty;
|
||||
|
||||
[Serialize("", IsPropertySaveable.Yes)]
|
||||
[Serialize("", IsPropertySaveable.Yes, description: "Tag of the character to check.")]
|
||||
public Identifier TargetTag { get; set; } = Identifier.Empty;
|
||||
|
||||
[Serialize("", IsPropertySaveable.Yes, description: "Tag referring to the character who caused the affliction.")]
|
||||
[Serialize("", IsPropertySaveable.Yes, description: "Tag referring to the character who caused the affliction. Can be used to require the affliction to be caused by a specific character.")]
|
||||
public Identifier SourceCharacter { get; set; } = Identifier.Empty;
|
||||
|
||||
[Serialize(LimbType.None, IsPropertySaveable.Yes, "Only check afflictions on the specified limb type")]
|
||||
[Serialize(LimbType.None, IsPropertySaveable.Yes, "Only check afflictions on the specified limb type.")]
|
||||
public LimbType TargetLimb { get; set; }
|
||||
|
||||
[Serialize(true, IsPropertySaveable.Yes, "When set to false when TargetLimb is not specified prevent checking limb-specific afflictions")]
|
||||
[Serialize(true, IsPropertySaveable.Yes, "When set to false, limb-specific afflictions are ignored when not checking a specific limb.")]
|
||||
public bool AllowLimbAfflictions { get; set; }
|
||||
|
||||
[Serialize(0.0f, IsPropertySaveable.Yes, "Minimum strength of the affliction")]
|
||||
[Serialize(0.0f, IsPropertySaveable.Yes, "Minimum strength of the affliction.")]
|
||||
public float MinStrength { get; set; }
|
||||
|
||||
public CheckAfflictionAction(ScriptedEvent parentEvent, ContentXElement element) : base(parentEvent, element) { }
|
||||
|
||||
Reference in New Issue
Block a user