From 7f3d37e4f7491563f06712a2aa442e91c2a1cf0c Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 18 Jan 2025 21:00:55 -0600 Subject: [PATCH] Quest System Completed --- src/engine/QuestSystem/QuestManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/QuestSystem/QuestManager.java b/src/engine/QuestSystem/QuestManager.java index 112b5806..6c99e050 100644 --- a/src/engine/QuestSystem/QuestManager.java +++ b/src/engine/QuestSystem/QuestManager.java @@ -1,6 +1,7 @@ package engine.QuestSystem; import engine.InterestManagement.WorldGrid; +import engine.gameManager.ChatManager; import engine.net.client.msg.ErrorPopupMsg; import engine.objects.*; import engine.server.MBServerStatics; @@ -58,9 +59,10 @@ public class QuestManager { public static void completeQuest(PlayerCharacter pc, QuestObject obj){ - if(obj.objectiveCount < obj.objectiveCountRequired) + if(obj.objectiveCount < obj.objectiveCountRequired) { + ChatManager.chatSystemInfo(pc, obj.QuestName + " Progress: " + obj.objectiveCount + " / " + obj.objectiveCountRequired); return; - + } //notify the player they have completed their quest ErrorPopupMsg.sendErrorMsg(pc, "You have completed the quest: " + obj.QuestName +"! " + "Experience Reward: " + (int) (Experience.maxXPPerKill(pc.getLevel()) * 10) + " Gold Reward: " + (int) Experience.maxXPPerKill(pc.getLevel()));