From b2f95cb4c07e9e8183003d29dbb245be60b086e0 Mon Sep 17 00:00:00 2001 From: fenyx4 Date: Sat, 31 Jul 2021 17:49:42 -0500 Subject: [PATCH] Don't trust it to maintain the unicode characters --- U4DosRandomizer/WorldMapGenerateMap.cs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/U4DosRandomizer/WorldMapGenerateMap.cs b/U4DosRandomizer/WorldMapGenerateMap.cs index fc12812..b856460 100644 --- a/U4DosRandomizer/WorldMapGenerateMap.cs +++ b/U4DosRandomizer/WorldMapGenerateMap.cs @@ -489,6 +489,13 @@ public override void Load(string path, int mapSeed, int mapGeneratorSeed, int ot private void ApplyRegions(UltimaData ultimaData, Random random) { + var runicMap = new Dictionary() + { + { "TH", '\u00C4' }, //Ä + { "EE", '\u00C1' }, //Á + { "EA", '\u00C0' } //À + }; + Regions = new List(); var forests = FindBodies(tile => tile.GetTile() == TileInfo.Forest).OrderByDescending(b => b.Count()); @@ -501,7 +508,7 @@ private void ApplyRegions(UltimaData ultimaData, Random random) Regions.Add(new Region { Name = "The Deep Forest", - RunicName = "Äe DÁp Forest", + RunicName = $"{runicMap["TH"]}e D{runicMap["EE"]}p Forest", Tiles = forestEnumerator.Current, Center = GetCenterOfRegion(forestEnumerator.Current) }); @@ -564,7 +571,7 @@ private void ApplyRegions(UltimaData ultimaData, Random random) Regions.Add(new Region { Name = "Isle of Deeds", - RunicName = "Isle of DÁds", + RunicName = $"Isle of D{runicMap["EE"]}ds", Tiles = islandEnumerator.Current, Center = GetCenterOfRegion(islandEnumerator.Current) }); @@ -588,7 +595,7 @@ private void ApplyRegions(UltimaData ultimaData, Random random) Regions.Add(new Region { Name = "The High Stepes", - RunicName = "Äe High Stepes", + RunicName = $"{runicMap["TH"]}e High Stepes", Tiles = plainsEnumerator.Current, Center = GetCenterOfRegion(plainsEnumerator.Current) }); @@ -611,7 +618,7 @@ private void ApplyRegions(UltimaData ultimaData, Random random) Regions.Add(new Region { Name = "Fens of the Dead", - RunicName = "Fens of the DÀd", + RunicName = $"Fens of the D{runicMap["EA"]}d", Tiles = swampsEnumerator.Current, Center = GetCenterOfRegion(swampsEnumerator.Current) });