Make logged quests easier to find

This commit is contained in:
KingRainbow44 2023-05-01 22:53:32 -04:00
parent a579243e51
commit d2f9f6f05b
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE
2 changed files with 2 additions and 2 deletions

View File

@ -490,7 +490,7 @@ public class GameMainQuest {
subQuestWithCond.getFinishProgressList()); subQuestWithCond.getFinishProgressList());
if (this.getQuestManager().getLoggedQuests().contains(subQuestWithCond.getSubQuestId())) { if (this.getQuestManager().getLoggedQuests().contains(subQuestWithCond.getSubQuestId())) {
Grasscutter.getLogger().debug("Quest {} will be {} as a result of content trigger {} ({}, {}).", Grasscutter.getLogger().debug(">>> Quest {} will be {} as a result of content trigger {} ({}, {}).",
subQuestWithCond.getSubQuestId(), shouldFinish ? "finished" : "not finished", condType.name(), paramStr, subQuestWithCond.getSubQuestId(), shouldFinish ? "finished" : "not finished", condType.name(), paramStr,
Arrays.stream(params).mapToObj(String::valueOf).collect(Collectors.joining(", "))); Arrays.stream(params).mapToObj(String::valueOf).collect(Collectors.joining(", ")));
} }

View File

@ -398,7 +398,7 @@ public class QuestManager extends BasePlayerManager {
boolean shouldAccept = LogicType.calculate(questData.getAcceptCondComb(), accept); boolean shouldAccept = LogicType.calculate(questData.getAcceptCondComb(), accept);
if (this.loggedQuests.contains(questData.getId())) { if (this.loggedQuests.contains(questData.getId())) {
Grasscutter.getLogger().debug("Quest {} will be {} as a result of event trigger {} ({}, {}).", Grasscutter.getLogger().debug(">>> Quest {} will be {} as a result of event trigger {} ({}, {}).",
questData.getId(), shouldAccept ? "accepted" : "not accepted", condType.name(), paramStr, questData.getId(), shouldAccept ? "accepted" : "not accepted", condType.name(), paramStr,
Arrays.stream(params).mapToObj(String::valueOf).collect(Collectors.joining(", "))); Arrays.stream(params).mapToObj(String::valueOf).collect(Collectors.joining(", ")));
for (var i = 0; i < accept.length; i++) { for (var i = 0; i < accept.length; i++) {