Skip to content

Commit

Permalink
Localize additional Person and Place
Browse files Browse the repository at this point in the history
Person NameMacro3 and NameMacro4.
Place NameMacro2 and NameMacro3.
  • Loading branch information
Interkarma committed Nov 27, 2022
1 parent 49799a1 commit 27757d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Assets/Scripts/Game/Questing/Person.cs
Expand Up @@ -311,11 +311,11 @@ public override bool ExpandMacro(MacroTypes macro, out string textOut)
break;

case MacroTypes.NameMacro3: // town name
textOut = (dialogPlace != null ? dialogPlace.SiteDetails.locationName : BLANK);
textOut = (dialogPlace != null ? TextManager.Instance.GetLocalizedLocationName(dialogPlace.SiteDetails.mapId, dialogPlace.SiteDetails.locationName) : BLANK);
break;

case MacroTypes.NameMacro4: // region name
textOut = (dialogPlace != null ? dialogPlace.SiteDetails.regionName : BLANK);
textOut = (dialogPlace != null ? TextManager.Instance.GetLocalizedRegionName(dialogPlace.SiteDetails.regionIndex) : BLANK);
break;

case MacroTypes.DetailsMacro: // Details macro
Expand Down
4 changes: 2 additions & 2 deletions Assets/Scripts/Game/Questing/Place.cs
Expand Up @@ -260,11 +260,11 @@ public override bool ExpandMacro(MacroTypes macro, out string textOut)
break;

case MacroTypes.NameMacro2: // Name of location/dungeon (e.g. Gothway Garden)
textOut = siteDetails.locationName;
textOut = TextManager.Instance.GetLocalizedLocationName(siteDetails.mapId, siteDetails.locationName);
break;

case MacroTypes.NameMacro3: // Name of dungeon (e.g. Privateer's Hold) - Not sure about this one, need to test
textOut = siteDetails.locationName;
textOut = TextManager.Instance.GetLocalizedLocationName(siteDetails.mapId, siteDetails.locationName);
break;

case MacroTypes.NameMacro4: // Name of region (e.g. Tigonus)
Expand Down

0 comments on commit 27757d9

Please sign in to comment.