Quest System Completed
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package engine.QuestSystem;
|
package engine.QuestSystem;
|
||||||
|
|
||||||
import engine.InterestManagement.WorldGrid;
|
import engine.InterestManagement.WorldGrid;
|
||||||
|
import engine.gameManager.ChatManager;
|
||||||
import engine.net.client.msg.ErrorPopupMsg;
|
import engine.net.client.msg.ErrorPopupMsg;
|
||||||
import engine.objects.*;
|
import engine.objects.*;
|
||||||
import engine.server.MBServerStatics;
|
import engine.server.MBServerStatics;
|
||||||
@@ -58,9 +59,10 @@ public class QuestManager {
|
|||||||
|
|
||||||
public static void completeQuest(PlayerCharacter pc, QuestObject obj){
|
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;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//notify the player they have completed their quest
|
//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()));
|
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()));
|
||||||
|
|||||||
Reference in New Issue
Block a user