v1.5.7.0 (Summer Update)
This commit is contained in:
@@ -32,6 +32,11 @@ namespace Barotrauma
|
||||
/// </summary>
|
||||
public readonly Identifier BiomeIdentifier;
|
||||
|
||||
/// <summary>
|
||||
/// If set, this layer must be present somewhere in the level.
|
||||
/// </summary>
|
||||
public readonly Identifier RequiredLayer;
|
||||
|
||||
/// <summary>
|
||||
/// If set, the event set can only be chosen in locations that belong to this faction.
|
||||
/// </summary>
|
||||
@@ -94,6 +99,8 @@ namespace Barotrauma
|
||||
Probability = Math.Clamp(element.GetAttributeFloat(1.0f, "probability", "spawnprobability"), 0, 1);
|
||||
TriggerEventCooldown = element.GetAttributeBool("triggereventcooldown", EventType != typeof(ScriptedEvent));
|
||||
|
||||
RequiredLayer = element.GetAttributeIdentifier(nameof(RequiredLayer), Identifier.Empty);
|
||||
|
||||
UnlockPathEvent = element.GetAttributeBool("unlockpathevent", false);
|
||||
UnlockPathTooltip = element.GetAttributeString("unlockpathtooltip", "lockedpathtooltip");
|
||||
UnlockPathReputation = element.GetAttributeInt("unlockpathreputation", 0);
|
||||
|
||||
Reference in New Issue
Block a user