Skip to content

Commit

Permalink
Use localized skill name when enemy pacified
Browse files Browse the repository at this point in the history
  • Loading branch information
Interkarma committed Oct 10, 2023
1 parent e914214 commit 8fc527a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Assets/Scripts/Game/EnemySenses.cs
Expand Up @@ -486,7 +486,8 @@ void FixedUpdate()
{
motor.IsHostile = false;
var enemyName = TextManager.Instance.GetLocalizedEnemyName(enemyEntity.MobileEnemy.ID);
DaggerfallUI.AddHUDText(TextManager.Instance.GetLocalizedText("languagePacified").Replace("%e", enemyName).Replace("%s", languageSkill.ToString()), 5);
var languageSkillName = DaggerfallUnity.Instance.TextProvider.GetSkillName(languageSkill);
DaggerfallUI.AddHUDText(TextManager.Instance.GetLocalizedText("languagePacified").Replace("%e", enemyName).Replace("%s", languageSkillName), 5);
player.TallySkill(languageSkill, 3); // BCHG: increased skill uses from 1 in classic on success to make raising language skills easier
}
else if (languageSkill != DFCareer.Skills.Etiquette && languageSkill != DFCareer.Skills.Streetwise)
Expand Down

0 comments on commit 8fc527a

Please sign in to comment.