Change how quest names are shortened so that it doesn't replace the last letter with ...
authorLiza Carvelli <liza@carvel.li>
Wed, 14 Aug 2024 18:24:51 +0000 (20:24 +0200)
committerLiza Carvelli <liza@carvel.li>
Wed, 14 Aug 2024 18:24:51 +0000 (20:24 +0200)
Questionable/Windows/QuestComponents/ActiveQuestComponent.cs

index 5d746a6936bba18092a904d557f4d813a4257f4b..aeceab45ff0cc9f99d396cdd0d6c0ea3a439d359 100644 (file)
@@ -381,7 +381,7 @@ internal sealed partial class ActiveQuestComponent
     private static string Shorten(string text)
     {
         if (text.Length > 35)
-            return string.Concat(text.AsSpan(0, 35).Trim(), ((SeIconChar)57434).ToIconString());
+            return string.Concat(text.AsSpan(0, 30).Trim(), ((SeIconChar)57434).ToIconString());
 
         return text;
     }