Skip to content

Commit

Permalink
equippingWeapon string to use localized names
Browse files Browse the repository at this point in the history
This was using built-in item template name rather than displaying localized template name from Internal_Items.
Built-in template name is still used as a fallback.
  • Loading branch information
Interkarma committed Oct 7, 2023
1 parent 29be03b commit 244fce5
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -735,8 +735,9 @@ public override void OnPop()
DaggerfallUnityItem currentRightHandWeapon = player.ItemEquipTable.GetItem(EquipSlots.RightHand);
if (currentRightHandWeapon != null)
{
string templateName = TextManager.Instance.GetLocalizedItemName(currentRightHandWeapon.ItemTemplate.index, currentRightHandWeapon.ItemTemplate.name);
string message = TextManager.Instance.GetLocalizedText("equippingWeapon");
message = message.Replace("%s", currentRightHandWeapon.ItemTemplate.name);
message = message.Replace("%s", templateName);
DaggerfallUI.Instance.PopupMessage(message);
}
}
Expand All @@ -746,8 +747,9 @@ public override void OnPop()
DaggerfallUnityItem currentLeftHandWeapon = player.ItemEquipTable.GetItem(EquipSlots.LeftHand);
if (currentLeftHandWeapon != null)
{
string templateName = TextManager.Instance.GetLocalizedItemName(currentLeftHandWeapon.ItemTemplate.index, currentLeftHandWeapon.ItemTemplate.name);
string message = TextManager.Instance.GetLocalizedText("equippingWeapon");
message = message.Replace("%s", currentLeftHandWeapon.ItemTemplate.name);
message = message.Replace("%s", templateName);
DaggerfallUI.Instance.PopupMessage(message);
}
}
Expand Down

0 comments on commit 244fce5

Please sign in to comment.