Browse Source

Quest System Completed

lakebane-questing
FatBoy-DOTC 2 weeks ago
parent
commit
7f3d37e4f7
  1. 6
      src/engine/QuestSystem/QuestManager.java

6
src/engine/QuestSystem/QuestManager.java

@ -1,6 +1,7 @@ @@ -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 { @@ -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()));

Loading…
Cancel
Save