mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Probably fix turkish breaking
This commit is contained in:
parent
fd99bffc98
commit
cb4f9c57a2
@ -1,4 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Globalization;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using NewHorizons.Components.Orbital;
|
using NewHorizons.Components.Orbital;
|
||||||
using NewHorizons.Handlers;
|
using NewHorizons.Handlers;
|
||||||
@ -33,7 +34,7 @@ namespace NewHorizons.Utility.OuterWilds
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Else check stock names
|
// Else check stock names
|
||||||
var stringID = name.ToUpper().Replace(" ", "_").Replace("'", "");
|
var stringID = name.ToUpper(CultureInfo.InvariantCulture).Replace(" ", "_").Replace("'", "");
|
||||||
if (stringID.Equals("ATTLEROCK")) stringID = "TIMBER_MOON";
|
if (stringID.Equals("ATTLEROCK")) stringID = "TIMBER_MOON";
|
||||||
if (stringID.Equals("HOLLOWS_LANTERN")) stringID = "VOLCANIC_MOON";
|
if (stringID.Equals("HOLLOWS_LANTERN")) stringID = "VOLCANIC_MOON";
|
||||||
if (stringID.Equals("ASH_TWIN")) stringID = "TOWER_TWIN";
|
if (stringID.Equals("ASH_TWIN")) stringID = "TOWER_TWIN";
|
||||||
@ -42,7 +43,7 @@ namespace NewHorizons.Utility.OuterWilds
|
|||||||
if (stringID.Equals("EYE") || stringID.Equals("EYEOFTHEUNIVERSE")) stringID = "EYE_OF_THE_UNIVERSE";
|
if (stringID.Equals("EYE") || stringID.Equals("EYEOFTHEUNIVERSE")) stringID = "EYE_OF_THE_UNIVERSE";
|
||||||
|
|
||||||
string key;
|
string key;
|
||||||
if (stringID.ToUpper().Replace("_", "").Equals("MAPSATELLITE"))
|
if (stringID.ToUpper(CultureInfo.InvariantCulture).Replace("_", "").Equals("MAPSATELLITE"))
|
||||||
{
|
{
|
||||||
key = AstroObject.Name.MapSatellite.ToString();
|
key = AstroObject.Name.MapSatellite.ToString();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user