v1.5.9.1 (Summer Update Hotfix 2)
This commit is contained in:
@@ -299,6 +299,7 @@ namespace Barotrauma
|
||||
public XElement OrderData;
|
||||
|
||||
public bool PermanentlyDead;
|
||||
public bool RenamingEnabled = false;
|
||||
|
||||
private static ushort idCounter = 1;
|
||||
private const string disguiseName = "???";
|
||||
@@ -802,6 +803,7 @@ namespace Barotrauma
|
||||
LoadTagsBackwardsCompatibility(infoElement, tags);
|
||||
SpeciesName = infoElement.GetAttributeIdentifier("speciesname", "");
|
||||
PermanentlyDead = infoElement.GetAttributeBool("permanentlydead", false);
|
||||
RenamingEnabled = infoElement.GetAttributeBool("renamingenabled", false);
|
||||
ContentXElement element;
|
||||
if (!SpeciesName.IsEmpty)
|
||||
{
|
||||
@@ -1499,7 +1501,8 @@ namespace Barotrauma
|
||||
new XAttribute("startitemsgiven", StartItemsGiven),
|
||||
new XAttribute("personality", PersonalityTrait?.Identifier ?? Identifier.Empty),
|
||||
new XAttribute("lastrewarddistribution", LastRewardDistribution.Match(some: value => value, none: () => -1).ToString()),
|
||||
new XAttribute("permanentlydead", PermanentlyDead)
|
||||
new XAttribute("permanentlydead", PermanentlyDead),
|
||||
new XAttribute("renamingenabled", RenamingEnabled)
|
||||
);
|
||||
|
||||
if (HumanPrefabIds != default)
|
||||
|
||||
Reference in New Issue
Block a user