Quest System Completed

This commit is contained in:
2025-01-18 21:00:55 -06:00
parent 4c49575bc7
commit 7f3d37e4f7
+4 -2
View File
@@ -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()));