From 187dbab4fa35b6c409899436272bde55cdbbafa8 Mon Sep 17 00:00:00 2001 From: SilicaAndPina Date: Sun, 27 Dec 2020 08:57:30 +1300 Subject: [PATCH] Fix "view" --- Horse Isle Server/Horse Isle Server/Game/Messages.cs | 2 +- Horse Isle Server/Horse Isle Server/Game/Meta.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Horse Isle Server/Horse Isle Server/Game/Messages.cs b/Horse Isle Server/Horse Isle Server/Game/Messages.cs index 91d743b..0790f85 100644 --- a/Horse Isle Server/Horse Isle Server/Game/Messages.cs +++ b/Horse Isle Server/Horse Isle Server/Game/Messages.cs @@ -227,7 +227,7 @@ namespace HISP.Game public static string FormatQuestFooter(int totalQuestsComplete, int totalQuests, int questPoints, int totalQuestPoints) { - return QuestFooterFormat.Replace("%TOTALCOMPLETED%", totalQuestsComplete.ToString("N0")).Replace("%TOTALQUESTS%", totalQuests.ToString("N0")).Replace("%TOTALPERCENT%", ((totalQuestsComplete / totalQuests) * 100).ToString()).Replace("%YOURQP%", questPoints.ToString("N0")).Replace("%YOURQP%", totalQuestPoints.ToString("N0")).Replace("%QPERCENT%", ((totalQuestsComplete / totalQuests) * 100).ToString()); + return QuestFooterFormat.Replace("%TOTALCOMPLETED%", totalQuestsComplete.ToString("N0")).Replace("%TOTALQUESTS%", totalQuests.ToString("N0")).Replace("%TOTALPERCENT%", ((totalQuestsComplete / totalQuests) * 100).ToString()).Replace("%YOURQP%", questPoints.ToString("N0")).Replace("%YOURQP%", totalQuestPoints.ToString("N0")).Replace("%QPERCENT%", ((totalQuestsComplete / totalQuests) * 100).ToString()).Replace("%MAXQP%", totalQuestPoints.ToString("N0")); } public static string FormatQuestLogQuest(string questTitle, int questPoints, string difficulty, string completionStatus) { diff --git a/Horse Isle Server/Horse Isle Server/Game/Meta.cs b/Horse Isle Server/Horse Isle Server/Game/Meta.cs index 2a20f90..5e6a018 100644 --- a/Horse Isle Server/Horse Isle Server/Game/Meta.cs +++ b/Horse Isle Server/Horse Isle Server/Game/Meta.cs @@ -323,7 +323,7 @@ namespace HISP.Game else fmsg = Messages.QuestNotCompleted; - if (Quest.IsQuestAvalible(user,quest)) + if (!Quest.IsQuestAvalible(user,quest)) fmsg = Messages.QuestNotAvalible; message += Messages.FormatQuestLogQuest(quest.Title, quest.QuestPointsEarned, quest.Difficulty, fmsg);