diff --git a/src/Settings.xaml.cs b/src/Settings.xaml.cs index e4b35c1e..57bf0a2d 100644 --- a/src/Settings.xaml.cs +++ b/src/Settings.xaml.cs @@ -359,7 +359,7 @@ private void mobconclicked(object sender, RoutedEventArgs e) { var format = "ddd MMM dd HH:mm:ss yyyy"; var d = DateTime.Now; - var line = "[" + d.ToString(format) + "] A Shadow regards you indifferently -- You could probably win this fight."; + var line = "[" + d.ToString(format) + "] Ayillish regards you indifferently -- You could probably win this fight."; logParser.Push(new LogParser.LogParserEventArgs { Line = line }); } diff --git a/src/ViewModels/MobInfoViewModel.cs b/src/ViewModels/MobInfoViewModel.cs index c3d69c16..23356419 100644 --- a/src/ViewModels/MobInfoViewModel.cs +++ b/src/ViewModels/MobInfoViewModel.cs @@ -439,6 +439,18 @@ private void Parse() var imageurl = GetValue("imagefilename", splits); if (!string.IsNullOrWhiteSpace(imageurl) && imageurl.Length > 2) { + var indexof = imageurl.IndexOf(".png"); + if (indexof != -1) + { + imageurl = imageurl.Substring(0, indexof + 4); + } + + indexof = imageurl.IndexOf(".jpg"); + if (indexof != -1) + { + imageurl = imageurl.Substring(0, indexof + 4); + } + imageurl = char.ToUpper(imageurl[0]) + imageurl.Substring(1, imageurl.Length - 1); ImageUrl = $"https://wiki.project1999.com/images/{imageurl}"; }