mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fixed Entry IDs not getting registered to _entryIDsToNHBody
This commit is contained in:
parent
d5707ca9ad
commit
61f794b08a
@ -71,16 +71,22 @@ namespace NewHorizons.Builder.ShipLog
|
|||||||
{
|
{
|
||||||
XElement curiosityName = entryElement.Element("Curiosity");
|
XElement curiosityName = entryElement.Element("Curiosity");
|
||||||
XElement id = entryElement.Element("ID");
|
XElement id = entryElement.Element("ID");
|
||||||
if (curiosityName != null && id != null && _entryIdToRawName.ContainsKey(id.Value) == false)
|
if (id != null)
|
||||||
{
|
{
|
||||||
entryIDs.Add(id.Value);
|
entryIDs.Add(id.Value);
|
||||||
|
if (curiosityName != null && _entryIdToRawName.ContainsKey(id.Value) == false)
|
||||||
|
{
|
||||||
_entryIdToRawName.Add(id.Value, curiosityName.Value);
|
_entryIdToRawName.Add(id.Value, curiosityName.Value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
foreach (XElement childEntryElement in entryElement.Elements("Entry"))
|
foreach (XElement childEntryElement in entryElement.Elements("Entry"))
|
||||||
{
|
{
|
||||||
XElement childCuriosityName = childEntryElement.Element("Curiosity");
|
XElement childCuriosityName = childEntryElement.Element("Curiosity");
|
||||||
XElement childId = childEntryElement.Element("ID");
|
XElement childId = childEntryElement.Element("ID");
|
||||||
if (childId != null && _entryIdToRawName.ContainsKey(childId.Value))
|
if (childId != null)
|
||||||
|
{
|
||||||
|
entryIDs.Add(childId.Value);
|
||||||
|
if (_entryIdToRawName.ContainsKey(childId.Value))
|
||||||
{
|
{
|
||||||
if (childCuriosityName == null && curiosityName != null)
|
if (childCuriosityName == null && curiosityName != null)
|
||||||
{
|
{
|
||||||
@ -90,7 +96,7 @@ namespace NewHorizons.Builder.ShipLog
|
|||||||
{
|
{
|
||||||
_entryIdToRawName.Add(childId.Value, childCuriosityName.Value);
|
_entryIdToRawName.Add(childId.Value, childCuriosityName.Value);
|
||||||
}
|
}
|
||||||
entryIDs.Add(childId.Value);
|
}
|
||||||
}
|
}
|
||||||
AddTranslation(childEntryElement);
|
AddTranslation(childEntryElement);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user