Unstable v0.1300.0.2

This commit is contained in:
Markus Isberg
2021-03-12 15:57:04 +02:00
parent 0f6de8ada9
commit 874616027b
145 changed files with 1897 additions and 939 deletions
@@ -12,9 +12,13 @@ namespace Barotrauma
public readonly bool TriggerEventCooldown;
public float Commonness;
public string Identifier;
public bool UnlockPathEvent;
public string BiomeIdentifier;
public bool UnlockPathEvent;
public string UnlockPathTooltip;
public int UnlockPathReputation;
public string UnlockPathFaction;
public EventPrefab(XElement element)
{
ConfigElement = element;
@@ -33,11 +37,15 @@ namespace Barotrauma
}
Identifier = ConfigElement.GetAttributeString("identifier", string.Empty);
BiomeIdentifier = ConfigElement.GetAttributeString("biome", string.Empty);
Commonness = element.GetAttributeFloat("commonness", 1.0f);
SpawnProbability = Math.Clamp(element.GetAttributeFloat("spawnprobability", 1.0f), 0, 1);
TriggerEventCooldown = element.GetAttributeBool("triggereventcooldown", true);
UnlockPathEvent = element.GetAttributeBool("unlockpathevent", false);
BiomeIdentifier = ConfigElement.GetAttributeString("biome", string.Empty);
UnlockPathTooltip = element.GetAttributeString("unlockpathtooltip", "lockedpathtooltip");
UnlockPathReputation = element.GetAttributeInt("unlockpathreputation", 0);
UnlockPathFaction = element.GetAttributeString("unlockpathfaction", "");
}
public Event CreateInstance()