From 39008f96976c8d86a02a7ac1f85fddb0c8da7e15 Mon Sep 17 00:00:00 2001 From: Jagget Date: Sat, 16 Dec 2023 00:21:59 -0500 Subject: [PATCH] Fix for region macro localization --- Assets/Scripts/Game/Questing/Place.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Game/Questing/Place.cs b/Assets/Scripts/Game/Questing/Place.cs index e41534b0cd..bff2c4b792 100644 --- a/Assets/Scripts/Game/Questing/Place.cs +++ b/Assets/Scripts/Game/Questing/Place.cs @@ -273,7 +273,9 @@ public override bool ExpandMacro(MacroTypes macro, out string textOut) // Workaround for older saves where regionIndex was not present and will always be 0 in save data (Alik'r Desert) // This can result in improper region name being displayed when loading an older save and quest not actually set in Alik'r Desert. // In these cases display name using the legacy regionName field stored in place data - textOut = siteDetails.regionName; + var index = + DaggerfallUnity.Instance.ContentReader.MapFileReader.GetRegionIndex(siteDetails.regionName); + textOut = TextManager.Instance.GetLocalizedRegionName(index); } else {