mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-08 22:25:42 +12:00
Fix "view"
This commit is contained in:
parent
d02b28115b
commit
187dbab4fa
2 changed files with 2 additions and 2 deletions
|
@ -227,7 +227,7 @@ namespace HISP.Game
|
||||||
|
|
||||||
public static string FormatQuestFooter(int totalQuestsComplete, int totalQuests, int questPoints, int totalQuestPoints)
|
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)
|
public static string FormatQuestLogQuest(string questTitle, int questPoints, string difficulty, string completionStatus)
|
||||||
{
|
{
|
||||||
|
|
|
@ -323,7 +323,7 @@ namespace HISP.Game
|
||||||
else
|
else
|
||||||
fmsg = Messages.QuestNotCompleted;
|
fmsg = Messages.QuestNotCompleted;
|
||||||
|
|
||||||
if (Quest.IsQuestAvalible(user,quest))
|
if (!Quest.IsQuestAvalible(user,quest))
|
||||||
fmsg = Messages.QuestNotAvalible;
|
fmsg = Messages.QuestNotAvalible;
|
||||||
|
|
||||||
message += Messages.FormatQuestLogQuest(quest.Title, quest.QuestPointsEarned, quest.Difficulty, fmsg);
|
message += Messages.FormatQuestLogQuest(quest.Title, quest.QuestPointsEarned, quest.Difficulty, fmsg);
|
||||||
|
|
Loading…
Add table
Reference in a new issue